Reproduce “EDiT: Efficient Diffusion Transformers with Linear Compressed Attention” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Philipp Becker, Abhinav Mehrotra, Ruchika Chavhan, Malcolm Chadwick, Luca Morreale, Mehdi Noroozi, Alberto Gil Ramos, Sourav Bhattacharya
EDiT and MM-EDiT present efficient Diffusion Transformer architectures that significantly accelerate high-resolution image generation on various hardware, including mobile chipsets, by incorporating linear compressed and hybrid attention mechanisms. These models yield up to 43x faster inference on GPUs and 2.2x faster on mobile compared to prior approaches, without degrading image quality.
Key insights
- Combining multi-layer convolutional processing for queries (`ConvFusion`) with depthwise convolutional spatial compression for keys/values (`Spatial Compressor`) can linearize attention while preserving expressive power and image quality.
- A hybrid attention strategy, where linear attention is selectively applied to the most computationally intensive components (e.g., image-to-image interactions in MM-DiTs), offers superior efficiency without sacrificing quality for critical interactions.
- Knowledge distillation effectively transfers performance from large, quadratic-scaling Diffusion Transformers to smaller, linear-scaling models, enabling significant speedups across various resolutions and hardware.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.