
volo_d3_224
Image classification1,003 ops86.3M params
Vision transformer whose first stage uses outlook attention to encode fine-level features before global self-attention.
Image classification · 1,003 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.
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.
How this diagram was made
timm.create_model('volo_d4_448', pretrained=False) About this model's family
VOLO (Vision Outlooker) is an image classification backbone built around one complaint about vision transformers: they are poor at getting fine-level features into their tokens. Its answer is outlook attention, which, unlike self-attention focused on global dependencies at a coarse level, encodes finer-level features and contexts into the tokens. The authors report 87.1% top-1 accuracy on ImageNet-1K without extra training data, which they describe as the first model to pass 87% on that benchmark.
The network has two separate stages: a stack of Outlookers that produces fine-level token representations, then a sequence of transformer blocks that aggregates global information. For a 224 × 224 input, VOLO tokenizes the image on small 8 × 8 patches and runs the Outlookers before self-attention builds global dependencies at a coarse 14 × 14 level. Outlook attention produces the weights for aggregating a token's neighbours directly from the anchor token's own feature through linear projections, with no dot-product attention at all. Those weights come from a simple reshaping operation rather than a query-key matrix multiplication, which is where the computational saving lies. The attention runs in a sliding window at the fine level, which the paper argues preserves positional information to some extent.
Five sizes exist, VOLO-D1 through VOLO-D5. The ratio is a stated design rule: in all versions it stays around 1:3, which the authors found empirically works best. Two class attention layers sit in the final stage to update the class embedding, and the Outlookers use half the hidden dimension of the Transformers. The timm copies traced here start at VOLO-D1 with 27M parameters. The largest, VOLO-D5, has 296M parameters. The paper notes that models over 100M parameters overfit, which the authors counter with a large stochastic depth rate. Fine-tuning the paper's 26.6M-parameter example at a 384 × 384 input resolution lifts its accuracy from 84.2% to 85.2%.
Key idea. Outlook attention: a sliding-window attention whose aggregation weights are produced by linear projection and reshaping of the anchor token instead of query-key dot products, so a first stage of Outlookers can encode fine-level token features before a second stage of transformer blocks aggregates global context.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{yuan2021volovisionoutlookervisual,
title={VOLO: Vision Outlooker for Visual Recognition},
author={Li Yuan and Qibin Hou and Zihang Jiang and Jiashi Feng and Shuicheng Yan},
year={2021},
eprint={2106.13112},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2106.13112},
}