paper-with-me

Papers

Accumulated Trivial Attention Matters in Vision Transformers on Small Datasets

2022-10-22 · Xiangyu Chen, Qinghao Hu, Kaidong Li, Cuncong Zhong, Guanghui Wang

Vision Transformers has demonstrated competitive performance on computer vision tasks benefiting from their ability to capture long-range dependencies with multi-head self-attention modules and multi-layer perceptron. However, calculating global attention brings another disadvantage compared with convolutional neural networks, i.e. requiring much more data and computations to converge, which makes it difficult to generalize well on small datasets, which is common in practical applications. Previous works are either focusing on transferring knowledge from large datasets or adjusting the structure for small datasets. After carefully examining the self-attention modules, we discover that the number of trivial attention weights is far greater than the important ones and the accumulated trivial weights are dominating the attention in Vision Transformers due to their large quantity, which is not handled by the attention itself. This will cover useful non-trivial attention and harm the performance when trivial attention includes more noise, e.g. in shallow layers for some backbones. To solve this issue, we proposed to divide attention weights into trivial and non-trivial ones by thresholds, then Suppressing Accumulated Trivial Attention (SATA) weights by proposed Trivial WeIghts Suppression Transformation (TWIST) to reduce attention noise. Extensive experiments on CIFAR-100 and Tiny-ImageNet datasets show that our suppressing method boosts the accuracy of Vision Transformers by up to 2.3%. Code is available at https://github.com/xiangyu8/SATA.

📄 PDF Abstract BibTeX arXiv:2210.12333

Code (1)

xiangyu8/sata 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Teaching Matters: Investigating the Role of Supervision in Vision Transformers

2022-12-07 · CVPR 2023 1 · Matthew Walmer, Saksham Suri, Kamal Gupta, Abhinav Shrivastava

Vision Transformers (ViTs) have gained significant popularity in recent years and have proliferated into many applications. However, their behavior under different learning paradigms is not well explored. We compare ViTs…

Discrete Cosine Transform Based Decorrelated Attention for Vision Transformers

2024-05-22 · Hongyi Pan, Emadeldeen Hamdan, Xin Zhu, Ahmet Enis Cetin 외

Central to the Transformer architectures' effectiveness is the self-attention mechanism, a function that maps queries, keys, and values into a high-dimensional vector space. However, training the attention weights of que…

Quantization

Token Transformation Matters: Towards Faithful Post-hoc Explanation for Vision Transformer

2024-03-21 · CVPR 2024 1 · Junyi Wu, Bin Duan, Weitai Kang, Hao Tang 외

While Transformers have rapidly gained popularity in various computer vision applications, post-hoc explanations of their internal mechanisms remain largely unexplored. Vision Transformers extract visual information by r…

Surface Analysis with Vision Transformers

2022-05-31 · Simon Dahan, Logan Z. J. Williams, Abdulah Fawaz, Daniel Rueckert 외

The extension of convolutional neural networks (CNNs) to non-Euclidean geometries has led to multiple frameworks for studying manifolds. Many of those methods have shown design limitations resulting in poor modelling of …

Your Attention Matters: to Improve Model Robustness to Noise and Spurious Correlations

2025-07-28 · Camilo Tamayo-Rousseau, Yunjia Zhao, Yiqun Zhang, Randall Balestriero arxiv

Self-attention mechanisms are foundational to Transformer architectures, supporting their impressive success in a wide range of tasks. While there are many self-attention variants, their robustness to noise and spurious …