Abstract
Diffusion models represent the state-of-the-art for solving inverse problems such as image restoration tasks. In the Bayesian framework, diffusion-based inverse solvers incorporate a likelihood term to guide the prior sampling process, generating data consistent with the posterior distribution. However, due to the intractability of the likelihood term, many current methods rely on isotropic Gaussian approximations, which lead to deviations from the data manifold and result in inconsistent, unstable reconstructions. We propose Equivariance Regularized (EquiReg) diffusion, a general framework for regularizing posterior sampling in diffusion-based inverse problem solvers. EquiReg enhances reconstructions by reweighting diffusion trajectories and penalizing those that deviate from the data manifold. We define a new distribution-dependent equivariance error, empirically identify functions that exhibit low error for on-manifold samples and higher error for off-manifold samples, and leverage these functions to regularize the diffusion sampling process. When applied to a variety of solvers, EquiReg outperforms state-of-the-art diffusion models in both linear and nonlinear image restoration tasks, as well as in reconstructing partial differential equations.
The Challenge of Manifold Drift in Inverse Problems
Diffusion models have revolutionized image restoration by serving as powerful priors. However, solving inverse problems requires balancing this prior with a likelihood term that ensures consistency with observed data. In practice, the true likelihood is mathematically intractable during sampling, forcing solvers to rely on Gaussian approximations.
These approximations often introduce "noise" that pushes the sampling trajectory away from the natural data manifold $\mathcal{M}$—the low-dimensional space where realistic data actually lives. The consequence is a loss of structural integrity, resulting in reconstructions with artifacts, anatomical inconsistencies, or physical implausibilities, particularly when sampling is accelerated with fewer steps.
EquiReg and Manifold-Preferential Equivariance
To address this, we introduce EquiReg (Equivariance Regularized) diffusion. Rather than refining the likelihood approximation itself, EquiReg introduces a global regularization term based on the geometric properties of the data. The core innovation relies on Manifold-Preferential Equivariant (MPE) functions.
A function is equivariant if a transformation of its input (e.g., a rotation) leads to a corresponding transformation of its output. We discovered that many standard neural networks, such as the encoders in Stable Diffusion or ResNet, naturally act as MPEs: they maintain low equivariance error for clean, on-manifold data but show significantly higher error for noisy or unrealistic samples.
EquiReg leverages this by calculating the equivariance error at each diffusion step. If the error is high, it suggests the model is drifting off the manifold, and the regularizer applies a gradient correction to steer the estimate back toward a symmetry-preserving, and thus more realistic, region of the state space.
Experimental Evaluation and Results
EquiReg was evaluated across diverse domains, including natural image restoration (FFHQ, ImageNet-1k), scientific computing (Helmholtz and Navier-Stokes equations), and text-to-image generation.
The results demonstrate that EquiReg consistently outperforms state-of-the-art solvers like DPS, PSLD, and SITCOM:
- Image Restoration: EquiReg improved the LPIPS (perceptual quality) of the ReSample method by 51% and the FID (distributional similarity) of DPS by 59%.
- Scientific Computing: It achieved a 7.3% to 7.5% relative reduction in error for solving complex physical equations compared to baselines.
- Efficiency and Stability: EquiReg-enhanced models remain stable even at low step counts (e.g., 50 DDIM steps), where baseline methods typically suffer severe quality degradation.
- Structural Integrity: In text-to-image tasks, EquiReg resolved anatomical errors, such as correcting the number of legs on a generated animal, by enforcing global geometric consistency.
Conclusion
EquiReg provides a robust, plug-and-play framework for regularizing diffusion-based inverse solvers. By utilizing the inherent symmetry-preserving properties of existing networks, it effectively keeps sampling trajectories "on the rails." Future work will explore automatic symmetry discovery to extend this approach to specialized datasets where relevant symmetries are not known a priori.
Summary updated