TL;DR
Researchers have found that the ubiquitous "skip connection" in transformer encoders might actually be holding back semantic abstraction in diffusion models. By removing these residual connections and replacing them with an explicit feature fusion step at the output, the new DDT-RFE architecture achieves better image generation and significantly stronger performance on downstream visual tasks while using up to 40% fewer encoder blocks.
What Problem Does This Paper Address?
In the world of image generation, Diffusion Transformers (DiTs) have become the gold standard. Recent advancements like the Decoupled Diffusion Transformer (DDT) separate the network into two parts: a condition encoder that learns what the image represents (semantics) and a velocity decoder that handles the nitty-gritty of reconstructing pixels.
However, standard transformers rely heavily on residual (skip) connections. While these connections make deep networks easier to train, they allow "shallow" features (low-level details like edges and textures) to bypass transformations and persist into the deepest layers. The authors argue this "pollution" makes it difficult for the encoder to develop high-level, abstract representations of objects. If the encoder is busy carrying around raw pixel data, it has less capacity to learn what a "dog" or a "car" actually looks like in a conceptual sense.
Methods
The authors propose DDT-RFE (Residual-Free Encoder), which introduces three key changes to the standard decoupled architecture:
- Residual-Free Blocks: They completely remove the residual connections around the Self-Attention (SA) and MLP layers within the encoder. This forces every block to transform the data, encouraging "progressive abstraction."
- Stable Initialization: Training deep networks without skip connections is notoriously difficult due to vanishing/exploding gradients. To fix this, they use a novel initialization strategy that mixes a shared orthogonal component into the Query and Key matrices and uses scale-corrected uniform orthogonal (SUO) weights for the MLP. This ensures the model is well-conditioned from the start.
- Explicit Feature Fusion: Since the decoder still needs those low-level details to generate a sharp image, the authors don't just throw them away. Instead of letting them leak through skip connections, they explicitly sum the input embeddings, intermediate features, and final encoder outputs together at the very end.
Datasets
The models were trained from scratch on ImageNet-1k at 256×256 resolution. To test how well the learned representations transfer to real-world understanding, the authors evaluated the frozen encoders on several benchmarks:
- Image Classification: ImageNet-1k (k-NN and linear probing).
- Object Discovery: VOC2012 and COCO20k (using the LOST method).
- Semantic Correspondence: SPair-71k.
- Semantic Segmentation: VOC2012, ADE20K, and COCO-Stuff 10K.
Key Insights and Ideas
- Forced Abstraction: By removing the "safety net" of skip connections, the encoder is forced to compress and interpret the data. As shown in the visualizations in Figure 1, DDT-RFE produces features where the background is "muted" and the salient object is clearly defined, whereas standard DDT features remain noisy even in deep layers.
- The "Peak" of Logic: In standard models, semantic accuracy often peaks in the middle layers and then declines. In DDT-RFE, the accuracy peaks much higher and earlier in the network.
- Efficiency through Architecture: Because the blocks are forced to work harder, the model achieves better results with a shallower encoder. The DDT-RFE "Large" model uses only 12 encoder blocks compared to the 20 blocks used in the baseline DDT, yet it performs better across the board.
Key Results
DDT-RFE demonstrates that "less is more" when it comes to encoder depth:
- Image Generation: On ImageNet, DDT-RFE reduced the Fréchet Inception Distance (FID)—a key metric for image quality—from 8.98 to 7.68 for the Large scale model.
- Object Discovery: The model showed a massive jump in performance. On the VOC2012 dataset, the Correct Localization (CorLoc) score improved from 42.5% to 58.4%.
- Semantic Correspondence: It improved the percentage of correct keypoints (PCK) on SPair-71k by nearly 4-5 percentage points over the baseline.
Limitations and Future Work
The authors acknowledge that their experiments were limited by computational resources, focusing on 80-epoch training runs on ImageNet at 256×256 resolution. They suggest that future work should explore:
- Longer Training: Seeing if these gains hold up or increase with longer schedules.
- Higher Resolutions: Testing the architecture at 512×512 or higher.
- Broader Architectures: Applying the residual-free philosophy to other diffusion backbones beyond the decoupled transformer.
Ultimately, this paper challenges the assumption that skip connections are always beneficial, suggesting that for tasks requiring high-level semantic understanding, "cutting the skip" might be the way forward.
Summary updated