Sampling Weights at Intermediate Temperatures is Optimal for Training Large Language Protein Models
L. Ghiringhelli, Alessandro Zambon, Guido Tiana
University of Milan · Istituto Nazionale di Fisica Nucleare
Key points
From the paper's conclusion- Investigated the parameter space of transformer models trained on protein sequence data using a statistical mechanics framework.
- Sampling the loss landscape at intermediate temperatures using Langevin dynamics produces a range of good learning properties for both synthetic and natural protein sequences.
- Models sampled at intermediate temperatures can predict the free-energy variation upon mutation, better than models obtained through standard optimization techniques.
Abstract
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 for both 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.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Investigated the parameter space of transformer models trained on protein sequence data using a statistical mechanics framework.
- Sampling the loss landscape at intermediate temperatures using Langevin dynamics produces a range of good learning properties for both synthetic and natural protein sequences.
- Models sampled at intermediate temperatures can predict the free-energy variation upon mutation, better than models obtained through standard optimization techniques.
Readers' thoughts
No reader thoughts yet.
Related papers
- Unified modeling of mutation-induced protein stability responses with OmegaThermbioRxiv · 2026
- Self-Architecting Protein Transformers: An Empirical StudybioRxiv · 2026
- Beyond Sequence and Structure: Pretraining PLMs on Continuous Biophysical FieldsbioRxiv · 2026
- MAXWELL: Calibrating the probabilistic outputs of protein language models to the mutation-induced stability change landscapebioRxiv · 2026
- ProSpect-Stab: Task-Specific Modeling of OGT-Associated Thermal Adaptation and Mutation-Level ΔΔ G EffectsACS Synthetic Biology · 2026
- MD-LLM-2: A Transferable Language Model of Molecular Dynamics with Physical Conditioning and Explicit Path ProbabilitiesarXiv · 2026