Fine-tuning large language models for domain adaptation: exploration of training strategies, scaling, model merging and synergistic capabilities
Open accessAbstract
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 is not merely a process of aggregation, but a transformative method that can drive substantial advancements in model capabilities characterized by highly nonlinear interactions between model parameters, resulting in new functionalities that neither parent model could achieve alone, leading to improved performance in domain-specific assessments. We study critical factors that influence the success of model merging, such as the diversity between parent models and the fine-tuning techniques employed. The insights underscore the potential of strategic model merging to unlock novel capabilities in LLMs, offering an effective tool for advancing AI systems to meet complex challenges. Experiments with different model architectures are presented, including the Llama 3.1 8B and Mistral 7B family of 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 shows 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 that seek to reason over disparate biological material design concepts, to create new microstructures, architectural concepts, and urban design based on biological materials-inspired construction principles. We conclude with a series of questions about scaling and emergence that could be addressed in future research.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
Recent systems have shown strong general-purpose language capabilities and encouraging results in scientific text mining, information extraction, and structured generation.
“Recent systems have shown strong general-purpose language capabilities and encouraging results in scientific text mining, information extraction, and structured generation [7][8][9][10].”
From Diagnosing the limits of large language models for structured scientific evidence extraction (2026) · cites this paper as [9]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
Scaling Laws for Neural Language Models
Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., & Amodei, D. (2020) · arXiv · doi:10.48550/arxiv.2001.08361 · Cited by 9,550 · cited 2× · see citing works
“The chat template used for the SmoLM models is The vocabulary size of the SmoLM family models is 49,152.”
Hansen, L. K., & Salamon, P. (1990) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/34.58871 · Cited by 4,260 · see citing works
Large Language Models Encode Clinical Knowledge
Singhal, K., Azizi, S., Tu, T., Mahdavi, S. S., Wei, J., Chung, H. W., Scales, N., Tanwani, A., Cole-Lewis, H., Pfohl, S., et al. (2022) · arXiv · doi:10.48550/arxiv.2212.13138 · Cited by 4,083 · see citing works
Reconciling modern machine-learning practice and the classical bias–variance trade-off
Belkin, M., Hsu, D., Ma, S., & Mandal, S. (2019) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.1903070116 · Cited by 1,595 · see citing works
Deep reinforcement learning from human preferences
Christiano, P., Leike, J., Brown, T. B., Martic, M., Legg, S., & Amodei, D. (2017) · arXiv · doi:10.48550/arxiv.1706.03741 · Cited by 1,058 · see citing works
Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models
Srivastava, A., Rastogi, A., Rao, A., Shoeb, A. A. M., Abid, A., Fisch, A., Brown, A. R., Santoro, A., Gupta, A., Garriga-Alonso, A., et al. (2022) · arXiv · doi:10.48550/arxiv.2206.04615 · Cited by 569 · see citing works
Can Large Language Models Be an Alternative to Human Evaluations?
Chiang, C.-H., & Lee, H.-Y. (2023) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2023.acl-long.870 · Cited by 331 · see citing works
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
Rafailov, R., Sharma, A., Mitchell, E., Ermon, S., Manning, C. D., & Finn, C. (2023) · arXiv · doi:10.48550/arxiv.2305.18290 · Cited by 293 · see citing works
Holistic Evaluation of Language Models
Liang, P., Bommasani, R., Lee, T., Tsipras, D., Soylu, D., Yasunaga, M., Zhang, Y., Narayanan, D., Wu, Y., Kumar, A., et al. (2022) · arXiv · doi:10.48550/arxiv.2211.09110 · Cited by 255 · see citing works
Flagged first, then by citations
Research works printed but not linked: 43
- Vaswani, A. et al. Attention is all you need https://papers.nips.cc/paper/7181-attention-is-all-you-need (2017).
- Xue, L. et al. ByT5: towards a token-free future with pre-trained byte-to-byte models. Trans. Assoc. Comput. Linguist. 10, 291–306 (2021). · DOI · Paper page
- Jiang, A. Q. et al. Mistral 7B. Preprint at http://arxiv.org/abs/2310.06825 (2023). · arXiv
- Dubey, A. et al. The llama 3 herd of models. Preprint at https://arxiv.org/abs/2407.21783 (2024). · arXiv
- Buehler, M. J. MeLM, a generative pretrained language modeling framework that solves forward and inverse mechanics problems. J. Mech. Phys. Solids 181, 105454 (2023). · DOI
- Qu, J. et al. Leveraging language representation for materials exploration and discovery. npj Comput. Mater. 10, Article 58 (2024).
- Yu, S., Ran, N. & Liu, J. Large-language models: the game-changers for materials science research. AI Chem. Eng. 2, 100076 (2024).
- Hu, Y. & Buehler, M. J. Deep language models for interpretative and predictive materials science. APL Mach. Learn. 1, 010901 (2023). · DOI
- Buehler, E. L. & Buehler, M. J. X-LoRA: mixture of low-rank adapter experts, a flexible framework for large language models with applications in protein mechanics and design. APL Mach. Learn. 2 (2024). · DOI
- Buehler, M. J. MechGPT, a language-based strategy for mechanics and materials modeling that connects knowledge across scales, disciplines and modalities. Appl. Mech. Rev. 76, 021001 (2024). · DOI
- Luu, R. K. & Buehler, M. J. BioinspiredLLM: conversational large language model for the mechanics of biological and bio-inspired materials. Adv. Sci. https://doi.org/10.1002/advs.202306724 (2023). · DOI
- Cranford, S. W. & Buehler, M. J. Biomateriomics (Springer Netherlands, 2012). · DOI
- Groen, N., Cranford, S., de Boer, J., Buehler, M. & Van Blitterswijk, C. Introducing Materiomics. (Cambridge University Press, 2011).
- Lee, N. A., Shen, S. C. & Buehler, M. J. An automated biomateriomics platform for sustainable programmable materials discovery. Matter 5, 3597–3613 (2022). · DOI
- Arevalo, S. E. & Buehler, M. J. Learning from nature by leveraging integrative biomateriomics modeling toward adaptive and functional materials. MRS Bull. 48, 1140–1153 (2023). · DOI
- Smith, P. T., Wahl, C. B., Orbeck, J. K. & Mirkin, C. A. Megalibraries: supercharged acceleration of materials discovery. MRS Bull. 48, 1172–1183 (2023). · DOI
- Buehler, M. J. Accelerating scientific discovery with generative knowledge extraction, graph-based representation, and multimodal intelligent graph reasoning. Mach. Learn. Sci. Technol. 5, 035083 (2024). · DOI
- Hu, E. J. et al. LoRA: low-rank adaptation of large language models. ICLR 1, 3. Preprint at https://arxiv.org/abs/2106.09685v2 (2022). · arXiv
- Buehler, M. J. MechGPT, a language-based strategy for mechanics and materials modeling that connects knowledge across scales, disciplines and modalities. Appl. Mech. Rev. https://doi.org/10.1115/1.4063843 (2023). · DOI
- Siriwardhana, S. et al. Domain adaptation of llama3-70b-instruct through continual pre-training and model merging: a comprehensive evaluation. Preprint at https://arxiv.org/abs/2406.14971 (2024). · arXiv
- Hong, J., Lee, N. & Thorne, J. Orpo: monolithic preference optimization without reference model. Preprint at https://arxiv.org/abs/2403.07691 (2024). · DOI
- Garipov, T., Izmailov, P., Podoprikhin, D., Vetrov, D. & Wilson, A. G. Loss surfaces, mode connectivity, and fast ensembling of DNNs. NIPS'18: Proceedings of the 32nd International Conference on Neural Information Processing Systems, Preprint at https://arxiv.org/abs/1802.10026 (2018). · arXiv
- Utans, J. Weight averaging for neural networks and local resampling schemes. In Proc. AAAI-96 Workshop on Integrating Multiple Learned Models (AAAI Press, 1996).
- Goddard, C. et al. Arcee’s mergekit: a toolkit for merging large language models. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track, Preprint at https://arxiv.org/abs/2403.13257 (2024). · DOI
- Shoemake, K. Animating rotation with quaternion curves. ACM SIGGRAPH Comput. Graph. 19, 245–254 (1985). · DOI
- Grassia, F. S. Practical parameterization of rotations using the exponential map. J. Graph. Tools 3, 29–48 (1998). · DOI
- Hanson, A. J. Visualizing quaternions. IEEE Comput. Graph. Appl. 26, 6–13 (2006).
- Eberly, D. H. Game Physics (Morgan Kaufmann, 2003). · DOI
- Blecher, L., Cucurull, G., Scialom, T., Stojnic, R. & Ai, M. Nougat: neural optical understanding for academic documents. Preprint at https://arxiv.org/abs/2308.13418v1 (2023). · arXiv
- Zhang, Y. et al. Llmeval: a preliminary study on how to evaluate large language models. In the proceedings of the AAAI Conference on Artificial Intelligence by the Association for the Advancement of Artificial Intelligence (AAAI). Vol. 38, 19615–19622 (2024). · DOI
- Chern, S., Chern, E., Neubig, G. & Liu, P. Can large language models be trusted for evaluation? Scalable meta-evaluation of LLMs as evaluators via agent debate. Preprint at https://arxiv.org/abs/2401.16788 (2024). · arXiv
- Achiam, J. et al. GPT-4 technical report. Preprint at https://arxiv.org/abs/2303.08774 (2023). · arXiv
- Ruiz, N. et al. Dreambooth: fine tuning text-to-image diffusion models for subject-driven generation. Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, Preprint at https://arxiv.org/abs/2208.12242 (2023). · DOI · Paper page
- Kellert, S. R., Heerwagen, J. H. & Mador, M. L. Biophilic Design: The Theory, Science, and Practice of Bringing Buildings to Life (Wiley, 2008).
- Wright, F. L.The Natural House (Horizon Press, 1954).
- Buehler, M. J. Cephalo: Multi-modal vision-language models for bio-inspired materials analysis and design. Adv. Funct. Mater. 34, 2409531 (2024). · DOI
- Klunk, C. L., Heethoff, M., Hammel, J. U., Gorb, S. N. & Krings, W. Mechanical and elemental characterization of ant mandibles: consequences for bite mechanics. Interface Focus 14, 20230056 (2024). · DOI
- El-Shekeil, Y. A., AL-Oqla, F. M., Refaey, H. A., Bendoukha, S. & Barhoumi, N. Investigating the mechanical performance and characteristics of nitrile butadiene rubber date palm fiber reinforced composites for sustainable bio-based materials. J. Mater. Res. Technol. 29, 101–108 (2024). · DOI
- Mbabali, H., Lubwama, M., Yiga, V. A., Were, E. & Kasedde, H. Development of rice husk and sawdust mycelium-based bio-composites: optimization of mechanical, physical and thermal properties. J. Inst. Eng. Ser. D 105, 97–117 (2024). · DOI
- Morankar, S. et al. Cholla cactus wood (cylindropuntia imbricata): hierarchical structure and micromechanical properties. Acta Biomater. 174, 269–280 (2024). · DOI
- Sauer, K. et al. Nanocrystal residual strains and density layers enhance failure resistance in the cleithrum bone of evolutionary advanced pike fish. Acta Biomater. 179, 164–179 (2024). · DOI
- Tunstall, L. et al. Zephyr: Direct distillation of lm alignment. Preprint at https://arxiv.org/abs/2310.16944 (2023). · arXiv
- Lu, W., Kaplan, D. L. & Buehler, M. J. Generative modeling, design, and analysis of spider silk protein sequences for enhanced mechanical properties. Adv. Funct. Mater. https://doi.org/10.1002/adfm.202311324 (2023). · DOI
Cited by
Sorted by citations
Jaffal, N. O., Alkhanafseh, M., & Mohaisen, D. (2025) · AI · doi:10.3390/ai6090216 · Cited by 69 · see citing works
Diagnosing the limits of large language models for structured scientific evidence extraction
Tan, Z., D’Souza, J., & Auer, S. (2026) · International Journal on Digital Libraries · doi:10.1007/s00799-026-00449-9
- Authors
- Lu, W., Luu, R. K., & Buehler, M. J.
- Affiliations
- Massachusetts Institute of Technology (US)
- Corresponding author
- Buehler, Markus J.
- Venue
- npj Computational Materials
- Published
- 2025-03-28
- Volume
- 11
- Issue
- 1
- ISSN
- 2057-3960 (ISSN-L)
- OpenAlex
- W4408968357
- Cited by
- 126
- References
- 9
- Citations by year
- 2026: 79 · 2025: 44 · 2024: 3
- FWCI
- 39.88
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Licence
- Locations
- npj Computational Materials (publishedVersion, cc-by-nc-nd)
- arXiv (Cornell University) (submittedVersion, cc-by-nc-nd)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
- arXiv (Cornell University)
- Funders
- National Science Foundation (2141064)
- U.S. Department of Agriculture (2021-69012-35978)
- National Institutes of Health
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Keywords
- large language models, domain adaptation, fine-tuning strategies, continual pre-training, supervised fine-tuning, preference optimization, direct preference optimization, model merging, emergent capabilities, model scaling, Llama 3.1, Mistral, small language models, materials design
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review