SKIPAT
A ViT-Tiny classifier that skips self-attention in some layers and approximates it from an earlier layer's output.
Image classification · 354 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Image classification
- Parameters
- 6.7M
- Operations
- 354
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2024
- Cited by
- 10 (as of 27 October 2026)
- Authors
- Shashanka Venkataramanan, Amir Ghodrati, Yuki M. Asano and others
- License
- BSD-3-Clause
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20049
- Graph hash
- c54c3d4242d243b15e029451444b0d636cd6fb9e6f14301965f68ff1257fed37
- Skeleton hash
- 3e0cce8808fe92d7170d0072dd7bbf95a6bd4718f7a37627485aa34f79cc9d9c
- Architecture hash
- e79c18abcaccb2c8264c70628f9f0d9486868bfc31514a30cb6fe6511fc5131c
- Diagram SHA-256
- dd731b9d4d24c1ee9dbacccfc5f430888312f3728843dcb02c988a976d9985e1
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
SkipAt, or Skip-Attention, is a Vision Transformer in which some layers do not compute self-attention. The authors observed that self-attention operations are highly correlated across the layers of a ViT and treat that as redundant computation. Their method skips the multi-head self-attention (MSA) block in one or more layers and reuses representations from adjacent layers.
The reuse is not a direct copy of features. A parametric function made of two linear layers with a depth-wise convolution in between transforms the earlier block's output so that local relations among tokens are still encoded. In the paper's ViT-T/16 analysis the MSA operation is skipped in layers 3 to 8, and the MLP blocks of those layers remain in the graph. The total number of layers is therefore unchanged, with fewer MSA blocks.
On ImageNet-1K the paper reports throughput 19%, 21% and 25% higher than baseline ViT-T, ViT-S and ViT-B, with accuracy above those baselines by 0.1%, 0.4% and 0.4%. The authors also test the method on self-supervised learning, semantic segmentation on ADE20K, image denoising on SIDD and video denoising on DAVIS.
Key idea. The paper shows that a ViT can skip self-attention in several layers by approximating it from earlier layers with a light convolutional function, gaining throughput without losing accuracy.
- SkipAt
- Skip-Attention
- skip attention vision transformer
- efficient ViT
- image classification
- attention reuse
- ImageNet-1K
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{venkataramanan2023skipattentionimprovingvisiontransformers,
title={Skip-Attention: Improving Vision Transformers by Paying Less Attention},
author={Shashanka Venkataramanan and Amir Ghodrati and Yuki M. Asano and Fatih Porikli and Amirhossein Habibian},
year={2023},
eprint={2301.02240},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2301.02240},
}