Sampling at intermediate temperatures is optimal for training large language models in protein structure prediction
Not on the map. Why?
Abstract (arXiv)
Using a statistical mechanics framework, we investigate the parameter space of transformer models trained on protein sequence data. We sample the loss landscape at varying temperatures using Langevin dynamics to characterize the low-loss manifold, and to understand the mechanisms underlying transformers' superior performance in protein structure prediction. We find that, at variance with networks not based on the attention mechanism, the lack of a first--order--like transition in the loss of the transformer produces a range of intermediate temperatures with good learning properties; this is true both for synthetic and natural protein sequences. We also show that the parameters of most layers are highly conserved at these temperatures if the dimension of the embedding is optimal, and we provide an operative way to find this dimension. Additionally, we show that the attention matrix is more predictive of the contact maps of the protein at higher temperatures and for higher dimensions of the embedding than those optimal for learning. Finally, we showed that the models sampled at intermediate temperatures can predict the free-energy variation upon mutation, better than models obtained through standard optimization techniques.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 35 references that are in the map. First posted on arXiv 31 Mar 2026.
Builds on
12 of 35 references.
References · 12
- 2017Attention Is All You Needcited by 60,361
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 118
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 102
- 2020BERTology Meets Biology: Interpreting Attention in Protein Language Modelscited by 85
- 2016Unreasonable Effectiveness of Learning Neural Networks: From Accessible States and Robust Ensembles to Basic Algorithmic Schemescited by 40
- 2015Subdominant Dense Clusters Allow for Simple Learning and High Computational Performance in Neural Networks with Discrete Synapsescited by 39
- 2020Memorizing without overfitting: Bias, variance, and interpolation in over-parameterized modelscited by 27
- 2023Mapping of attention mechanisms to a generalized Potts modelcited by 19
- 2018Geometry of energy landscapes and the optimizability of deep neural networkscited by 9
- 2026Controlled Langevin Dynamics for Sampling of Feedforward Neural Networks Trained with Minibatchescited by 1
Built on by
Not cited yet.