Command Palette
Search for a command to run...
디퓨전 트랜스포머에서 크로스 레이어 정보 라우팅 재고찰
디퓨전 트랜스포머에서 크로스 레이어 정보 라우팅 재고찰
초록
Diffusion Transformers(DiT)는 현대 시각적 생성의 사실상 표준 백본이 되었으며, 그 설계의 거의 모든 주요 축—토큰화, 어텐션, 조건부 입력, 목적 함수, 잠재 오토인코더—이 광범위하게 재검토되었습니다. 그러나 레이어 간에 정보가 누적되는 방식을 지배하는 잔여 스트림(residual stream)은 원래 Transformer에서 직접 계승되었습니다. 본 논문에서는 DiT의 레이어 간 정보 흐름에 대한 체계적인 실증 분석을 깊이(depth)와 디노이징 타임스텝(denoising timestep)을 함께 고려하여 수행하고, 전통적인 잔여 합(residual addition)의 세 가지 구체적인 증상을 규명합니다. 즉, 단조 증가하는 전방 크기 팽창(monotonic forward magnitude inflation), 급격한 후방 기울기 감소(sharp backward gradient decay), 그리고 뚜렷한 블록 단위 중복성(block-wise redundancy)이 그것입니다. 이러한 진단에 영감을 받아, 우리는 하위 레이어 출력의 이력에 대해 학습 가능하고, 타임스텝 적응적이며, 비증분적(non-incremental) 집계를 수행하는 잔여 구조 대체 방안인 Diffusion-Adaptive Routing(DAR)을 제안합니다. 또한 제안된 DAR은 REPA와 같은 다양한 현대 Transformer 향상 기법과 호환됩니다. ImageNet 256×256 데이터셋에서 DAR은 SiT-XL/2 모델의 FID를 2.11 개선(7.56 대 9.67)하며, 학습 반복 횟수를 8.75배 줄여도 베이스라인의 수렴된 품질과 동등한 성능을 달성합니다. REPA 위에 적용할 경우 초기 단계에서 2배의 학습 가속화를 제공하며, 이는 레이어 간 정보 라우팅이 기존 표현 정렬 목적 함수와 직교하는 방식으로 작동하는 확산 모델링에서 아직 충분히 탐구되지 않은 설계 축임을 시사합니다. 사전 학습(pretraining)을 넘어, DAR은 대규모 텍스트-이미지(T2I) 모델의 파인튜닝 단계에서도 적용 가능하며, 분포 일치(distillation) 과정 중 고주파 세부 정보를 보존합니다.
One-sentence Summary
To address sharp backward gradient decay and pronounced block-wise redundancy in Diffusion Transformers, the authors propose Diffusion-Adaptive Routing (DAR), a drop-in residual replacement that performs learnable, timestep-adaptive, and non-incremental aggregation across sublayer outputs, improving SiT-XL/2 by 2.11 FID (7.56 vs. 9.67) on ImageNet 256×256 while matching baseline quality with 8.75× fewer training iterations.
Key Contributions
- This study presents a systematic empirical analysis of cross-layer information flow in Diffusion Transformers across depth and denoising timesteps, diagnosing three failure modes of standard residual addition including monotonic forward magnitude inflation, sharp backward gradient decay, and pronounced block-wise redundancy.
- The work introduces Diffusion-Adaptive Routing (DAR), a drop-in residual replacement that executes learnable, timestep-adaptive, and non-incremental aggregation over historical sublayer outputs while remaining compatible with modern Transformer enhancements such as REPA.
- Evaluations on the ImageNet 256x256 dataset demonstrate that DAR improves the SiT-XL/2 baseline by 2.11 FID points and achieves equivalent convergence quality using 8.75 times fewer training iterations.
Introduction
Diffusion Transformers have rapidly become the standard for visual generation by replacing convolutional U-Nets with token-based denoisers, but effectively capturing the time-varying dynamics of the denoising process remains a critical challenge. Most existing architectures inherit a fixed, time-agnostic residual stream from language models, which causes hidden states to inflate, backward gradients to decay, and adjacent layers to grow redundant as depth increases. This static routing mechanism also fails to adapt to the denoising timeline, where optimal feature extraction must shift from coarse structures in high-noise regimes to fine details in low-noise regimes. The authors tackle these limitations by conducting the first systematic analysis of cross-layer information flow across both network depth and denoising timesteps. They introduce DAR, a drop-in residual replacement that replaces uniform aggregation with learnable, timestep-adaptive routing. This approach significantly accelerates training convergence, improves generation quality, and integrates seamlessly with modern representation-alignment objectives.
Method
The authors propose Diffusion-Adaptive Routing (DAR), a novel residual replacement mechanism designed to address the limitations of standard residual accumulation in Diffusion Transformers (DiTs). The core idea is to replace the fixed, incremental sum of sublayer outputs with a learnable, timestep-adaptive aggregation that dynamically weights contributions from previous sublayer outputs. This approach treats cross-layer information routing as a fundamental design dimension, moving beyond the fixed residual pattern inherited from the original Transformer.
The standard residual routing in DiTs is defined by the recurrence hl+1=hl+fl(hl;t), where hl is the hidden state at layer l, fl is the transformation (attention or MLP), and t is the denoising timestep. Unrolling this recurrence reveals that the output hl is a simple sum of the initial input and all preceding sublayer outputs: hl=h0+∑i=0l−1fi(hi;t). This method is inherently limited because it applies unit weights to all past representations, preventing the model from selectively retrieving or suppressing specific features based on the current depth or denoising stage. This fixed routing pattern is also distinct from U-Net-like skip connections, which manually pair deep and shallow layers for feature fusion but lack the scalability and homogeneity of a pure Transformer architecture.
DAR fundamentally rethinks this accumulation process. It replaces the unweighted sum with a softmax-weighted aggregation over the history of sublayer outputs. Let vi=fi(hi;t) denote the output of the i-th sublayer, with v0=h0. The aggregated hidden state hl at layer l is computed as:
hl=i=0∑l−1αi→l(t)viwithαi→l(t)=∑j=0l−1exp(ql(t)⊤kj/d)exp(ql(t)⊤ki/d),where ki=RMSNorm(vi) is the key for source vi, and the softmax is computed over the set Sl={v0,v1,…,vl−1}. This mechanism allows the model to learn which past representations are most relevant for the current sublayer, enabling non-incremental and adaptive information retrieval.
The query ql(t), which determines the routing weights, is parameterized in three ways to incorporate timestep awareness. The pure static variant uses a learnable, time-independent vector wl. The dynamic variant computes the query from the most recent sublayer output: ql(t)=Wq(l)vl−1, which implicitly injects the timestep information contained in vl−1. The explicit variant augments the static query with the timestep embedding e(t): ql(t)=wl+e(t), providing a direct, explicit signal. The authors find that both dynamic and explicit variants, which are aware of the denoising timestep, significantly outperform the static variant, highlighting the importance of timestep awareness for effective routing.
To manage the computational cost of retaining all L sublayer outputs, DAR implements a chunked aggregation strategy. The network is divided into N chunks of size S=L/N. Each chunk n is summarized by cn=vnS, the output of its final sublayer. For a sublayer l in chunk n, the source set for aggregation becomes:
Sl={c0,c1,…,cn−1}∪{v(n−1)S+1,⋯,vl−1},consisting of summaries from previous chunks and the raw outputs from the current chunk. This reduces the source memory footprint from O(Ld) to O((S+N)d). The optimal chunk size S∗ is derived to be S∗=L⋅1+α1−α, where α is a hyperparameter controlling the routing-entropy term. Empirical analysis confirms that a chunk size of S=4 is optimal for the SiT-XL/2 model.
The final aggregation for the prediction layer is further refined. A dedicated final aggregator is used, which has access to all raw sublayer outputs of the last chunk in addition to the summaries of all prior chunks. This design choice is motivated by the intuition that the most recent outputs contain the most task-specific signal, and preserving them in their raw form allows the final layer to recover fine-grained information that would be lost in a single summary. When combining DAR with REPA, the final aggregation reuses the parameters of the last chunk's MLP aggregator, an empirically motivated design that improves performance.
Experiment
Evaluated on ImageNet using standard diffusion training protocols, the experiments validate that conventional residual routing in DiTs suffers from magnitude inflation, gradient imbalance, and representational redundancy while naturally exhibiting timestep-dependent source preferences. By introducing learned, timestep-adaptive cross-layer aggregation, the proposed method accelerates convergence and improves generation quality beyond what can be achieved through parameter scaling or fixed skip connections. Further ablations confirm that this routing mechanism complements representation alignment techniques, performs optimally at intermediate chunk sizes, and effectively preserves fine visual details during large-scale model distillation. Ultimately, the findings demonstrate that adaptive cross-layer information flow resolves inherent architectural rigidity without compromising the homogeneous Transformer structure.
The authors compare the performance of SiT and DAR models combined with REPA, focusing on convergence speed and final quality. Results show that DAR combined with REPA achieves lower FID scores than SiT combined with REPA across all training iterations, indicating improved performance and faster convergence. The gains are consistent even when accounting for model size and alternative architectural designs. DAR combined with REPA outperforms SiT combined with REPA in FID across all training iterations. DAR with REPA achieves lower FID scores with fewer training iterations compared to SiT with REPA. The improvement of DAR with REPA is not due to increased model size or alternative architectural choices.
The authors analyze the performance of different variants of the DAR method in terms of convergence speed and final quality, comparing models with and without timestep injection. Results show that the dynamic variant achieves the lowest metric values at all training stages, indicating superior performance, while the static variant without timestep injection consistently underperforms. The inclusion of timestep injection improves results across both static and dynamic configurations. The dynamic variant achieves the best performance across all training stages. The static variant without timestep injection performs worse than both dynamic and static with timestep injection. Timestep injection improves performance for both static and dynamic variants.
The experiment evaluates the impact of different chunk sizes on model performance, measuring quality through FID and IS. Results show that a chunk size of 4 achieves the best FID, while the highest IS is observed at a chunk size of 4, indicating a trade-off between these metrics across different configurations. A chunk size of 4 yields the best FID performance compared to chunk sizes of 1 and 8. The highest IS is achieved with a chunk size of 4, suggesting optimal representational quality at this setting. Performance varies with chunk size, showing a U-shaped trend where intermediate values outperform extremes.
The authors compare their proposed method, DAR, against standard residual and U-Net-like routing baselines on image generation tasks, using metrics such as FID and Inception Score. Results show that DAR achieves superior performance with fewer training iterations and parameters, and its effectiveness is further enhanced when combined with REPA. The method demonstrates strong convergence and quality improvements across different configurations, particularly in the dynamic variant with guidance. DAR achieves better performance than standard residuals and U-Net-like routing with fewer training iterations and parameters. The dynamic variant of DAR outperforms baselines in both quality and convergence speed, especially under classifier-free guidance. Combining DAR with REPA leads to significant improvements, indicating orthogonal and compounding benefits.
The evaluation compares the proposed DAR method against SiT and standard routing baselines to validate convergence speed, generation quality, and parameter efficiency. Component ablations further verify that dynamic routing and timestep injection consistently enhance performance, while intermediate chunk sizes optimally balance quality metrics. Collectively, the experiments demonstrate that DAR delivers superior generation quality and faster convergence with fewer parameters, achieving compounding improvements when integrated with REPA.