All models

cait_m36_384

Deeper vision transformer with LayerScale and class-attention layers for image classification

Image classification · 1,370 operations Structure only

Structure-only capture: TorchLens recorded this graph without running real numbers through the model, so shapes and data types on the diagram are hypotheses, not measurements.

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 (21 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
cait
Parameters
271.2M
Operations
1,370
Framework
PyTorch
Recurrent
No
Published
ICCV (arXiv 2021)
Cited by
1,148 (as of 9 October 2026)
Authors
Hugo Touvron, Matthieu Cord, Alexandre Sablayrolles and others
License
Apache-2.0
Checked
Structure only: shapes and data types are hypotheses, not measurements.

Files

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

Details
Stable ID
m3733
Graph hash
573e2e795f010c657b2d93d29099bef67ca4b12361c8432072dade927a2ba164
Skeleton hash
2feff10d3c2bd8fc43ebf12fec53a5accdecf34eb3765fcc49d25d2d06ea363b
Architecture hash
d0e27fd955feb40bc76fe0c3e0dea142f8184cb9f880abb7321bab06e995ba48
Diagram SHA-256
791261d6c30346ffa5fffc11e52e2c45212961bc1c4224ac09d3d7abb36555ed
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3

How this diagram was made

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

What it is

About this model's family

CaiT stands for Class-Attention in Image Transformers. The paper builds and optimizes deeper transformer networks for image classification. It makes two architecture changes that improve the accuracy of deep transformers.

The first change, LayerScale, is a per-channel multiplication of the vector produced by each residual block, rather than a single scalar. Its diagonal is initialized with small values so that the residual branches contribute little at the start of training. The second change separates the self-attention layers between patches from class-attention layers that extract the processed patches into a single vector for a linear classifier. In the class-attention stage only the class embedding is updated.

The paper reports 86.5% top-1 accuracy on Imagenet when training with no external data. All models are initially trained at resolution 224 and optionally fine-tuned at resolution 384 or trained with distillation.

Key idea. CaiT builds on ViT by adding LayerScale in each residual block and a two-stage design with dedicated class-attention layers.

  • class-attention
  • LayerScale
  • deep image transformer
  • image classification
  • residual block scaling
  • class embedding
  • self-attention
  • ImageNet
  • fine-tuning at 384
  • distillation

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

Cite the paper

@misc{touvron2021goingdeeperimagetransformers,
      title={Going deeper with Image Transformers}, 
      author={Hugo Touvron and Matthieu Cord and Alexandre Sablayrolles and Gabriel Synnaeve and Hervé Jégou},
      year={2021},
      eprint={2103.17239},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2103.17239}, 
}