Abstract
Diffusion transformers (DiTs) have emerged as a powerful architecture for high-fidelity image generation, yet the quadratic cost of self-attention poses a major scalability bottleneck. To address this, linear attention mechanisms have been adopted to reduce computational cost; unfortunately, the resulting linear diffusion transformers (LiTs) models often come at the expense of generative performance, frequently producing over-smoothed attention weights that limit expressiveness. In this work, we introduce Dynamic Differential Linear Attention (DyDiLA), a novel linear attention formulation that enhances the effectiveness of LiTs by mitigating the oversmoothing issue and improving generation quality. Specifically, the novelty of DyDiLA lies in three key designs: (i) dynamic projection module, which facilitates the decoupling of token representations by learning with dynamically assigned knowledge; (ii) dynamic measure kernel, which provides a better similarity measurement to capture fine-grained semantic distinctions between tokens by dynamically assigning kernel functions for token processing; and (iii) token differential operator, which enables more robust query-to-key retrieval by calculating the differences between the tokens and their corresponding information redundancy produced by dynamic measure kernel. To capitalize on DyDiLA, we introduce a refined LiT, termed DyDi-LiT, that systematically incorporates our advancements. Extensive experiments show that DyDi-LiT consistently outperforms current state-of-the-art (SOTA) models across multiple metrics, underscoring its strong practical potential.
Introduction
Diffusion Transformers (DiTs) have established themselves as the state-of-the-art for high-fidelity image generation. However, their reliance on standard self-attention introduces a quadratic computational cost ($O(N^2)$) relative to the number of image patches (tokens). This complexity creates a significant scalability bottleneck, particularly for high-resolution synthesis (e.g., 2048x2048).
While Linear Diffusion Transformers (LiTs) reduce this cost to $O(N)$, they often suffer from "oversmoothing." In these models, attention weights tend to become uniform, causing the model to lose the ability to distinguish fine-grained semantic details. This paper identifies three primary causes for this degradation: token heterogeneity across denoising steps, suboptimal similarity measurements in vanilla linear attention, and a lack of context sensitivity that leads to information redundancy.
Methodology: DyDi-LiT and DyDiLA
To overcome these limitations, we propose DyDi-LiT, which utilizes a novel Dynamic Differential Linear Attention (DyDiLA) mechanism. DyDiLA is built upon three core components designed to restore the expressiveness of linear attention:
- Dynamic Projection Module: Instead of a static shared projection, this module employs a router to assign tokens to specific projectors. This disentangles token representations based on their unique spatial and temporal characteristics.
- Dynamic Measure Kernel: This component replaces standard similarity functions with token-specific, norm-preserving kernels. By adaptively adjusting token directions, it amplifies the dot products between semantically related tokens, effectively "sharpening" the attention mechanism.
- Token Differential Operator (TDO): The TDO calculates the difference between a token and its identified information redundancy. By subtracting this redundancy before the attention calculation, the model focuses on unique, salient features, making retrieval more robust against noise.
Experimental Setup
We evaluated DyDi-LiT on standard benchmarks, including ImageNet-1K and Sub-IN (a 100-class subset). Experiments were conducted at resolutions of 256x256 and 512x512 to assess both generation quality and scalability.
Key Results and Discussion
DyDi-LiT demonstrates a superior balance between computational efficiency and generative quality. On ImageNet-1K (256x256), DyDi-LiT-S achieved a Fréchet Inception Distance (FID) of 13.36, outperforming both the original DiT-S (16.60) and the previous linear SOTA, Sana-S (15.19).
Beyond raw metrics, t-SNE visualizations indicate that DyDi-LiT produces cleaner decision boundaries between semantically similar classes compared to its predecessors. Most importantly, as shown in Figure 1, while DiT's inference cost explodes at higher resolutions, DyDi-LiT maintains a nearly flat cost curve, making it highly practical for ultra-high-definition generation.
Conclusion
DyDi-LiT proves that linear attention does not have to sacrifice quality for efficiency. By addressing the oversmoothing problem through dynamic routing and differential operators, we achieve state-of-the-art results with linear complexity. While the architectural complexity is higher than vanilla transformers, the scalability benefits are substantial. Future work will explore extending this dynamic differential approach to video generation, where the demand for linear complexity is even more critical.
Summary updated