Spectrum Matching: a Unified Perspective for Superior Diffusability in Latent Diffusion

Mang Ning, Mingxiao Li, Le Zhang, Li Liu, Matthew Blaschko, Albert Ali Salah, Itır Önal Ertuğrul

TL;DR

Researchers have proposed the Spectrum Matching Hypothesis, a unified framework to explain why some latent spaces are easier for diffusion models to learn than others. By aligning the frequency characteristics of VAE latents with the natural learning biases of diffusion models, they achieve significantly better image generation quality on benchmarks like CelebA and ImageNet.

What Problem Does This Paper Address?

In the world of Latent Diffusion Models (LDMs)—the tech behind tools like Stable Diffusion—we typically use a two-stage process: first, a Variational Autoencoder (VAE) compresses an image into a "latent space," and then a diffusion model learns to generate data within that compressed space.

However, there is a frustrating paradox: better reconstruction does not equal better generation. A VAE can be nearly perfect at reconstructing an image (low MSE), yet produce a latent space that is "noisy" or "jagged," making it incredibly difficult for the diffusion model to learn the underlying patterns. This quality of being easy to learn is called diffusability.

Previous works tried to fix this with various "hacks"—like downsampling latents or aligning them with foundation models (DINOv2)—but we lacked a unified theory as to why these methods worked. This paper seeks to provide that missing "spectral" perspective.

Methods

The authors introduce the Spectrum Matching Hypothesis, which consists of two main components:

  1. Encoding Spectrum Matching (ESM): The authors theoretically prove that diffusion models trained with Mean Squared Error (MSE) are naturally biased toward learning low-to-mid spatial frequencies. To play into this bias, ESM regularizes the VAE encoder so that the latent space follows a "flattened" version of the natural image power spectrum. This prevents the latent space from becoming "over-whitened" (too noisy) or "over-smoothed."
  2. Decoding Spectrum Matching (DSM): This ensures that specific frequency bands in the latent space correspond to the same frequency bands in the reconstructed image. They implement this using shared spectral masking: during training, they apply the same random frequency mask (using a 2D Discrete Cosine Transform) to both the image and the latent, forcing the decoder to reconstruct specific scales accurately.

Additionally, they extend this logic to Representation Alignment (REPA). They show that the effectiveness of aligning diffusion models with external features (like DINO) depends on "directional spectral energy." They propose using a Difference-of-Gaussians (DoG) band-pass filter to preprocess these features, further boosting performance.

Datasets

The researchers evaluated their approach on two standard generative modeling benchmarks:

  • CelebA ($256 \times 256$): A dataset of celebrity faces used for unconditional generation.
  • ImageNet ($256 \times 256$): A massive, diverse dataset used for class-conditional generation.

They compared their "ESM-AE" and "DSM-AE" models against the standard SD-VAE and other recent state-of-the-art regularization methods like Scale Equivariance.

Key Insights and Ideas

  • Diffusion is a Low-Pass Learner: The math shows that the "learnable signal power" in a diffusion model decays rapidly as frequency increases. If your latent space puts too much important information in high-frequency "noise," the diffusion model will struggle to find it.
  • The Flattening Tendency: From an information theory standpoint, a VAE encoder naturally wants to "whiten" or flatten the spectrum to maximize the information it can carry. The authors show that while some flattening is good (it makes the latent easier to learn), standard VAEs often overdo it, creating "over-noisy" latents.
  • A Unified Theory: The paper successfully re-interprets several disparate methods (VA-VAE, EQ-VAE, Scale Equivariance) as special cases of Spectrum Matching. This suggests that "frequency alignment" is the hidden mechanism behind many recent successes in the field.
  • Phase Over Magnitude: In their REPA analysis, they find that the direction (spatial structure) of feature tokens is more important for diffusion than their absolute magnitude.

Key Results

  • Superior Generation: On CelebA, the DSM-AE achieved a generation FID (gFID) of 4.44, significantly outperforming the standard SD-VAE (6.63) and Scale Equivariance (5.87).
  • Faster Convergence: Models trained with Spectrum Matching reached higher quality levels with fewer training steps. On ImageNet, DSM-AE consistently outperformed the baseline both with and without additional representation alignment (REPA).
  • Visual Clarity: PCA visualizations of the latent spaces show that ESM and DSM produce much "smoother" and more semantically coherent latents compared to the grainy, noisy latents produced by standard VAEs.
  • REPA Improvement: Their proposed REPA-DoG method achieved a gFID of 4.98 on ImageNet, surpassing the previous state-of-the-art iREPA (5.07).

Limitations and Future Work

  • Image-Centric: The study focuses primarily on image VAEs. The authors acknowledge that extending this to video autoencoders is a crucial next step, as temporal frequency (how things change over time) adds a whole new dimension to the spectrum.
  • Computational Constraints: While the methods are efficient, the experiments were conducted on $256 \times 256$ resolutions. Testing these hypotheses on ultra-high-resolution models (like Flux or SDXL) at scale remains for future work.
  • Fixed Masks: The current DSM uses a predefined set of triangular masks; exploring learnable or adaptive frequency masks could potentially yield even better results.

Summary updated

BibTeX
@misc{ning2026spectrum,
  author = {Mang Ning and Mingxiao Li and Le Zhang and Li Liu and Matthew Blaschko and Albert Ali Salah and Itır Önal Ertuğrul},
  title = {{Spectrum Matching: a Unified Perspective for Superior Diffusability in Latent Diffusion}},
  year = {2026},
  eprint = {2603.14645},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.14645},
}
Figure