Attention to Order: Transformers Discover Phase Transitions via Learnability
2510.07401v1
cond-mat.mtrl-sci, cond-mat.dis-nn, cs.AI, cs.LG
2025-10-11
Авторы:
Şener Özönder
Abstract
Phase transitions mark qualitative reorganizations of collective behavior,
yet identifying their boundaries remains challenging whenever analytic
solutions are absent and conventional simulations fail. Here we introduce
learnability as a universal criterion, defined as the ability of a transformer
model containing attention mechanism to extract structure from microscopic
states. Using self-supervised learning and Monte Carlo generated configurations
of the two-dimensional Ising model, we show that ordered phases correspond to
enhanced learnability, manifested in both reduced training loss and structured
attention patterns, while disordered phases remain resistant to learning. Two
unsupervised diagnostics, the sharp jump in training loss and the rise in
attention entropy, recover the critical temperature in excellent agreement with
the exact value. Our results establish learnability as a data-driven marker of
phase transitions and highlight deep parallels between long-range order in
condensed matter and the emergence of structure in modern language models.