arXiv:2610.20761cs.CVOct 2026

Manuscript Offprint

arXiv:2610.20761

Purify Before You Align: Improving Representation Alignment for Diffusion Models

Yingheng Wang, Yaoqiang Li, Yaqin Wu, Junwen Bai, Jiatao Gu, Christopher De Sa, Volodymyr Kuleshov

ABSTRACT

Representation alignment improves and accelerates diffusion training by encouraging intermediate features to match a pretrained visual encoder. However, standard alignment matches pretrained representations without distinguishing what information may be more useful for generation. We introduce local appearance purification (LAP), which improves generation quality and makes encoders such as MAE more effective alignment targets by removing locally predictable content and aligning to the residual. LAP modifies only the alignment target, and requires no changes to diffusion training or inference. Through controlled interventions within a fixed encoder, we show that effective alignment depends on what information the target emphasizes, not simply how much image information it contains. Our theory gives a variational interpretation of standard alignment and, for fixed local predictors, a sum of token-wise information bounds conditioned on local appearance. To understand why purification benefits some encoders more than others, we derive an exact constant-readout test that measures how well the target can be matched without using the diffusion model's hidden state. LAP improves generation quality across five pretrained representations (MAE, AIMv2, CLIP, DINOv2, DINOv3), with the largest gain for MAE: on ImageNet-256 with SiT-B/2, it reduces FID from 53.1 to 42.3. Its gains persist with stronger alignment recipes and tokenizers. Computed before diffusion training, the constant-readout score predicts the benefit of purification (Spearman ρ=0.94\rho = 0.94 across 13 encoders). Code and checkpoints are on the project page:

https://yingheng-wang.com/LAP

(a) Purify the alignment target

(b) Purification improves generation

Figure

Figure

Figure 1: Purification improves generation by changing the alignment target. (a) LAP subtracts a local prediction and aligns to the residual. (b) Both LAP-L and LAP-N improve MAE-based generation for SiT-B/2 and surpass DINOv2 REPA in the development setting.

1 INTRODUCTION

Representation alignment has become part of the standard recipe for training diffusion models. REPA (Yu et al., 2025) encourages intermediate denoiser features to match those of a frozen pretrained encoder, substantially accelerating training and improving sample quality. A growing line

∗^{*}Corresponding author: yingheng@cs.cornell.edu.

†^{\dagger}Independent researcher.

Code: https://github.com/yingheng-wang/LAP

(a) DINOv2 target decomposition

Figure

Cosine to query patch

-1

1

(b) Alignment outcome

Alignment targetFID ↓
Original41.75
Predictable component56.71
Residual (LAP-L)41.47
No alignment53.92

Predictable part hurts

Residual keeps the benefit

Figure 2: One encoder, opposite alignment effects. (a) DINOv2 features split into a locally predictable component (about 2%2\% of centered feature variance and has rank at most 17) and a residual. Each map shows the similarity of every patch to the red-boxed patch (Appendix D). (b) Aligning to the locally predictable component hurts generation, whereas the residual (LAP-L) keeps the benefit.

of work builds on this idea (Leng et al., 2025; Wang et al., 2025b; Wu et al., 2025; Yang et al., 2026). However, one important choice remains largely empirical: which encoder should provide the alignment target? Different pretrained encoders lead to very different generation quality, and we still lack a clear principle for what makes a representation useful for alignment.

The puzzle is sharpest for MAE (He et al., 2022). Since diffusion models learn to recover clean images from noise, features that preserve reconstructive information might seem especially suitable. MAE features predict clean-image content far better than DINOv2 (Oquab et al., 2024), yet yield smaller generation gains in our development comparison (Figure 3). Recent work shows that target processing matters, including spatial operations in iREPA (Singh et al., 2026) and other target transformations (Shin et al., 2026; Ning et al., 2026). We ask a more basic question:

What information should an alignment target ask the denoiser to match?

To answer this, we hold the pretrained encoder fixed and intervene on the information selected for alignment. For DINOv2, aligning only to the locally predictable component performs worse than no alignment, while its residual retains the full benefit (Figure 2). Likewise, making the aligned representation more predictive of the denoising target improves prediction but worsens generation (Section 3.1). Together, these results show that effective alignment depends on what information the target emphasizes, not simply how much image information it contains.

These results suggest a simple view: the denoising objective already provides a strong reconstruction signal, so alignment is most useful when it emphasizes information beyond what denoising already encourages. This view also suggests a simple fix without replacing the encoder. Local appearance purification (LAP) removes target content predictable from local appearance and aligns the denoiser to the residual, using linear or nonlinear local predictors (Figure 4). Across five visual teachers (MAE, AIMv2, CLIP, DINOv2, DINOv3), LAP improves generation quality, with the largest gains for MAE. On ImageNet-256 with SiT-B/2, LAP reduces MAE-based FID from 53.1 to 42.3. Its gains persist when combined with stronger alignment recipes and tokenizers, showing that target purification complements improvements elsewhere in the alignment pipeline. Beyond natural images, LAP could make self-supervised reconstructive encoders useful alignment teachers in domains such as medical and scientific imaging, where suitable discriminative teachers may be unavailable or poorly matched to the data.

We also develop an information-theoretic view of purified alignment. Standard alignment maximizes a variational lower bound on the information that the hidden state carries about the teacher target. For a fixed local predictor, purified alignment instead bounds a sum of token-wise information quantities, each conditioned on that token's local appearance. However, a high alignment score need not imply an informative hidden state: if target tokens share a common direction, even a constant readout that ignores the hidden state can achieve a high cosine score. We derive the exact optimum of this constant readout in closed form, giving a diagnostic that can be computed before diffusion training.

In a matched comparison of 13 encoders, this score strongly predicts the benefit of purification (Spearman ρ=0.94\rho = 0.94), supporting its use to identify teachers likely to benefit from LAP (Section 5.5).

Contributions. (1) Through fixed-encoder interventions, we show that reconstruction predictability alone does not determine alignment quality. In particular, locally predictable content can hurt generation even when it is easy to match. (2) We introduce LAP, a family of target transformations that removes locally predictable content before alignment. LAP improves generation across multiple visual teachers, composes with stronger alignment recipes and tokenizers, and requires no encoder change or inference overhead. (3) We develop an information-theoretic view of raw and purified alignment and derive a closed-form constant-readout diagnostic for alignment achievable without the hidden state. Computed before diffusion training, this score predicts the benefit of purification across 13 encoders.

References (52)