AutoencoderDC
Autoencoder that compresses images up to 128x spatially so high-resolution diffusion runs on far fewer tokens.
Diffusion and generative · 537 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 362.9M
- Operations
- 537
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2025
- Cited by
- 3 (as of 19 October 2026)
- Authors
- Junyu Chen, Han Cai, Junsong Chen and others
- Source
- diffusers 0.41.0
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m137
- Graph hash
- 5e3b0e2e73de3064b60e03f40d3b2a728dfcee97dc7603e2eedf41fcd99187ba
- Skeleton hash
- c029d0516f3c8c3d63fc6bc9d3560d3badddbc5d49919a92ab3ccbd846c04e57
- Architecture hash
- 05f4c6120e7772c10ee6ba09dee33847d1c90dbd744604c703c1d8f5768fcd6d
- Diagram SHA-256
- 88d5cabc8fa55bb23acd02e3a537ad4fa6bb0b21e160f99cd5b786edd0cf7c22
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
diffusers.AutoencoderDC()
What it is
DC-AE, the Deep Compression Autoencoder, is a family of autoencoders built to accelerate high-resolution diffusion models by compressing images far more aggressively than the usual latent-space front end. Latent diffusion models typically rely on an autoencoder that reduces each spatial side by 8, and that moderate ratio holds up well, but reconstruction quality collapses when the compression is pushed toward 64. The paper makes the problem concrete with SD-VAE on ImageNet 256 × 256, whose reconstruction FID degrades from 0.90 to 28.3 when the ratio moves from f8 to f64.
The first fix is Residual Autoencoding, which adds non-parametric shortcuts so the network modules only have to learn residuals on top of a simple space-to-channel rearrangement. The second fix, Decoupled High-Resolution Adaptation, targets what the authors call the generalization penalty: high-compression autoencoders trained on low-resolution images lose accuracy when moved to high-resolution ones. Training is split into three phases: low-resolution full training, high-resolution latent adaptation, and low-resolution local refinement. In the high-resolution phase only the middle layers are tuned, which the authors found sufficient to address the penalty. The GAN loss is confined to the final phase, where only the head layers of the decoder are tuned while everything else stays frozen.
With both techniques the spatial compression ratio climbs to 32, 64 and 128 while reconstruction accuracy holds. On ImageNet 512 × 512, DC-AE improves the rFID from 16.84 to 0.22 for the f64c128 autoencoder and from 100.74 to 0.23 for f128c512. Handing the whole token-compression job to the autoencoder pays off downstream: replacing SD-VAE-f8 with DC-AE-f64 gave UViT-H 17.9× higher H100 training throughput and 19.1× higher inference throughput while improving ImageNet 512 × 512 FID from 3.55 to 3.01. Architecturally the model stays close to SD-VAE, except that it uses plain rather than variational autoencoders, since the two performed the same and the plain version is simpler. Transformer blocks are replaced with EfficientViT blocks to make the autoencoder friendlier to high-resolution images.
The captured member is the diffusers implementation, which the project README announced on 2024/12/24 together with DC-AE checkpoints in diffusers safetensors format. DC-AE and the EfficientViT block were later used in SANA, the authors' text-to-image diffusion model.
Key idea. Two techniques, Residual Autoencoding and Decoupled High-Resolution Adaptation, raise an autoencoder's spatial compression ratio to 128 while keeping reconstruction quality intact. Moving spatial compression from the diffusion model into the autoencoder consistently gives better FID.
- DC-AE
- Deep Compression Autoencoder
- AutoencoderDC
- high spatial compression autoencoder
- latent diffusion autoencoder
- image reconstruction
- image compression
- EfficientViT
- SANA
- f32
- f64
- f128
- residual autoencoding
- decoupled high-resolution adaptation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chen2025deepcompressionautoencoderefficient,
title={Deep Compression Autoencoder for Efficient High-Resolution Diffusion Models},
author={Junyu Chen and Han Cai and Junsong Chen and Enze Xie and Shang Yang and Haotian Tang and Muyang Li and Yao Lu and Song Han},
year={2025},
eprint={2410.10733},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2410.10733},
}