Introduction
Modern generative models, particularly Diffusion and Flow Matching, have achieved remarkable success by learning non-equilibrium dynamics. These models are typically "time-conditional," requiring precise knowledge of the noise level (the timestep $t$) to perform denoising. This dependency imposes rigid constraints, requiring fixed noise schedules and integration over specific time horizons. In contrast, Energy-Based Models (EBMs) offer an "equilibrium" perspective where sampling follows a landscape to a local minimum. However, EBMs have historically struggled with training stability and sample quality.
This paper introduces Equilibrium Matching (EqM), a framework that bridges this gap. EqM replaces the time-dependent velocity fields of diffusion models with a time-invariant equilibrium gradient over an implicit energy landscape. This approach combines the stability of flow-based models with the flexibility of EBMs, achieving a state-of-the-art FID of 1.90 on ImageNet 256×256.
Methodology: From Velocity to Equilibrium Gradients
The core innovation of EqM is the shift from learning a velocity field $v_t(x)$ to an equilibrium gradient field $f(x)$. While flow matching predicts how to move at a specific time $t$, EqM learns how to move toward the data manifold regardless of the current state's noise level.
Training and Target Gradients
EqM uses a corruption scheme similar to flow matching: $x_\gamma = \gamma x + (1-\gamma)\epsilon$. The model $f(x_\gamma)$ is trained to match a target gradient that vanishes as it approaches real data. The authors identify that simply removing time conditioning from diffusion models fails because the resulting gradients are incompatible with equilibrium dynamics. To solve this, they introduce Truncated Decay, where the gradient remains constant in high-noise regions and decays linearly to zero at the data manifold, ensuring data points act as stable local minima.
Optimization-Based Sampling
Because the learned landscape is time-invariant, inference is treated as an optimization problem. Instead of standard ODE solvers, EqM utilizes Nesterov Accelerated Gradient (NAG). This allows for adaptive step sizes and "adaptive compute," where the sampler stops automatically once the gradient norm falls below a threshold, potentially reducing function evaluations by up to 60%.
Experimental Results
EqM was evaluated primarily on ImageNet 256×256 and CIFAR-10, demonstrating superior performance and scalability compared to existing flow-based baselines like SiT.
Key Findings
- State-of-the-Art Generation: EqM-XL/2 achieved an FID of 1.90 on ImageNet 256×256, outperforming SiT (2.06).
- Scalability: As shown in the scaling plots, EqM consistently maintains a performance lead over SiT across different model sizes and patch resolutions.
- Zero-Shot Denoising: Due to its time-invariant nature, EqM can denoise partially corrupted images without being explicitly told the noise level—a task where standard Flow Matching typically fails.
- OOD Detection: EqM achieved an average AUROC of 0.68 for Out-of-Distribution detection, significantly outperforming previous EBMs like IGEBM (0.50).
Discussion and Future Work
EqM successfully demonstrates that time-invariant, equilibrium-based dynamics can match or exceed the performance of time-dependent flow models. While the implicit gradient model performs exceptionally well, explicit energy variants (EqM-E) still lag in generation quality, likely due to optimization challenges with $L_2$ norm objectives. Future research may explore more advanced convex optimization techniques to further accelerate sampling and refine explicit energy landscapes.
Summary updated