Weight-Space Physics: Interpretable Hypernetworks for Lattice Quantum Field Theories

Tobias Göbel, Julian R. Ebelt, Zier Mensch, Mathis Gerdes, Miranda C. N. Cheng

TL;DR

This paper introduces JEPAWG, a novel hypernetwork architecture that learns to generate the weights of normalizing flows used in lattice quantum field theory simulations. By mapping physical coupling constants directly to these weights via a learned latent space, JEPAWG not only generates accurate flow models for unseen theories but also reveals that the network weights themselves encode deep physical structure, such as phase transitions and critical exponents.

What Problem Does This Paper Address?

Lattice quantum field theory (LFT) is a crucial tool for understanding fundamental physics, but extracting meaningful physical insights from its simulations is challenging. The "bare" coupling constants used in the theory's action are poor predictors of observable phenomena, requiring extensive simulations to bridge the gap. While normalizing flows have emerged as powerful samplers for LFT distributions, it's been unclear what these complex neural networks actually "learn" about the underlying physics. This paper tackles two key questions: can we generate accurate flow models for new theories without retraining, and can we "read" the physics directly from the learned network weights?

Methods

The core innovation is JEPAWG (Joint-Embedding Predictive Architecture-based Weight Generator). It leverages a Joint-Embedding Predictive Architecture (JEPA), a self-supervised learning framework that learns representations by predicting embeddings of related data. In this context, JEPAWG learns a mapping from the physical coupling constants of an LFT to the weights of a normalizing flow model designed to sample that theory's Boltzmann distribution.

Here's a breakdown of the JEPAWG architecture:

  • Weight Encoder ($E_\theta$): Maps the parameters (weights) of a trained flow model to a latent representation.
  • Coupling Encoder ($E_g$): Maps the physical coupling constants of an LFT to a latent representation.
  • Predictor (P): Learns to predict the weight embedding from the coupling embedding.
  • Decoder ($D_\theta$): Maps the predicted weight embedding back to flow model parameters.

The JEPAWG encoders and predictor are trained using the VICReg objective, which encourages invariance (predicted and target embeddings are similar), variance (latent dimensions are diverse), and covariance (latent dimensions are decorrelated). The covariance term is omitted in the main JEPAWG configuration to better preserve the low-dimensional structure of the physical theory. The decoder is then trained in a second stage to reconstruct the original flow weights.

JEPAWG is compared against traditional methods like Principal Component Analysis (PCA), Autoencoders (AE), and Variational Autoencoders (VAE), which are trained on flow weights without direct coupling information and require a post-hoc regressor for generation.

Datasets

The primary dataset consists of trained normalizing flow parameters for the 2D $\phi^4$ scalar field theory across various lattice sizes ($6^2$ to $11^2$) and coupling constant values ($m^2 \in [-5.1, -1.9]$, $\lambda \in [2.85, 5.65]$). This dataset is generated by first training a coupling-conditional flow model and then fine-tuning it at specific coupling points. The authors emphasize the use of a "multi-seed" training approach, where different initializations of the conditional flow are combined, to create a weight manifold with discontinuities. This setup is designed to rigorously test the robustness of JEPAWG's learned representations.

Key Insights and Ideas

  • Weight Space as a Physical Manifold: The most striking insight is that the geometry of the trained neural network weights (the "weight space") directly reflects the underlying physics of the quantum field theory. This suggests that the weights are not just arbitrary parameters but carry interpretable physical information.
  • Encoding of Physical Structure: JEPAWG's latent space successfully recovers the intrinsic dimensionality of the coupling manifold, pinpoints phase transitions, and encodes finite-size scaling behavior consistent with theoretical predictions (specifically, the 2D Ising exponent $\nu \approx 1$). This demonstrates that the network learns to represent physical concepts without explicit supervision for these phenomena.
  • Non-local Weights Capture Criticality: The paper identifies that specific network parameters, particularly those responsible for non-local operations on configurations, are crucial for capturing the physics near phase transitions. This suggests a localization of physical information within the network architecture.
  • Physics as Synthetic Data for AI Interpretability: The authors propose that well-understood physical theories, like LFTs, serve as ideal "ground truth" datasets for developing and testing AI interpretability methods. The inherent structure and known properties of these theories provide a rigorous benchmark for evaluating what machine learning models have learned.

Key Results

  • Generation Performance: JEPAWG significantly outperforms PCA, AE, and VAE baselines in generating effective sample sizes (ESS) for normalizing flows, especially in extrapolation regions (e.g., JEPAWG achieves an interpolation ESS of 0.88, compared to ~0.3-0.4 for baselines).
  • Intrinsic Dimensionality: JEPAWG's latent space accurately reflects the 2D coupling manifold (MLE intrinsic dimension ~2.0), while AE and VAE inflate this dimension significantly (e.g., VAE ~4.88), indicating they retain irrelevant structure.
  • Phase Transition Detection: The pullback metric on the learned weights exhibits a distinct ridge that precisely tracks the critical line of the 2D $\phi^4$ theory, demonstrating the network's ability to locate phase transitions.
  • Finite-Size Scaling: The latent geometry successfully encodes finite-size scaling behavior, yielding an estimated critical exponent $\nu$ broadly consistent with the theoretical value of 1 for the 2D Ising universality class.
  • Robustness to Discontinuities: JEPAWG remains robust to discontinuities in the weight space introduced by multi-seed training, a challenge that significantly degrades the performance of baseline methods.

Limitations and Future Work

  • Lattice Size and Theory Diversity: The current experiments are limited to a 2D theory on relatively small lattices (up to $11^2$). The authors acknowledge that extending the analysis to larger lattices would further validate the results and sharpen the weight-space RG findings. They also propose applying JEPAWG to other quantum field theories and scientific systems to test its generality and potentially uncover new physical insights.
  • Computational Cost: Training normalizing flows, especially for larger lattices, is computationally intensive, which limits the scale of current experiments.
  • Pathological Training Runs: The authors note that JEPA training can occasionally result in collapsed latent spaces, which they discard. Further analysis of this "seed dependence" is suggested for future work.

Summary updated

BibTeX
@inproceedings{gobel2026weight,
  author = {Tobias Göbel and Julian R. Ebelt and Zier Mensch and Mathis Gerdes and Miranda C. N. Cheng},
  title = {{Weight-Space Physics: Interpretable Hypernetworks for Lattice Quantum Field Theories}},
  booktitle = {AI4Physics @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=eHSiINhFoo},
}
Figure