All models

coat_lite_medium_384

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

Image classification · 1,448 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 (52 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
44.6M
Operations
1,448
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
m3797
Graph hash
6845f460c2c4f8790d8c56aef330508585b81da3d11244a96fb940443853970d
Skeleton hash
1d8fd961e3c53d7f2e4fe84de6bc5420e77282f6451559f0042e915d7cb2085a
Architecture hash
39d54f5aed6f8dfdf3b76952e0b3e89b3b8da78ebbd24525edffedcc07256aed
Diagram SHA-256
a647adadf0bd3bcfd0783f15a0b15726c383d0406eb8e4237352d45460e0555a
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_medium_384', 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}, 
}