All models

LightningDiT

LightningDiT-XL, a diffusion transformer that generates ImageNet classes in the latent space of the VA-VAE tokenizer.

Diffusion and generative · 2,199 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

This diagram has 2,199 operations (496 KB) and is drawn when you ask.

Open in a new tab

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
675.3M
Operations
2,199
Framework
PyTorch
Recurrent
No
Published
CVPR 2025
Cited by
60 (as of 27 October 2026)
Authors
Jingfeng Yao, Bin Yang, Xinggang Wang
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17942
Graph hash
e246107e22f3750985f0cda3806173f50e3b314889838591595cdd7ca3d01393
Skeleton hash
ac095e11fa3121906cceab4b2e8ed555d5f582505ca30ba3c33e9f1c0302315f
Architecture hash
3134be84e67e1176223f7459e886f0218e8e740b5dabcc75f44d89c5301aabc2
Diagram SHA-256
c2c643fd84ac93b38116b8e734daaf3feba2c78031136a7ffe96b81b407ee87e
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

What it is

LightningDiT is a diffusion transformer (DiT) for class-conditional image generation on ImageNet. It comes from a paper about an optimization dilemma in latent diffusion: raising the per-token feature dimension of the visual tokenizer improves reconstruction, but then the diffusion model must be larger and train longer to generate as well. The paper's answer is VA-VAE, a tokenizer trained with its latent space aligned to pretrained vision foundation models. LightningDiT is the diffusion model built to exploit that tokenizer.

In training it adds Rectified Flow, logit-normal (lognorm) sampling and a velocity direction loss, and in the transformer it applies the common optimizations RMSNorm, SwiGLU and RoPE. The paper notes that these strategies are not independent: gradient clipping helps alone but tends to reduce performance when combined with lognorm sampling and the velocity direction loss. With VA-VAE the DiT patch size is set to 1, so the downsampling rate of the whole system is 16. The paper reports that the combined system reaches an FID of 1.35 on ImageNet 256x256 generation, and an FID of 2.11 after only 64 epochs.

Key idea. The paper paired the VA-VAE tokenizer with LightningDiT, an enhanced DiT, and reported an over 21 times convergence speedup compared to the original DiT.

  • lightningdit
  • lightning-dit
  • diffusion transformer
  • latent diffusion
  • image generation
  • class-conditional image generation
  • imagenet generation
  • rectified flow

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{yao2025reconstructionvsgenerationtaming,
      title={Reconstruction vs. Generation: Taming Optimization Dilemma in Latent Diffusion Models}, 
      author={Jingfeng Yao and Bin Yang and Xinggang Wang},
      year={2025},
      eprint={2501.01423},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2501.01423}, 
}