NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Loukas Sfountouris, Giannis Daras, Paris GiampourasNeurIPS 2026

TL;DR

When restoring degraded images—like unblurring a shaky photo or filling in a missing chunk—diffusion models often hallucinate weird artifacts or lose fine textures. This paper introduces an inference-time guidance technique that aligns a diffusion model's internal hidden states with semantic features from a pretrained DINOv2 encoder. The result is sharper, much more realistic image reconstructions achieved in up to 4× fewer sampling steps.

What Problem Does This Paper Address?

Imagine trying to reconstruct a clean image from a heavily blurred, pixelated, or partially erased observation. In the business, these are called inverse problems. Recently, pretrained diffusion and flow-based generative models have become the go-to priors for solving them: as the model iteratively denoises random static into a picture, you gently nudge it so the final output matches your degraded observation.

While this works remarkably well, diffusion models still struggle when degradations are severe or scenes have complex textures, often producing blurry patches or bizarre structural artifacts (like a horse with a mangled torso). This gets even harder in latent diffusion models, where images are compressed through a nonlinear encoder-decoder, warping the optimization landscape.

Meanwhile, a recent training technique called Representation Alignment (REPA) showed that forcing a diffusion model's internal layers to match the rich semantic features of a self-supervised vision encoder (like DINOv2) drastically speeds up training and boosts image quality. However, REPA was built for training, where you have clean ground-truth images to extract DINOv2 features from. The authors ask: Can we bring representation alignment to inference-time inverse problems, where the clean ground-truth image is the very thing we are missing?

Methods

Standard diffusion solvers guide generation at each step by balancing two things: moving toward natural-looking images (the prior) and matching the degraded input (measurement consistency).

The authors add a third force at inference time: a REPA reward. At each denoising step, they extract intermediate patch tokens from an internal transformer block of the diffusion model, pass them through a lightweight Multi-Layer Perceptron (MLP) projection head, and maximize their cosine similarity with target DINOv2 features.

Figure 1: Overview of our proposed framework. Left: Box inpainting results, where adding REPA improves perceptual quality. Right: Alignment between diffusion features and DINOv2 embeddings.

To bypass the missing ground-truth problem, they construct a proxy representation:

  1. Initialization: Early in the reverse diffusion process, they feed the degraded observation itself into DINOv2 to get an initial semantic target.
  2. Dynamic Updating: Once the denoising passes a specific cutoff timestep ($t_{\text{cutoff}}$) and the reconstruction becomes clearer, they swap the target to the DINOv2 features of the diffusion model’s current best guess of the clean image.

What’s great is that this acts as a plug-and-play regularizer for existing latent-space solvers (like Latent DPS and ReSample). Even if a diffusion model wasn't originally pretrained with REPA, you can freeze the diffusion model and train the tiny MLP projection head post-hoc at minimal cost.

Datasets

The main experiments evaluate 256×256 images from the validation splits of two standard natural-image benchmarks:

  • ImageNet (diverse natural scenes and objects)
  • FFHQ (human faces; also used to train a custom representation-aligned SiT-Base model from scratch)

No new benchmarks are introduced, though the authors note in the text that they also test sparse-view CT medical reconstruction in the appendix to probe out-of-domain generalization.

Key Insights and Ideas

  • DINOv2 is tough enough to handle bad inputs: Why does extracting features from a blurry or low-res image work as a guide? Because self-supervised encoders like DINOv2 are naturally invariant to minor degradations—they still "see" the high-level semantics of a dog or a face through the blur, providing a reliable anchor early on.
  • Aligning internal states beats aligning output pixels: You might wonder why we don't just decode the predicted image at each step, run it through DINOv2, and guide that directly. The authors test this and show it fails: backpropagating through both the DINOv2 encoder and the nonlinear VAE decoder creates an ill-conditioned mathematical mess. Tapping directly into the diffusion model's internal layers via a simple MLP gives clean, stable gradients.
  • Mathematical grounding in human perception: The authors prove two neat theoretical properties. First, maximizing REPA acts as a surrogate for minimizing Maximum Mean Discrepancy (MMD) in DINOv2 space—which correlates tightly with human perceptual judgment. Second, once the latent state gets reasonably close to the clean image, REPA updates act as a local contraction, actively pulling the trajectory toward the true clean latent to fix fine-scale artifacts.

Key Results

Integrating REPA into state-of-the-art latent solvers (Latent DPS and ReSample) across 4× super-resolution, box inpainting, Gaussian deblurring, and motion deblurring yields consistent perceptual wins:

  • Better Perceptual Realism: On ImageNet, adding REPA to Latent DPS drops FID (where lower means more realistic distributions) from 123.82 to 86.88 on 4× super-resolution, and from 152.96 to 102.99 on Gaussian deblurring. LPIPS (perceptual error) drops across the board on both ImageNet and FFHQ.
  • The Perception-Distortion Trade-off: Pixel-level metrics (PSNR and SSIM) stay roughly flat. That is expected: pixel-wise averages actually prefer safe, blurry guesses over sharp, realistic textures that might be shifted by a pixel.
  • Major Speedups: Because REPA steers the latent trajectory more directly, solvers need 2× to 4× fewer discretization steps to hit the same perceptual quality (LPIPS) as the baseline. Even with the slight per-step overhead of computing REPA, running 250 steps with REPA beats 1,000 steps without it in both quality and total wall-clock runtime.
Figure 2: Qualitative comparison of inverse problem reconstruction with and without REPA. The top block corresponds to box inpainting and the bottom block to Gaussian deblurring, while the left and right panels correspond to ImageNet and FFHQ, respectively. Within each panel, the first row corresponds to Latent DPS and the second row to ReSample.

Limitations and Future Work

The paper does not include a dedicated "Limitations and Future Work" section, though a few natural boundaries emerge from the theoretical and empirical analysis:

  • Local Regime & Proxy Dependence: Theoretically, the latent contraction guarantee only holds locally (once the global structure is mostly right), and its accuracy is bounded by how well the proxy features approximate the true image and how well the MLP aligns the spaces.
  • Pixel Fidelity vs. Realism: If an application strictly requires maximizing pixel-exact PSNR rather than perceptual realism, strong REPA regularization may trade away slight pixel-wise fidelity in favor of sharper details.

Summary updated

BibTeX
@inproceedings{sfountouris2026align,
  author = {Loukas Sfountouris and Giannis Daras and Paris Giampouras},
  title = {{Align $\textbackslash\{\}\&$ Invert: Solving Inverse Problems with Diffusion and Flow-based Models via Representation Alignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uh5JsNmPig},
}
Figure