[Paper Review] Fine-tuning large language models for domain adaptation: Exploration of training strategies, scaling, model merging and synergistic capabilities
This paper investigates fine-tuning strategies—Continued Pretraining (CPT), Supervised Fine-Tuning (SFT), and preference optimization (DPO, ORPO)—for adapting LLMs to materials science and engineering domains. It demonstrates that model merging induces synergistic, nonlinear capabilities beyond individual models, with performance gains observed in Llama 3.1 8B and Mistral 7B, while smaller models (1.7B) show limited emergence, suggesting model scaling is critical for such synergies.
The advancement of Large Language Models (LLMs) for domain applications in fields such as materials science and engineering depends on the development of fine-tuning strategies that adapt models for specialized, technical capabilities. In this work, we explore the effects of Continued Pretraining (CPT), Supervised Fine-Tuning (SFT), and various preference-based optimization approaches, including Direct Preference Optimization (DPO) and Odds Ratio Preference Optimization (ORPO), on fine-tuned LLM performance. Our analysis shows how these strategies influence model outcomes and reveals that the merging of multiple fine-tuned models can lead to the emergence of capabilities that surpass the individual contributions of the parent models. We find that model merging leads to new functionalities that neither parent model could achieve alone, leading to improved performance in domain-specific assessments. Experiments with different model architectures are presented, including Llama 3.1 8B and Mistral 7B models, where similar behaviors are observed. Exploring whether the results hold also for much smaller models, we use a tiny LLM with 1.7 billion parameters and show that very small LLMs do not necessarily feature emergent capabilities under model merging, suggesting that model scaling may be a key component. In open-ended yet consistent chat conversations between a human and AI models, our assessment reveals detailed insights into how different model variants perform and show that the smallest model achieves a high intelligence score across key criteria including reasoning depth, creativity, clarity, and quantitative precision. Other experiments include the development of image generation prompts based on disparate biological material design concepts, to create new microstructures, architectural concepts, and urban design based on biological materials-inspired construction principles.
Motivation & Objective
- To evaluate the impact of CPT, SFT, and preference-based optimization (DPO, ORPO) on LLM performance in domain-specific scientific applications.
- To investigate whether model merging can generate emergent capabilities not present in individual parent models.
- To assess the role of model scaling and diversity between parent models in enabling synergistic performance gains.
- To evaluate the effectiveness of merged models in open-ended, multi-turn conversations and image generation tasks using biologically inspired prompts.
- To explore the potential of small LLMs (1.7B parameters) for emergent capabilities through merging, comparing them to larger models.
Proposed method
- Trained Llama 3.1 8B and Mistral 7B models using CPT on domain-specific scientific corpora from materials science and engineering.
- Applied SFT with curated instruction datasets to improve task-specific performance and instruction following.
- Employed DPO and ORPO for preference-based optimization, avoiding complex reward modeling by directly optimizing for preference signals.
- Used LoRA for efficient fine-tuning, applying low-rank adapters to all linear layers with rank r = 16 or 64.
- Merged fine-tuned models using parameter-weighted averaging, analyzing performance via standardized scores (ZAi) and clustering.
- Evaluated models via multi-turn human-AI conversations and image generation using a fine-tuned FLUX.1-dev model prompted with 'leaf microstructure' concepts.
Experimental results
Research questions
- RQ1How do CPT, SFT, and preference-based optimization (DPO, ORPO) compare in enhancing LLM performance for materials science applications?
- RQ2Can merging multiple fine-tuned models lead to emergent capabilities not present in any individual parent model?
- RQ3What role does model scaling play in enabling emergent synergistic behaviors during model merging?
- RQ4How does the diversity between parent models influence the success of model merging?
- RQ5Do very small LLMs (e.g., 1.7B parameters) exhibit emergent capabilities after merging, or is scaling a prerequisite?
Key findings
- Model merging leads to performance gains that exceed the average of parent models, indicating nonlinear, synergistic interactions between model parameters.
- The best-performing merged models achieved standardized actual scores (ZAi) significantly above the expected average, demonstrating emergent capabilities.
- Larger models (Llama 3.1 8B, Mistral 7B) exhibited strong synergistic performance upon merging, while the 1.7B model showed minimal emergent behavior.
- The smallest model (1.7B) achieved high intelligence scores in human-AI conversations across reasoning, creativity, clarity, and precision, despite limited emergent capabilities.
- Preference-based optimization (ORPO, DPO) combined with CPT and SFT yielded superior performance compared to SFT alone, particularly in instruction following and reasoning.
- Image generation using merged models and biologically inspired prompts successfully produced abstract, organic microstructures, indicating cross-modal reasoning capabilities.
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.