Augmented Shortcuts for Vision Transformers

Yehui Tang, Kai Han, Chang Xu, An Xiao, Yiping Deng, Chao Xu, Yunhe Wang

Abstract

Vision Transformers (ViTs) have demonstrated state-of-the-art performance across various computer vision tasks. However, they are susceptible to "feature collapse," a phenomenon where patch representations become increasingly uniform in deeper layers, reducing the model's representational capacity. This paper introduces Augmented Shortcuts (Aug-S), a simple yet effective architectural modification that inserts parallel, learnable paths alongside standard attention and MLP modules. By utilizing efficient block-circulant projections, Augmented Shortcuts preserve feature diversity with negligible computational overhead. Experimental results on ImageNet-1K show consistent accuracy improvements of approximately 1% across multiple ViT variants, including DeiT, PVT, and T2T-ViT.

Introduction

Despite the success of Vision Transformers, the Multi-head Self-Attention (MSA) mechanism has an inherent tendency to produce redundant features. As depth increases, the similarity between different patch representations grows, leading to a loss of rank in the feature matrix—a problem known as feature collapse. While standard identity shortcuts (skip-connections) mitigate this to some extent, they lack the capacity to actively inject new information or transform the bypassed signal to maintain diversity.

Visualization of feature similarity across layers. In standard ViTs (a), patches become nearly identical in deep layers, whereas Augmented Shortcuts (c) maintain distinct representations.

The authors propose that this lack of diversity limits the performance of deep ViTs. By introducing parameterized parallel paths, the network can better balance global context aggregation with the preservation of local, unique feature identities. Theoretical analysis suggests that while standard attention causes diversity to decay exponentially with depth, augmented shortcuts introduce a term that suppresses this decay.

Methods: Augmented Shortcuts

The core contribution is the Augmented Shortcut (Aug-S). Instead of the traditional residual connection, the proposed block adds additional parallel paths with learnable parameters. These paths are "patch-wise," processing each patch independently, which complements the "cross-patch" nature of the MSA module.

Efficient Block-Circulant Projections

To prevent a significant increase in parameters and FLOPs, the authors employ block-circulant matrices for the linear projections within the augmented paths. A circulant matrix is defined by a single vector, where each row is a cyclic shift of the previous one. This structure allows for multiplication in the frequency domain using the Fast Fourier Transform (FFT), reducing complexity from $O(d^2)$ to $O(d \log d)$.

The Augmented Shortcut architecture, showing the parallel MSA, identity shortcut, and learnable block-circulant projection paths.

This design ensures that the "augmented" paths are extremely lightweight. For instance, in a ViT-S model, these shortcuts add only 0.07M parameters and 0.08G FLOPs, representing a negligible fraction of the total model size (22M parameters and 4.6G FLOPs).

Experimental Results

The effectiveness of Augmented Shortcuts was validated across several architectures and benchmarks.

ImageNet-1K Performance

Augmented Shortcuts consistently improved top-1 accuracy across various backbones:

  • DeiT-S: Increased from 79.8% to 80.9% (+1.1%).
  • PVT-M: Increased from 81.2% to 82.3% (+1.1%).
  • T2T-ViT-24: Increased from 82.3% to 83.6% (+1.3%).

Downstream Tasks and Transfer Learning

The benefits extend beyond classification. When used as a backbone for object detection on the COCO dataset with a DETR head, the Aug-DeiT-S model improved performance by 1.8 AP over the baseline. Furthermore, the models showed superior performance in transfer learning tasks on datasets such as CIFAR-10/100 and Oxford Flowers, suggesting that the preserved feature diversity leads to more robust and generalizable representations.

Conclusion

Augmented Shortcuts provide a computationally efficient solution to the feature collapse problem in Vision Transformers. By complementing cross-patch attention with patch-wise learnable shortcuts, the proposed method enhances the representational capacity of deep networks. The consistent gains across different architectures and tasks highlight Aug-S as a versatile tool for scaling and improving Transformer-based vision models.

Summary updated

BibTeX
@inproceedings{tang2021augmented,
  author = {Yehui Tang and Kai Han and Chang Xu and An Xiao and Yiping Deng and Chao Xu and Yunhe Wang},
  title = {{Augmented Shortcuts for Vision Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=ZfC2q_uxNcD},
}
Figure