All models

cait_m48_448

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

Image classification · 1,802 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
356.5M
Operations
1,802
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
m3734
Graph hash
a5ff7939ca89ce64e1fc24572ca4eaed03708246284f22d47868ca629701099d
Skeleton hash
86d62f37264e5a68da29c17c1edaebd873e489404c0b841b5820f1d0fd387f6f
Architecture hash
a73b2f21fe440fb5b46495c6289b46ac59848797bf95dceb493ba5ed24879e78
Diagram SHA-256
9b15c88e1d1a496d0a4c6a925cc421cee3d7c7782d613e11fea353a0fe796681
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_m48_448', pretrained=False)

What it is

The M-48 model at 448 resolution with distillation, which the paper reports at 86.5% top-1 accuracy on Imagenet1k-val.

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}, 
}