TL;DR
What if you could discover the phase transitions and universal laws of a physical system without ever simulating it—simply by examining the raw weights of neural networks trained to model it? This paper introduces JEPAWG, an interpretable hypernetwork that maps physical parameters directly to neural network weights via a clean, structured latent space. By treating network weights themselves as a new kind of physical observable, the authors both generate functional simulators for unseen physical regimes and read fundamental physics right off the geometry of weight space.
What Problem Does This Paper Address?
In non-perturbative physics, lattice field theory discretizes spacetime onto a grid to study everything from quark confinement to magnetism. A theory's equations are defined by bare input parameters called coupling constants ($g$), like mass and interaction strength. However, bare couplings are terrible predictors of actual macroscopic behavior; figuring out what a system actually does (like where a phase transition occurs) usually requires expensive Monte Carlo simulations.
Recently, physicists have turned to normalizing flows—invertible generative neural networks—to sample these systems efficiently. Yet two bottlenecks remain:
- Cost: Each flow typically has to be trained for a single set of couplings, making it expensive to scan across a phase diagram.
- Interpretability: Even when a flow learns to sample a physical system, its weights ($\theta$) are an inscrutable sea of thousands of numbers.
Meanwhile, AI interpretability research faces the mirror-image problem: we want to know what neural networks learn, business-as-usual ML datasets (like ImageNet) lack rigorous, analytical "ground truth" for what internal representations should look like. By pairing hypernetworks with physics, the authors use well-understood quantum field theories as a mathematically exact testbed for decoding neural weight spaces, while building a fast generator for new physics models.
Methods
To connect bare physical parameters ($g$) to high-dimensional network weights ($\theta$), the authors adapt Yann LeCun’s Joint-Embedding Predictive Architecture (JEPA)—traditionally used for images and video—to neural network weight spaces for the first time.
Here is how the JEPAWG (JEPA-based Weight Generator) pipeline works:
- Weight Canonicalization: Neural networks have built-in symmetries—you can permute hidden neurons or flip signs without changing the network's output. Before training, the authors algebraically map every network’s weights to a unique representative in its symmetry orbit so equivalent networks don't look artificially different.
- Joint Latent Alignment: Separate encoders map couplings $g$ and canonicalized flow weights $\theta$ into a 16-dimensional latent space, while a predictor network aligns them ($P(\mathbf{z}_g) \approx \mathbf{z}_\theta$). Crucially, they train this backbone using a modified VICReg loss without the standard covariance term, allowing the representation to naturally compress onto a low-dimensional manifold rather than forcing variance across all 16 axes.
- Frozen-Backbone Decoding: Once the latent space is shaped purely by the shared structure between couplings and weights, the encoders are frozen and a lightweight decoder $D_\theta$ is trained to map predicted embeddings back into functional network weights $\hat{\theta}$ for unseen theories.
Datasets
Instead of standard static datasets, the data here are model zoos—collections of neural networks trained across parameter grids:
- 2D Scalar $\phi^4$ Lattice Field Theory: A 19 $\times$ 19 grid of couplings $(m^2, \lambda)$ across periodic square lattices of sizes $L = 6$ through $11$. Each data point is a normalizing flow with $d_\theta = 19,689$ parameters. Notably, to mimic realistic scenarios where models in different regimes are trained separately, they construct a challenging "multi-seed" dataset where different halves of the grid come from independently seeded flows, creating sharp discontinuities in weight space.
- Parametric Dynamical Systems: Model zoos of causal temporal convolutional networks (TCNN-CD) trained to forecast four classic chaotic/nonlinear systems: the Lorenz, Rössler, and Brusselator ODEs, plus the discrete Hénon map.
Key Insights and Ideas
- Network weights are a physical observable: If you measure how rapidly the trained weights $\theta(g)$ deform as you nudge the bare couplings $g$ (mathematically, computing the pullback metric), a sharp geometric ridge appears right along the physical phase transition—without ever drawing a single sample from the network.
- Physics localizes where it belongs: When partitioning the flow's 19,689 weights by architectural role, local convolutional weights completely ignore the phase transition. The critical ridge is carried exclusively by the non-local parameters (Fourier and zero-mode scalings), matching the physical intuition that phase transitions are driven by long-range correlations spanning the whole system.
- Reconstruction objectives break on multi-seed weights: Standard autoencoders (AE/VAE) try to reconstruct every quirk of the weights, causing them to memorize random initialization seeds and shatter the latent space into disconnected islands. Because JEPAWG only predicts what $g$ and $\theta$ share, it stitches disjoint weight manifolds into a single, smooth physical sheet.
- Emergent Renormalization Group (RG) awareness: Bare couplings mean different things on different lattice sizes ($L$). Yet when comparing embeddings across lattices $L \in \{6,\dots,11\}$, theories that represent the same macroscopic physics naturally cluster together in JEPAWG's latent space according to finite-size scaling laws.
Key Results
- Exact Dimensionality Recovery: Despite being given a 16D latent space, JEPAWG compresses the 19,689D weight vectors onto an intrinsic dimension of 2.01 $\pm$ 0.06 (putting 98.5% of variance in two principal axes), matching the true 2D $(m^2, \lambda)$ coupling plane. AE and VAE baselines inflate this to 3.68 and 4.88.
- Superior Multi-Seed Generation: Evaluated by Effective Sample Size (ESS, where 1.0 is a perfect sampler), JEPAWG achieves 0.88 ESS when interpolating across the discontinuous two-seed grid, crushing VAE (0.40), AE (0.33), and PCA (0.30). Even when fragmenting training data into 4 and 8 independent seeds, JEPAWG stays functional (0.66 and 0.44 ESS) while baselines collapse ($\le 0.26$).
- Recovering Universal Exponents: Scanning across lattice pairings to see which scaling shift aligns their latent spaces best yields an optimal correlation-length exponent $\nu^*$ with per-gap medians clustering right around the exact 2D Ising universality ground truth of $\nu = 1$ (e.g., $\nu^* = 1.00^{+0.08}_{-0.06}$ for $L: 6 \to 11$).
- Bifurcations and Feigenbaum's Constant: Applied to dynamical systems forecasters, the Jacobian norm of JEPAWG's decoded weights cleanly traces Hopf bifurcation curves in the Brusselator and Lorenz systems, and pinpoints the first five period-doublings of the Hénon map—yielding successive interval ratios (4.97, 4.15, 4.49) that qualitatively approximate the universal Feigenbaum constant ($\delta \approx 4.669$).
Limitations and Future Work
The authors are candid about current boundaries:
- Scale and Toy Systems: The physics experiments are restricted to a simple 2D scalar theory on small lattices ($L \le 11$), and the dynamical systems have low-dimensional, already-known bifurcations. Larger lattices are needed for precision RG measurements rather than qualitative consistency.
- Extrapolation Limits: Generation quality degrades the further you step outside the training window, failing completely for all methods in the most strongly symmetry-broken corner of the phase diagram ($\text{ESS} \le 0.07$), and losing chaotic trajectories within a few Lyapunov times.
- The "Model Zoo" Bottleneck: Training JEPAWG requires first building a dataset of hundreds of fine-tuned networks. Finding cheaper ways to construct model zoos will be crucial for scaling this approach to the ultimate prize: 4D gauge theories (like QCD) or complex systems with unknown phase diagrams, where weight-space geometry could become a genuine tool for scientific discovery.
Summary updated