TL;DR
Representation alignment (REPA) is a powerful technique to accelerate diffusion model training, but it often fails when using reconstructive encoders like MAE. This paper introduces Local Appearance Purification (LAP), a simple pre-processing step that removes locally predictable details (like color and edges) from alignment targets. By forcing the model to align with the "abstract residual" instead of redundant local information, LAP significantly improves generation quality and makes a wide variety of self-supervised encoders effective teachers for diffusion.
What Problem Does This Paper Address?
In recent years, "representation alignment" has become a standard trick for training Diffusion Transformers (DiTs). By encouraging the model's intermediate features to match those of a frozen, pretrained visual encoder (like DINOv2 or CLIP), researchers have achieved faster convergence and better sample quality.
However, there is a puzzle: Why do some encoders work so much better than others? Specifically, Masked Autoencoders (MAE) are fantastic at predicting clean image content, yet they are notoriously poor alignment targets for diffusion. The authors hypothesize that the standard denoising objective already provides a strong signal for reconstructing local details. If the alignment target also emphasizes these same local features, it creates redundancy that can actually distract the model from learning the higher-level semantic structures necessary for high-quality generation.
Methods
The authors propose Local Appearance Purification (LAP). Instead of aligning to the raw features $z$ of a teacher encoder, they align to a "purified" residual $y^{pure} = z - d_\phi(X_p)$, where $d_\phi$ is a local predictor that tries to guess the encoder's features based only on local image patches ($X_p$).
The paper explores two versions of this purification:
- LAP-L (Linear): Uses a simple affine map to predict a feature token from its corresponding image patch. This is refitted independently for each minibatch.
- LAP-N (Nonlinear): Uses a small convolutional neural network trained before diffusion training to predict features from a local neighborhood of patches.
Crucially, LAP only modifies the alignment target. It requires zero changes to the diffusion model's architecture, the denoising loss, or the inference procedure.
Datasets
The authors evaluated their method using:
- ImageNet-1k (256x256): The primary benchmark for large-scale generative modeling.
- Dev-200: A 200-class subset of ImageNet used for rapid development and ablation studies.
- Aerial-Scene Datasets (RESISC45 and AID): Used to demonstrate that LAP helps when transferring pretrained encoders to specialized domains where high-quality "discriminative" teachers might not exist.
Key Insights and Ideas
- Redundancy is Harmful: The authors show that better clean-image prediction in an encoder often correlates with worse generation quality when used for alignment. As seen in Figure 3, MAE is the best at image prediction but the worst at alignment.
- The "Predictable Part" Hurts: In a striking experiment with DINOv2 (Figure 2), the authors split features into a "predictable" local component and a residual. Aligning only to the predictable part performed worse than no alignment at all, while the residual retained the full benefit of the original encoder.
- The Constant-Readout Test ($C_0$): The authors derived a simple diagnostic score that can be computed before training. It measures how much of an encoder's signal is just "shared structure" (like a global bias) that doesn't require looking at the specific image context. A high $C_0$ score (like MAE's 0.93) strongly predicts that an encoder will benefit from purification (Spearman $\rho = 0.94$).
Key Results
- Massive Gains for MAE: On ImageNet-256, applying LAP-N to an MAE teacher reduced the FID (Fréchet Inception Distance) from 53.1 to 42.3, bringing it close to the performance of much more complex discriminative encoders like DINOv2.
- Universal Improvement: LAP improved generation quality across all five tested encoders (MAE, AIMv2, CLIP, DINOv2, DINOv3).
- Robustness: The benefits of LAP persist even when using more advanced alignment recipes (like iREPA or sREPA) and different latent tokenizers (like REPA-E or EQ-VAE).
- Transferability: On aerial imagery, purified MAE outperformed DINOv2-based alignment, suggesting LAP is particularly valuable for specialized domains.
Limitations and Future Work
- Scope of Evaluation: The study primarily focused on the Scalable Interpolant Transformer (SiT) architecture and the ImageNet dataset. While results are consistent, the authors note that larger-model checks were limited by compute.
- Heuristic Nature of Residuals: LAP provides an "operational" residual based on what a local predictor can't see. It does not guarantee that the resulting features are purely "semantic" or "high-level."
- Predictive Calibration: While the $C_0$ score is a strong predictor of relative benefit, it does not yet provide a calibrated prediction of the exact FID gain a researcher should expect.
Summary updated