CeiT
CeiT base at 224 px: a vision Transformer modified with convolution designs for tokenization and feed-forward layers.
Image classification · 508 operations Checked
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
- Task
- Image classification
- Parameters
- 94.4M
- Operations
- 508
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICCV (arXiv 2021)
- Cited by
- 610 (as of 28 October 2026)
- Authors
- Kun Yuan, Shaopeng Guo, Ziwei Liu and others
- Source
- GitHub: coeusguo/ceit
- 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 file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15251
- Graph hash
- a4e66f8f56bc867cb638c53c4c424936b9718ec5ae7e383efdf133f2a9c2dd1c
- Skeleton hash
- 23035273b14daedc9cba393fd774541229b69bf4136cb8346dcf1e3c06dde81c
- Architecture hash
- 7590bfa58307e1c9530df9d32118ae45d5cfdda00381f52f8094a5f65a79e29f
- Diagram SHA-256
- aa97208c80957d577216175b2ad1d7859df13329b1063e08e5264f07f2cb39e3
- 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
What it is
CeiT, the Convolution-enhanced image Transformer, is an image classifier that combines the strengths of CNNs in extracting low-level features and strengthening locality with the strength of Transformers in establishing long-range dependencies. The paper starts from the observation that pure Transformer architectures often need a large amount of training data or extra supervision to reach performance comparable with convolutional neural networks.
It makes three modifications to the original Transformer. An Image-to-Tokens (I2T) module extracts patches from generated low-level features instead of tokenizing the raw input image directly. The feed-forward network in each encoder block is replaced with a Locally-enhanced Feed-Forward (LeFF) layer that promotes the correlation among neighboring tokens in the spatial dimension. A Layer-wise Class token Attention (LCA) is attached at the top of the Transformer and uses the multi-level representations.
The paper reports experiments on ImageNet and seven downstream tasks that compare CeiT with previous Transformers. It also says CeiT models show better convergence, with 3 times fewer training iterations. The official implementation builds from the Data-Efficient Vision Transformer code and timm. Its model zoo lists ceit_base_patch16_224, trained for 100 epochs, at 94.4M parameters and a top-1 accuracy of 81.9.
Key idea. CeiT adds an Image-to-Tokens module, a Locally-enhanced Feed-Forward layer and Layer-wise Class token Attention to a vision Transformer, combining CNN locality with long-range dependencies.
- CeiT
- Convolution-enhanced image Transformer
- Incorporating Convolution Designs into Visual Transformers
- vision transformer
- image classification
- ImageNet
- I2T
- LeFF
- LCA
- convolution transformer hybrid
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yuan2021incorporatingconvolutiondesignsvisual,
title={Incorporating Convolution Designs into Visual Transformers},
author={Kun Yuan and Shaopeng Guo and Ziwei Liu and Aojun Zhou and Fengwei Yu and Wei Wu},
year={2021},
eprint={2103.11816},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2103.11816},
}