Alias-Free Latent Diffusion Models: Improving Fractional Shift Equivariance of Diffusion Latent Space

Yifan Zhou, Zeqi Xiao, Shuai Yang, Xingang Pan

TL;DR

Latent Diffusion Models (LDMs) are notoriously sensitive to tiny input changes, often causing "flickering" or "texture sticking" in videos. This paper introduces Alias-Free Latent Diffusion Models (AF-LDM), which redesigns the LDM architecture and training process to be "shift-equivariant"—ensuring that a small shift in the input results in a predictable, smooth shift in the output. By combining anti-aliasing modules, a novel equivariance loss, and a redesigned attention mechanism, the authors achieve significantly more stable results for video editing and image translation.

What Problem Does This Paper Address?

While LDMs like Stable Diffusion produce stunning images, they struggle with consistency. If you shift the input noise or a latent feature by just a fraction of a pixel, the resulting image might look completely different or have textures that "stick" to specific screen coordinates rather than moving with the object.

This happens because of aliasing. In signal processing, aliasing occurs when high-frequency details are "folded" into lower frequencies because the sampling rate (the grid of pixels) is too low. In neural networks, operations like downsampling, upsampling, and non-linear activations (like ReLU) create these high-frequency "leaks."

Standard VAEs (top) exhibit significant aliasing and inconsistent reconstructions when the input is shifted by small amounts, whereas the proposed AF-VAE (bottom) maintains stability.

For tasks like video editing or super-resolution, this lack of "fractional shift equivariance" leads to a "bouncing effect" where textures jitter or jump unnaturally between frames.

Methods

The authors propose three main pillars to make LDMs alias-free:

  1. Alias-Free Architecture: Borrowing ideas from StyleGAN3 and Alias-Free GANs, they replace standard resampling with "Ideal Resampling" using Fourier-based (FFT) filters. They also wrap non-linearities between upsampling and downsampling stages to suppress high-frequency noise introduced during activation.
  2. Equivariance Loss: The authors discovered that even with alias-free modules, the training process tends to "amplify" any remaining aliasing to improve performance. To counter this, they introduce a loss function that explicitly penalizes the difference between a shifted input's output and a shifted version of the original output. This forces the network to remain band-limited (staying within the "safe" frequency range).
  3. Equivariant Attention: Standard self-attention is not shift-equivariant because the "keys" and "values" change based on the input's position. The authors propose Equivariant Attention (EA), which fixes the keys and values to a specific reference frame. This ensures that as the "query" (the current pixel being processed) shifts, it always looks at a consistent set of features.

Key Insights and Ideas

  • Architecture isn't enough: Simply adding anti-aliasing layers to a VAE doesn't work perfectly because the VAE's learning objective naturally tries to exploit high-frequency "leaks" to reconstruct sharp details. The Equivariance Loss is the necessary "policing" force that keeps the latent space clean.
  • The Attention Bottleneck: Self-attention is a hidden source of aliasing. Because it's a global operation, a shift in one corner of an image can subtly change the attention map for the entire image. Fixing the keys/values to a reference frame is essential for mathematical equivariance.
  • Iterative Accumulation: In diffusion, errors don't just happen once; they accumulate over dozens of denoising steps. Making each individual step alias-free leads to a massive compound improvement in final video stability.

Key Results

The authors use a metric called SPSNR (Shift Peak Signal-to-Noise Ratio) to measure how consistent a model is when inputs are shifted.

Comparison between Stable Diffusion's VAE and the proposed AF-VAE. As pixels are shifted, the AF-VAE produces a much more consistent latent representation, preventing the 'texture sticking' common in standard models.
  • VAE Stability: The AF-VAE achieved an Encoder SPSNR of 45.10, compared to just 25.07 for the standard Stable Diffusion VAE.
  • LDM Stability: The full AF-LDM reached a Latent SPSNR of 40.94, nearly double the 22.87 of the baseline LDM.
  • Qualitative Improvement: In video editing tasks, AF-SD eliminated the "flickering" and "texture sticking" seen in vanilla Stable Diffusion. It also showed much higher robustness to "warping," meaning it can handle complex camera movements better than previous models.

Limitations and Future Work

  • Training Cost: Implementing these changes requires retraining or significant fine-tuning of the VAE and U-Net, which is computationally expensive compared to "plug-and-play" inference-time tricks.
  • Reference Frames: The Equivariant Attention requires selecting a reference frame. While this works great for video (using the first frame), it's less clear how to best apply this to single-image generation without a natural reference.
  • Future Directions: The authors suggest extending this framework to other generative tasks like 3D generation and more complex video synthesis where spatial consistency is the primary hurdle.

Summary updated

BibTeX
@inproceedings{zhou2025alias,
  author = {Yifan Zhou and Zeqi Xiao and Shuai Yang and Xingang Pan},
  title = {{Alias-Free Latent Diffusion Models: Improving Fractional Shift Equivariance of Diffusion Latent Space}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00013},
}
Figure