AutoencoderRAE
A frozen DINOv2-style encoder with a trained ViT decoder, replacing the VAE for diffusion transformers.
Diffusion and generative · 567 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
- 112.6M
- Operations
- 567
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR (arXiv 2025)
- Cited by
- 318 (as of 22 November 2026)
- Authors
- Boyang Zheng, Nanye Ma, Shengbang Tong, Saining Xie
- Source
- diffusers 0.38.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
- m158
- Graph hash
- 634ac7dd6549ab0f8957cdf54148cf3302eaf43357a23a2fafa921c1baa84c39
- Skeleton hash
- c8a3f9b72bfcf1dd491ac95b7732966100a5c21d1c71599c7a77b98e24725bff
- Architecture hash
- e8138ad04472d728d89fae67122a5f2d4db6dd89eb995c7d31e37c19a8154c48
- Diagram SHA-256
- 1da819d86433ded2917df08f1b0eea6c090ad245c3c84948ca77652fc9553be9
- 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.AutoencoderRAE()
What it is
A Representation Autoencoder, or RAE, is an image autoencoder that keeps a frozen pretrained vision encoder and trains only a decoder to turn its features back into pixels. The authors built it to replace the VAE that diffusion transformers usually diffuse in, arguing that the autoencoder component has barely evolved. The pitch is that these models provide both high-quality reconstructions and semantically rich latent spaces.
The encoder is a standard ViT whose patch tokens are kept and layer-normalized while any class or register token is thrown away. A ViT decoder with its own patch size maps those tokens straight back to pixels. There is no compression step in between, unlike the convolutional VAE with its aggressive down- and up-sampling. The decoder is trained with L1, LPIPS and adversarial losses, following common practice in VAEs.
The traced build takes a 224 by 224 image in and returns a 256 by 256 reconstruction, which is exactly the trick the paper describes for DINOv2. The paper picks DINOv2 as the default encoder because it gives the strongest generation results. That is a deliberate trade, since MAE actually reconstructs best, reaching an rFID of 0.16. The decoder is also trained with noise-augmented decoding, adopted for all the paper's later experiments. It improves generation FID but slightly worsens reconstruction FID. With a ViT-B decoder the RAE already beats SD-VAE while being 14 times more efficient in GFLOPs.
Key idea. Replacing the VAE in latent diffusion with a frozen pretrained representation encoder plus a trained ViT decoder, giving reconstructions on par with or better than SD-VAE and a semantically rich latent space.
- RAE
- Representation Autoencoder
- Representation Autoencoders
- AutoencoderRAE
- DINOv2 autoencoder
- diffusion transformer latent space
- DiT autoencoder
- image reconstruction
- diffusers
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zheng2025diffusiontransformersrepresentationautoencoders,
title={Diffusion Transformers with Representation Autoencoders},
author={Boyang Zheng and Nanye Ma and Shengbang Tong and Saining Xie},
year={2025},
eprint={2510.11690},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2510.11690},
}