FS-VAE

Frequency-Steered VAEs: Restoring Fine Details in Low-Resolution Latents

1Boston University, 2École Polytechnique, 3Université Paris-Saclay
Ground truth, SD-VAE, SD-VAE-ft-MSE and FS-VAE reconstructions at 256x256 with face crops and F-Sim scores

FS-VAE recovers the fine-grained detail lost at low resolution by steering frequency information during the decoding stage of the VAE. Just the VAE's decoder is finetuned, without expanding the channels, relying on external foundation models, or retraining the downstream diffusion model.

Abstract

Latent diffusion models (LDM) rely on VAEs to compress visual inputs for computational efficiency. Through an in-depth interpretability analysis, we show that this compression disproportionately degrades high-frequency information at lower spatial resolutions, discarding fine details such as facial features or text patterns. Building on this insight, we propose a cross-resolution finetuning framework we call FS-VAE that uses a higher-resolution VAE as a teacher to supervise its lower-resolution counterpart, recovering lost frequency information via a band-wise steerable-pyramid objective. By preserving the original architecture and latent dimensionality, FS-VAE acts as an efficient, plug-and-play replacement for existing LDM pipelines.

What Low-Resolution VAEs Lose

We decompose each image with a steerable pyramid and systematically swap subbands from the teacher ŷT (512²) or ground-truth image IG into the student reconstruction ŷS (256²), then measure identity preservation (F-Sim).

Band swap test

Frequency Band Swap Test: just swapping the L1 band increases the absolute F-Sim by 0.43.

Average F-Sim gains per swapped band for four VAEs

Average F-Sim gains on 1000 TokBench faces. Mid- to higher frequency bands such as L1 and L2 are where signal is lost in 4-channel VAEs, while L0 and L1 is where most information is lost in 16-channel VAEs.

Takeaways from Interpretability Analysis of VAEs

  1. The loss of information between the 256² and 512² reconstructions can be precisely localized in the frequency domain.
  2. Most information is lost in the mid- to high-frequency bands of low-resolution VAEs.
  3. The loss of high frequency information is more pronounced in lower capacity VAEs.

Method

FS-VAE overview

Overview of FS-VAE: The teacher is a frozen VAE that takes a higher-resolution image. The student encodes the same image at a lower resolution with the same frozen encoder, and only its decoder is trained.

Stage 1: Self-distillation in the frequency bands

For each sub-band k, we take the pixel wise error on the magnitude maps between the teacher and student, normalized by the teacher's energy in that band, so low frequencies do not dominate the gradient:

\[ r_k = \frac{\langle |a^T_k - a^S_k| \rangle}{\langle a^T_k \rangle + \varepsilon}, \qquad \mathcal{L}_{\text{dist}} = \frac{\sum_k \omega_k r_k}{\sum_k \omega_k} \]

Fine-tuning only the decoder preserves the latent representation and eliminates the need to retrain downstream diffusion models.

Stage 2: Adversarial post-tuning

In 4-channel VAEs, \(\mathcal{L}_{\text{dist}}\) introduces a subtle periodic grain artifact, visible as bright spots in the residual power spectrum. We briefly post-tune the decoder with ℓ1, LPIPS and a PatchGAN adversarial loss, which suppresses these spectral spikes and restores clean reconstructions.

Stage 1 artifacts and residual power spectra

(a) High-frequency artifacts introduced by Stage 1 are removed by Stage 2. (b) Power spectrum of the residual, averaged over 200 images: the bright spots after Stage 1 are eliminated after Stage 2.

Results

Stage 1 restores high-frequency details missing from the 256² baseline, with substantial gains on small faces (s < 0.2: +8.7% and +10.2%). In a user study, FS-VAE was preferred in 77% of overall comparisons. For video, adding the steerable pyramid term to RefDecoder improves PSNR, SSIM, LPIPS, rFID and rFVD on TokBench (rFID 9.70 → 9.11, rFVD 9.65 → 8.11).

Face size (relative scale s)s < 0.10.1–0.20.2–0.3s > 0.3
SD-VAE ft-MSE0.20900.23680.40540.7204
FS-VAE, stage 10.2271 +8.7%0.2610 +10.2%0.4258 +5.0%0.7318 +1.6%

Face similarity (F-Sim) by face size on TokBench.

TokenizerPSNR ↑SSIM ↑LPIPS ↓rFID ↓rFVD ↓F-Sim ↑
Image VAEs · 4-channel latent
SD-VAE-ft-MSE26.150.77030.15367.86–0.4542
+ finetune (ℓ1 + LPIPS + GAN)25.860.76720.15157.38–0.4595
+ FS-VAE, stage 126.360.78040.15259.04–0.4729
+ FS-VAE, stage 1+226.150.77600.15037.76–0.4667
SDXL-VAE26.530.79040.14717.10–0.5011
+ FS-VAE, stage 126.780.79810.14678.37–0.5116
+ FS-VAE, stage 1+226.760.79740.14567.58–0.5106
Video VAEs · 16-channel latent
Wan 2.1 VAE30.550.90560.11699.138.300.5215
+ FS-VAE, stage 130.610.90500.11689.548.800.5219
RefDecoder30.530.90620.120310.3710.680.5533
+ finetune (ℓ1 + LPIPS)30.990.91080.11519.709.650.5644
+ FS-VAE, stage 131.130.91300.11219.118.110.5684

Reconstruction quality on TokBench across image and video autoencoders. Bold: best within each block.

Compatibility with Diffusion Models

DiT-XL/2 generations decoded with SD-VAE ft-MSE and FS-VAE

Generations from DiT-XL/2 decoded with the baseline decoder (top) and with FS-VAE (bottom). Both decode the same sampled latents, so any improvement comes from the decoder alone.

Interactive Comparison

Ground truth on the left, the selected decoder's 256² reconstruction on the right. Drag to compare.

Ground truth FS-VAE

Example

Decoder · F-Sim ↑

Full 256x256 input with the face crop marked

Input IS (256²)