[Paper Review] Quokka: An Open-source Large Language Model ChatBot for Material Science
Quokka open-sources two LLaMA-2 based models (7B and 13B) pretrained on over 1 million materials science articles, with chat-capable variants released for community use.
This paper presents the development of a specialized chatbot for materials science, leveraging the Llama-2 language model, and continuing pre-training on the expansive research articles in the materials science domain from the S2ORC dataset. The methodology involves an initial pretraining phase on over one million domain-specific papers, followed by an instruction-tuning process to refine the chatbot's capabilities. The chatbot is designed to assist researchers, educators, and students by providing instant, context-aware responses to queries in the field of materials science. We make the four trained checkpoints (7B, 13B, with or without chat ability) freely available to the research community at https://github.com/Xianjun-Yang/Quokka.
Motivation & Objective
- Motivate the creation of an open-source, domain-specific LLM for materials science to aid researchers, educators, and students.
- Demonstrate continuing pretraining on a large materials science corpus (S2ORC) to inject domain knowledge.
- Showcase instruction tuning to align the model with general and materials science-specific prompts.
- Provide freely available checkpoints to accelerate research and downstream applications in materials text processing.
Proposed method
- Starting from LLaMA-2 base models (7B and 13B), perform continuing pretraining on over 1 million materials science articles from S2ORC.
- Mix 10% general RedPajama data to mitigate catastrophic forgetting during domain-specific pretraining.
- Use bf16, flash-attention, and DeepSpeed FSDP with 8 A100 GPUs for pretraining; train for one epoch per model.
- Then perform instruction tuning using 3344 unique instructions sourced from the LIMA and HoneyBee datasets plus author-added prompts.
- Fine-tune with 15 epochs, using a learning rate of 1e-4 and cosine scheduler on 1024 max tokens, with 4 A100 GPUs.
Experimental results
Research questions
- RQ1Can continuing pretraining on a large materials science corpus improve domain-specific understanding for LLaMA-2 models?
- RQ2Does instruction tuning with both general and materials science instructions yield better alignment for expert queries?
- RQ3Are open-source Quokka checkpoints effective as foundations for downstream materials science NLP tasks and chat interactions?
- RQ4What are the resource requirements and training dynamics for domain-adapted LLMs in materials science?
Key findings
- Quokka-7B and Quokka-13B show decreasing pretraining loss, with the 13B model achieving a lower final perplexity.
- Instruction tuning reduces loss toward zero after 15 epochs for both models.
- Quokka-7B-Chat and Quokka-13B-Chat enable dialogue about materials science questions with safety refusals for sensitive topics.
- The authors release four open-source checkpoints to the research community.
- Training times are on the order of tens of hours per model on specified hardware (e.g., 8 A100 GPUs for pretraining; 4 A100 GPUs for instruction tuning).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.