Generative Associative Memory via Equilibrium Matching

Adrian Rodriguez, Benjamin Hoover, Yunhui Guo, Yilun DuNFAM @ ICLR 2026

TL;DR

This paper introduces a "Generative Associative Memory" by combining the Equilibrium Matching (EqM) training objective with the Energy Transformer (ET) architecture. This novel approach ensures that generative models inherently respect energy conservation principles, leading to more interpretable and stable image generation, particularly when scaling the model's depth.

What Problem Does This Paper Address?

Modern generative models, like diffusion and flow-based methods, have achieved impressive results but often rely on complex, unconstrained architectures. While methods like Equilibrium Matching (EqM) aim to learn generative processes as gradient descent on an energy landscape, they typically use standard transformer backbones that don't inherently guarantee the "conservative vector field" required for true energy conservation. This can lead to less stable or interpretable generation. The paper addresses this by proposing an architecture (Energy Transformer) that is designed to enforce these energy guarantees, bridging the gap between explicit associative memory principles and state-of-the-art generative modeling.

Methods

The core of this work is the fusion of two key components:

  • Energy Transformer (ET): This is a Modern Hopfield Network architecture where the forward pass is explicitly defined as gradient descent on a global scalar energy function. Unlike standard transformers that use arbitrary feed-forward layers, ET's latent tokens interact and "relax" towards a low-energy state. This architecture inherently enforces a conservative vector field.
  • Equilibrium Matching (EqM): This training objective is used to shape the energy landscape that the ET parameterizes. EqM learns a time-invariant energy gradient field that guides data towards a manifold of low energy. The training process essentially teaches the ET to predict the gradient of this energy landscape.

By training the ET with the EqM objective, the authors create a system where the architecture guarantees energy conservation, and the training shapes that energy landscape for generative purposes. The paper also explores architectural choices like positional encoding (learned vs. fixed 2D sinusoidal) and the impact of temporal recurrence (iterations within a block) versus depth (stacking blocks).

Datasets

The primary dataset used for training and evaluation is CIFAR-10.

Key Insights and Ideas

  • Depth is King for Energy-Based Generation: The most significant finding is that scaling the depth (number of stacked blocks) of the Energy Transformer architecture dramatically improves generation quality. This suggests that hierarchical energy landscapes are crucial for capturing complex data distributions.
  • Fixed Positional Encoding Scales Better with Depth: While learned positional encoding offers a slight advantage in shallow models, fixed 2D sinusoidal positional encoding becomes superior in deeper architectures. This indicates that a rigid spatial grid provides a more consistent inductive bias for optimizing complex, deep energy landscapes.
  • Temporal Recurrence is Less Reliable than Depth: Iterating the gradient descent within a single block (temporal recurrence) does not consistently improve generation quality and can even lead to performance degradation. This makes architectural depth a much more reliable scaling lever.
  • Energy Conservation is Achievable and Beneficial: By using an architecture that inherently enforces energy conservation, the authors demonstrate a path towards more principled and potentially more stable generative models, even if it comes with some initial trade-offs in expressivity compared to unconstrained models.

Key Results

The paper demonstrates competitive generative performance on CIFAR-10:

  • A single-block ET (L=1) achieved an FID of 74.65.
  • Scaling to 4 blocks (L=4) with fixed 2D positional encoding significantly improved FID to 30.49.
  • Further scaling to 8 blocks (L=8) with fixed 2D positional encoding achieved the best FID of 28.56, outperforming a baseline unconstrained EqM model (SiT-S/2) with comparable parameters (8.07 FID for the baseline, but it's a different architecture).
  • The paper also shows that Classifier-Free Guidance (CFG) is beneficial, improving FID from 79.72 to 74.65 for a shallow model.

Limitations and Future Work

  • Expressivity Trade-off: The authors acknowledge that the structural constraints for energy guarantees might limit immediate expressivity compared to unconstrained transformers. Specifically, the Hopfield Network's single projection and lack of inter-head communication are noted limitations.
  • Bridging the Gap: Future work aims to close this performance gap by developing energy-compatible innovations such as:
  • Energy-preserving head mixing.
  • Integrating class-conditional energy terms at every block.
  • Architectures that capture multiscale hierarchy while preserving a global energy potential.
  • Exploring more advanced sampling strategies beyond simple gradient descent.

Summary updated

BibTeX
@inproceedings{rodriguez2026generative,
  author = {Adrian Rodriguez and Benjamin Hoover and Yunhui Guo and Yilun Du},
  title = {{Generative Associative Memory via Equilibrium Matching}},
  booktitle = {NFAM @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=4zjhUaeeVh},
}

Loading related content...

Figure