Cited by 126Domain Adaptation and Few-Shot LearningTopic ModelingNatural Language Processing Techniques

Fine-tuning large language models for domain adaptation: exploration of training strategies, scaling, model merging and synergistic capabilities

Open access
Lu, Wei, Luu, Rachel K., Buehler, Markus J.·2025·npj Computational Materials

Abstract

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.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1038/s41524-025-01564-y

Cites

9 of 9 references verified0 citation errors · 0 not checkable

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.

A few free checks a day · papers already verified open instantly · results are public

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].”

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

Flagged first, then by citations

Research works printed but not linked: 43

  1. Vaswani, A. et al. Attention is all you need https://papers.nips.cc/paper/7181-attention-is-all-you-need (2017).
  2. 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
  3. Jiang, A. Q. et al. Mistral 7B. Preprint at http://arxiv.org/abs/2310.06825 (2023). · arXiv
  4. Dubey, A. et al. The llama 3 herd of models. Preprint at https://arxiv.org/abs/2407.21783 (2024). · arXiv
  5. 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
  6. Qu, J. et al. Leveraging language representation for materials exploration and discovery. npj Comput. Mater. 10, Article 58 (2024).
  7. Yu, S., Ran, N. & Liu, J. Large-language models: the game-changers for materials science research. AI Chem. Eng. 2, 100076 (2024).
  8. Hu, Y. & Buehler, M. J. Deep language models for interpretative and predictive materials science. APL Mach. Learn. 1, 010901 (2023). · DOI
  9. 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
  10. 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
  11. 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
  12. Cranford, S. W. & Buehler, M. J. Biomateriomics (Springer Netherlands, 2012). · DOI
  13. Groen, N., Cranford, S., de Boer, J., Buehler, M. & Van Blitterswijk, C. Introducing Materiomics. (Cambridge University Press, 2011).
  14. Lee, N. A., Shen, S. C. & Buehler, M. J. An automated biomateriomics platform for sustainable programmable materials discovery. Matter 5, 3597–3613 (2022). · DOI
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. Hong, J., Lee, N. & Thorne, J. Orpo: monolithic preference optimization without reference model. Preprint at https://arxiv.org/abs/2403.07691 (2024). · DOI
  22. 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
  23. Utans, J. Weight averaging for neural networks and local resampling schemes. In Proc. AAAI-96 Workshop on Integrating Multiple Learned Models (AAAI Press, 1996).
  24. 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
  25. Shoemake, K. Animating rotation with quaternion curves. ACM SIGGRAPH Comput. Graph. 19, 245–254 (1985). · DOI
  26. Grassia, F. S. Practical parameterization of rotations using the exponential map. J. Graph. Tools 3, 29–48 (1998). · DOI
  27. Hanson, A. J. Visualizing quaternions. IEEE Comput. Graph. Appl. 26, 6–13 (2006).
  28. Eberly, D. H. Game Physics (Morgan Kaufmann, 2003). · DOI
  29. 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
  30. 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
  31. 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
  32. Achiam, J. et al. GPT-4 technical report. Preprint at https://arxiv.org/abs/2303.08774 (2023). · arXiv
  33. 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
  34. Kellert, S. R., Heerwagen, J. H. & Mador, M. L. Biophilic Design: The Theory, Science, and Practice of Bringing Buildings to Life (Wiley, 2008).
  35. Wright, F. L.The Natural House (Horizon Press, 1954).
  36. Buehler, M. J. Cephalo: Multi-modal vision-language models for bio-inspired materials analysis and design. Adv. Funct. Mater. 34, 2409531 (2024). · DOI
  37. 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
  38. 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
  39. 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
  40. Morankar, S. et al. Cholla cactus wood (cylindropuntia imbricata): hierarchical structure and micromechanical properties. Acta Biomater. 174, 269–280 (2024). · DOI
  41. 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
  42. Tunstall, L. et al. Zephyr: Direct distillation of lm alignment. Preprint at https://arxiv.org/abs/2310.16944 (2023). · arXiv
  43. 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

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
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