Align & Invert: Solving Inverse Problems with Diffusion and Flow-based Models via Representational Alignment

Loukas Sfountouris, Giannis Daras, Paris Giampouras

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.

Align & Invert architecture and qualitative comparison showing improved reconstruction of fine details.

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 efficiency gains: LPIPS vs. Discretization Steps across different inverse tasks.

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

Abstract

Enforcing the alignment of internal representations in diffusion or flow-based models with those from pretrained self-supervised models during training has recently been shown to provide a powerful inductive bias, significantly improving both convergence speed and the quality of generated images. In this paper, we move beyond training and instead focus on inverse problems, where pretrained diffusion or flow-based models are used as {\it priors}. We propose applying {\it representational alignment} of diffusion/flow-based models with a {\it pretrained self-supervised visual encoder}, such as \textsc{Dinov2}, for guidance at inference time. Although the ground truth signal is unavailable in inverse problems, we show that representational alignment based on approximations of the ground truth can yield significant gains, steering the reverse process of diffusion/flow-based models toward higher-quality reconstructed images. We provide theoretical insights by uncovering a connection between representational alignment and perceptual metrics. Under mild assumptions, we further show that our approach can improve the perception–distortion trade-off frontier, i.e., enhance perceptual quality with negligible degradation in distortion. Finally, we demonstrate its versatility by integrating it into multiple state-of-the-art solvers. Extensive experiments on super-resolution, box inpainting, Gaussian deblurring, and motion deblurring show that our proposed method consistently enhances reconstruction quality.
BibTeX
@misc{sfountouris2025align,
  author = {Loukas Sfountouris and Giannis Daras and Paris Giampouras},
  title = {{Align \& Invert: Solving Inverse Problems with Diffusion and Flow-based Models via Representational Alignment}},
  year = {2025},
  eprint = {2511.16870},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.16870},
}
Figure