Physicists Train AI to Discover Its Own Order Parameters From Spin Data
A new paper treats atoms as agents chatting through Bayesian inference, letting a neural model discover order parameters from raw spin snapshots alone.
Takeaways
- New preprint applies Collective Predictive Coding, a language-emergence theory, to discover physical order parameters from raw data.
- Each atom is modeled as an agent predicting its neighbors through decentralized Bayesian inference.
- Method recovers magnetization, staggered magnetization, stripe sectors, and SK replica overlap without ever seeing the Hamiltonian.
- Equilibrium distribution of the learned coordinate reconstructs a Landau-style double-well potential across the Ising transition.
- Finite-size extrapolation of the inferred critical temperature converges toward the exact Onsager value.
- Framework ports Taniguchi's CPC hypothesis from cognitive science into statistical physics; code not yet released.
Physicists use order parameters to connect microscopic configurations with macroscopic phases. Magnetization identifies a ferromagnet, staggered magnetization identifies an antiferromagnet, and replica overlap measures shared structure in a spin glass. Researchers usually select these quantities after inspecting the Hamiltonian, the function that defines a system’s interactions and energy. In the preprint Atom as an Agent, Koji Hashimoto and Tadahiro Taniguchi ask whether a learning system can infer the appropriate collective coordinate from spin configurations alone. Their method treats each spin site as an agent whose shared representation must help predict other sites.
A language game for spins
Collective Predictive Coding, or CPC, originated as a cognitive-science account of symbol formation. Taniguchi’s 2024 CPC paper describes agents that maintain separate internal models while exchanging proposed symbols. A Metropolis-Hastings Naming Game supplies the computational mechanism: one agent proposes a symbol, another accepts or rejects it according to how well it explains local observations, and repeated exchanges approximate Bayesian inference over a shared representation.
Applied to spin data, each site becomes an agent and the shared latent variable w becomes a candidate order parameter. Its value must carry information that helps one site predict another. Hashimoto and Taniguchi call the resulting variable the collective predictive order.
Three systems, known answers
The authors test CPC on classical spin systems with established order parameters, allowing them to compare the inferred coordinate against a known target.
| System | Textbook order parameter | Input requirement |
|---|---|---|
| 2D ferromagnetic Ising model | Magnetization, the average spin | Sampled spin configurations |
| 2D antiferromagnetic Ising model | Staggered magnetization, which alternates the spin sign across the lattice | Sampled spin configurations |
| 2D competing-stripe model | Horizontal or vertical stripe order, each with two sign variants | Sampled spin configurations |
| Sherrington-Kirkpatrick spin glass | Replica overlap, q12 = N-1 Σi si(1)si(2) |
Pairs of replicas with the same random couplings |
Training uses no Hamiltonian or order-parameter labels. An expectation-maximization-style loop alternates between latent-variable inference and updates to the predictive model while minimizing a regularized free-energy objective. Here, free energy refers to the learning objective that combines predictive fit with regularization. The physical Landau potential is estimated later from the learned coordinate’s distribution.
The familiar coordinates return
For the ferromagnetic and antiferromagnetic Ising models, the inferred w has a monotonic nonlinear relationship with magnetization and staggered magnetization, respectively. Its temperature dependence follows the known ordering transition at the Onsager critical temperature.
The stripe model produces four sectors corresponding to +mx, -mx, +my, and -my. CPC receives no labels for stripe orientation or sign, yet its latent representation separates the four symmetry-related states.
For the Sherrington-Kirkpatrick model, CPC receives two replicas generated with the same quenched random couplings. The learned coordinate closely follows their replica overlap, reaching a reported R2 of about 0.992 under an odd-quintic fit. The nonlinear fit also shows that the latent coordinate need not use the conventional order parameter’s numerical scale.
A Landau potential from latent samples
At each temperature, the authors estimate the distribution PT(w) and construct an effective potential proportional to -log PT(w), up to scale and additive constants. A quartic form fits the result. At low temperature it has two minima related by spin-flip symmetry; as temperature rises, the wells soften and the quadratic coefficient approaches zero.
Finite-size extrapolation of the temperature where that quadratic coefficient vanishes approaches the exact Onsager critical temperature. The calculation therefore extracts both a collective coordinate and a coarse-grained Landau description from sampled configurations.
Prediction supplies the inductive bias
Order-parameter discovery has also been studied with principal component analysis, autoencoders, and contrastive learning. Those methods optimize variance, reconstruction, or representation similarity. CPC instead makes cross-site prediction through a shared latent variable its central learning signal.
- It requires samples rather than an explicit energy model. That makes the approach applicable in principle when microscopic interactions are unknown or disputed.
- It can represent multi-copy observables. Defining each observation as a replica pair allows the model to recover the spin-glass overlap.
- It gives CPC a physics benchmark. The experiments connect symbol-emergence research based on decentralized Bayesian inference with measurable symmetry breaking in statistical mechanics.
What remains untested
The evidence comes from a preprint and controlled benchmarks whose answers are already known. Several limits remain:
- Quantum systems, nonequilibrium dynamics, large-scale lattices, and experimental measurements are not demonstrated.
- The spin-glass result depends on paired replicas with identical disorder, an input that is straightforward in simulation but difficult to obtain experimentally.
- The latent coordinate is identifiable only up to transformations such as sign changes, rescaling, or nonlinear remapping. Researchers must still connect it to a physical observable.
- The Landau potential requires a separate analysis of the learned coordinate’s equilibrium distribution.
- The preprint does not link to a code repository, so reproduction requires implementing the EM-style training procedure and the Metropolis-Hastings Naming Game variant.
Testing CPC on a system with a disputed or unknown order parameter would address the central open question: whether collective prediction can uncover a useful new physical coordinate when no textbook answer guides the evaluation.