All models

coat_lite_tiny

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

Image classification · 460 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 (48 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
5.7M
Operations
460
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
m3800
Graph hash
648b87914cfb4ec28e4c6fa526c82b338cef8ae9944b0e0d0b66688025bedbe7
Skeleton hash
fbb71108f8dd04ba550e75afdea63b04f0ea5821eacfda6918e6a10ab6c653cd
Architecture hash
7c4970b5e2437f3daf3b7e851565e28941a787ceb7e224f1d08cad00b0b28c51
Diagram SHA-256
8b3146505bc205c5815d8fe9f4b1d2e51b95a96879717e7e80ab605884ccc361
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_tiny', 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}, 
}