Abstract
Modern diffusion and flow-based generative models serve as powerful priors for solving inverse problems such as super-resolution and deblurring. However, these models often struggle with fine textures and require significant computational resources due to numerous discretization steps. We present Align & Invert, a framework that enhances image restoration by aligning the internal features of diffusion models with semantic representations from a pretrained DINOv2 encoder. By utilizing Representation Alignment (REPA) as a semantic "compass" during inference, our method improves reconstruction quality and perceptual realism while achieving up to a 4x reduction in sampling steps.
1. Introduction
Inverse problems involve recovering a high-quality "clean" image from a degraded measurement (e.g., blurred, downsampled, or masked). While generative models provide strong priors, they lack explicit semantic guidance during the reconstruction process, often leading to artifacts or loss of fine detail under severe degradation. Align & Invert addresses this by introducing semantic "anchors" derived from self-supervised visual encoders, steering the model toward more realistic solutions during the sampling trajectory.
2. Methods
The core of the framework is Representation Alignment (REPA). During the diffusion sampling process, a regularization term is added to align the diffusion model's internal hidden states with the features of a DINOv2 encoder. DINOv2 is chosen for its robustness to noise and blur, providing a stable semantic target even when the pixel-level ground truth is unavailable.
The process uses a proxy strategy: initially, alignment is performed against the DINOv2 features of the degraded measurement. As the denoising progresses, the proxy is updated using the model's current estimate of the clean image. Theoretically, maximizing this alignment is equivalent to minimizing the Maximum Mean Discrepancy (MMD) between feature distributions, acting as a local contraction in the latent space toward the clean image representation.
3. Experimental Results
The method was evaluated on ImageNet and FFHQ datasets across tasks including 4× super-resolution, box inpainting, Gaussian deblurring, and motion deblurring.
Quantitative results demonstrate significant gains in both quality and efficiency. On ImageNet super-resolution, REPA improved LPIPS from 0.238 to 0.217 and reduced FID from 123.82 to 86.88. Notably, the framework allows for a 4x reduction in discretization steps for super-resolution and Gaussian deblurring, and a 2x reduction for motion deblurring, while maintaining or exceeding the perceptual quality of baseline solvers like Diffusion Posterior Sampling (DPS).
4. Conclusion
Align & Invert demonstrates that semantic guidance via representational alignment significantly boosts the performance and efficiency of diffusion-based inverse problem solvers. While the method currently benefits most from models pretrained or finetuned with REPA, it offers a promising path toward faster, more robust image restoration. Future work may explore more sophisticated proxy evolution strategies to further refine the sampling trajectory.
Summary updated