NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

EDT: An Efficient Diffusion Transformer Framework Inspired by Human-like Sketching

Xinwang Chen, Ning Liu, Yichen Zhu, Feifei Feng, Jian Tang

Introduction

Diffusion Probabilistic Models (DPMs) have set new benchmarks in high-fidelity image synthesis. Recently, the field has transitioned from convolutional U-Net architectures to Diffusion Transformers (DiTs) due to their superior scalability and performance. However, this transition introduces significant computational overhead. High-end models like DiT-XL often require over 100 GFLOPs per inference step, limiting their deployment in real-time applications or on resource-constrained hardware.

The Efficient Diffusion Transformer (EDT) framework addresses these challenges by optimizing the transformer architecture without sacrificing generative quality. By drawing inspiration from human sketching techniques and implementing a novel masking strategy, EDT achieves substantial speedups in both training and inference.

The Bottlenecks of Diffusion Transformers

Existing methods to improve DiT efficiency typically rely on aggressive down-sampling or token reduction. However, these approaches often suffer from two primary issues:

  1. Information Loss: Standard down-sampling techniques can destroy critical spatial and contextual data, leading to degraded image quality.
  2. Relational Blindness: Transformers may fail to adequately capture the relationships between distant object parts (e.g., the structural consistency of a complex subject), particularly when tokens are removed too early in the process.

The EDT Framework

EDT introduces three core innovations designed to balance computational efficiency with high-quality output.

1. Lightweight "Sandwich" Architecture

Rather than a uniform stack of transformer blocks, EDT utilizes a five-stage "sandwich" design consisting of three down-sampling (encoding) stages and two up-sampling (decoding) stages. To mitigate information loss during token merging, the framework employs Adaptive Layer Normalization (AdaLN) to boost feature representation and a Positional Encoding Supplement to maintain spatial awareness throughout the network.

2. Attention Modulation Matrix (AMM)

A key conceptual pillar of EDT is the Attention Modulation Matrix (AMM), inspired by the human artistic process. When sketching, humans typically establish a global framework before refining local details. AMM is a training-free plug-in that modulates standard global attention into local attention based on token distance. By alternating between global and local attention blocks in the decoder, the model effectively "refines" the image, leading to sharper textures and more realistic details without increasing the parameter count.

3. Token Relation-Enhanced Masking

While masking is a common technique to reduce training costs, EDT optimizes the timing of the masking process. Unlike previous models that mask tokens at the input layer, EDT employs a "postponed" masking strategy, applying it only during the down-sampling modules. This allows the initial layers to process the full set of tokens, enabling the model to learn the relationships and "contextual redundancy" between all parts of the image before any information is removed.

Experimental Results

The authors evaluated EDT on the ImageNet benchmark at 256×256 and 512×512 resolutions, comparing it against state-of-the-art models including DiT, LDM, and MDTv2.

Efficiency and Speed

EDT demonstrates superior performance across all efficiency metrics:

  • Training and Inference Speed: The EDT-S (Small) variant achieves a 3.93x training speedup and a 2.29x inference speedup compared to MDTv2.
  • Computational Load: The EDT-XL model requires only 51.83 GFLOPs, a reduction of over 50% compared to the 118.69 GFLOPs required by MDTv2-XL.
  • Memory Usage: EDT-XL significantly reduces VRAM consumption during inference (14.4 GB vs. 23.4 GB for MDTv2-XL), making high-quality diffusion models more accessible for consumer-grade GPUs.

Generative Quality

Despite its reduced computational footprint, EDT improves upon the image quality of its predecessors. On ImageNet 256x256, EDT achieved a Fréchet Inception Distance (FID) score of 7.52, outperforming both MDTv2-XL (7.70) and DiT-XL (19.47).

Conclusion

The EDT framework proves that computational efficiency in diffusion transformers does not have to come at the cost of performance. By mimicking human-like sketching through the Attention Modulation Matrix and optimizing token masking, EDT provides a scalable and accessible path forward for high-resolution image synthesis. Future work may explore the optimal placement of AMM blocks and the application of this framework to other transformer-based architectures beyond the diffusion paradigm.

Summary updated

BibTeX
@inproceedings{chen2024edt,
  author = {Xinwang Chen and Ning Liu and Yichen Zhu and Feifei Feng and Jian Tang},
  title = {{EDT: An Efficient Diffusion Transformer Framework Inspired by Human-like Sketching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=MihOCXte41},
}
Figure