FeynTune: large language models for high-energy theory
Open Access
- 27 February 2026
- journal article
- Published by IOP Publishing in Machine Learning: Science and Technology
- Vol. 7 (2) , 025012
Abstract
We present specialized large language models (LLMs) for theoretical high-energy physics, obtained as 20 fine-tuned variants of the 8 billion parameter Llama-3.1 model. Each variant was trained on arXiv abstracts (through August 2024) from different combinations of hep-th, hep-ph and gr-qc. For a comparative study, we also trained models on datasets that contained abstracts from disparate fields such as the q-bio and cs categories. All models were fine-tuned using two distinct low-rank adaptation fine-tuning approaches and varying dataset sizes, and outperformed the base model on hep-th abstract completion tasks. We compare performance against leading commercial LLMs (ChatGPT, Claude, Gemini, DeepSeek) and derive insights for further developing specialized language models for high-energy theoretical physics.Keywords
All Related Versions
Funding Information
- EPSRC (EP/T022108/1)
- Science and Technology Facilities Council (STFC) Consolidated (ST/X00063X/1)
This publication has 13 references indexed in Scilit:
- Theoretical physics benchmark (TPBench)—a dataset and study of AI reasoning capabilities in theoretical physicsMachine Learning: Science and Technology, 2025
- cosmosage: A natural-language assistant for cosmologyAstronomy and Computing, 2025
- PhysBERT: A text embedding model for physics scientific literatureAPL Machine Learning, 2024
- AstroLLaMA-Chat: Scaling AstroLLaMA with Conversational and Diverse DatasetsResearch Notes of the AAS, 2024
- AstroLLaMA: Towards Specialized Foundation Models in Astronomy2023
- A Guideline of Selecting and Reporting Intraclass Correlation Coefficients for Reliability ResearchJournal of Chiropractic Medicine, 2016
- The Simple Difference Formula: An Approach to Teaching Nonparametric CorrelationComprehensive Psychology, 2014
- Intraclass correlations: Uses in assessing rater reliability.Psychological Bulletin, 1979
- On a Test of Whether one of Two Random Variables is Stochastically Larger than the OtherThe Annals of Mathematical Statistics, 1947
- The Proof and Measurement of Association between Two ThingsThe American Journal of Psychology, 1904