All models

coat_tiny

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

Image classification · 1,733 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 (106 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.5M
Operations
1,733
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
m3803
Graph hash
d5bda5d7906d646bca6bc27da91999b5eed3a0bcfb6b6879bef8837df9360794
Skeleton hash
d65cb7dc7d252b269d90052627fe365335f7494250ef2f86a6398631843954eb
Architecture hash
3ed9a1377d349c3c40f75d98e1cd144b0b8eefde66e40150b10adc59b6812db5
Diagram SHA-256
478e09d6100cfee3f1a1e648879ab7445989e0ad6b83ed48af387311a9dd34f1
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_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}, 
}