All models

coat_lite_small

Co-scale conv-attentional image Transformer: multi-scale encoder branches that talk to each other.

Image classification · 876 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (53 KB)

Open in a new tab

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

Family
CoaT
Parameters
19.8M
Operations
876
Framework
PyTorch
Recurrent
No
Published
ICCV (arXiv 2021)
Cited by
377 (as of 9 October 2026)
Authors
Weijian Xu, Yifan Xu, Tyler A. Chang, Zhuowen Tu
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3799
Graph hash
54a676b171d36d4709b155109b9bed0ee398f5fe3196dcac71e3177144071ed0
Skeleton hash
44eb5a399ab42b3447a31d510949d2e460d82a459b9694ee99785da568814dbe
Architecture hash
7dfdaac420d4f934a620d7f45373b2d26c0e5618c04283e924c5ea5f0dfa304d
Diagram SHA-256
9b1643c06e9e483f327e97890e053f79080036c7ca1d3639a672a336a27d65a9
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

How this diagram was made

timm.create_model('coat_lite_small', pretrained=False)

What it is

About this model's family

CoaT, short for Co-scale conv-attentional image Transformers, is a Transformer-based image classifier equipped with co-scale and conv-attentional mechanisms. The co-scale mechanism keeps the Transformer encoder branches intact at each individual scale while letting representations learned at different scales communicate with one another.

The authors realize it with a series of serial and parallel blocks. The conv-attentional mechanism folds a relative position embedding into the factorized attention module through an efficient convolution-like implementation. Together these give image Transformers enriched multi-scale and contextual modeling capabilities.

On ImageNet, relatively small CoaT models attain superior classification results compared with similar-sized convolutional neural networks and image or vision Transformers. The backbone is also shown to work for object detection and instance segmentation. The paper was accepted to ICCV 2021 as an oral.

Key idea. A Transformer image classifier whose co-scale mechanism lets encoder branches at different scales communicate, and whose conv-attentional module implements relative position embeddings as an efficient convolution-like operation.

  • coat
  • co-scale conv-attentional image transformer
  • coat_lite
  • coat_lite_tiny
  • coat_lite_mini
  • coat_lite_small
  • coat_lite_medium
  • coat_tiny
  • coat_mini
  • coat_small
  • timm
  • image classification

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{xu2021coscaleconvattentionalimagetransformers,
      title={Co-Scale Conv-Attentional Image Transformers}, 
      author={Weijian Xu and Yifan Xu and Tyler Chang and Zhuowen Tu},
      year={2021},
      eprint={2104.06399},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2104.06399}, 
}