Sampling Weights at Intermediate Temperatures is Optimal for Training Large Language Protein Models

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.

Authors

Institutions

Publication Details

Journal
PRX Intelligence
Published
2026-10-14
DOI
https://doi.org/10.1103/xvjl-qrwc
Primary Topic
Protein Structure and Dynamics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Sampling Weights at Intermediate Temperatures is Optimal for Training Large Language Protein Models

Guido Tiana, Alessandro Zambon, L. Ghiringhelli
PRX Intelligence
Protein Structure and Dynamics
article

Sampling Weights at Intermediate Temperatures is Optimal for Training Large Language Protein Models

Guido Tiana, Alessandro Zambon, L. Ghiringhelli
article en

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.

PRX IntelligenceVol. 1(2)
Istituto Nazionale di Fisica Nucleare (IT), University of Milan (IT)
Openalex Percentile: Top 83%
Protein Structure and Dynamics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.