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.

Sampling Weights at Intermediate Temperatures is Optimal for Training Large Language Protein Models / L. Ghiringhelli, A.Z.. - In: PRX INTELLIGENCE. - ISSN 3070-0329. - 1:2(2026 Oct 14), pp. 023003.1-023003.18. [10.1103/xvjl-qrwc]

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

A. Zambon
Penultimo
;
G. Tiana
Ultimo
2026

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.
Settore PHYS-04/A - Fisica teorica della materia, modelli, metodi matematici e applicazioni
14-ott-2026
https://journals.aps.org/prxintelligence/abstract/10.1103/xvjl-qrwc
Article (author)
File in questo prodotto:
File Dimensione Formato  
xvjl-qrwc.pdf

accesso aperto

Tipologia: Publisher's version/PDF
Licenza: Creative commons
Dimensione 5.59 MB
Formato Adobe PDF
5.59 MB Adobe PDF Visualizza/Apri
Pubblicazioni consigliate

I metadati presenti in AIR sono rilasciati con licenza CCO mentre i file delle pubblicazioni sono rilasciati con licenza CC BY-SA, salvo diversa indicazione. In caso di violazione di copyright, contattare l'assistenza di AIR

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2434/1274972
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
  • OpenAlex ND
social impact