English

Generating particle physics Lagrangians with transformers

Machine Learning 2025-01-17 v1 Symbolic Computation High Energy Physics - Phenomenology High Energy Physics - Theory

Abstract

In physics, Lagrangians provide a systematic way to describe laws governing physical systems. In the context of particle physics, they encode the interactions and behavior of the fundamental building blocks of our universe. By treating Lagrangians as complex, rule-based constructs similar to linguistic expressions, we trained a transformer model -- proven to be effective in natural language tasks -- to predict the Lagrangian corresponding to a given list of particles. We report on the transformer's performance in constructing Lagrangians respecting the Standard Model SU(3)×SU(2)×U(1)\mathrm{SU}(3)\times \mathrm{SU}(2)\times \mathrm{U}(1) gauge symmetries. The resulting model is shown to achieve high accuracies (over 90\%) with Lagrangians up to six matter fields, with the capacity to generalize beyond the training distribution, albeit within architectural constraints. We show through an analysis of input embeddings that the model has internalized concepts such as group representations and conjugation operations as it learned to generate Lagrangians. We make the model and training datasets available to the community. An interactive demonstration can be found at: \url{https://huggingface.co/spaces/JoseEliel/generate-lagrangians}.

Cite

@article{arxiv.2501.09729,
  title  = {Generating particle physics Lagrangians with transformers},
  author = {Yong Sheng Koay and Rikard Enberg and Stefano Moretti and Eliel Camargo-Molina},
  journal= {arXiv preprint arXiv:2501.09729},
  year   = {2025}
}

Comments

32 pages, 11 figues, 18 tables

R2 v1 2026-06-28T21:08:37.072Z