Methods › Computer Vision › Vision Transformers › TNT

Transformer in Transformer

TNT

12 papers tagged archive 2025-07-28

Introduced by Kai Han et al. in Transformer in Transformer

archive 2025-07-28 Description, source and code snippet are the archive's method entry.

Transformer is a type of self-attention-based neural networks originally applied for NLP tasks. Recently, pure transformer-based models are proposed to solve computer vision problems. These visual transformers usually view an image as a sequence of patches while they ignore the intrinsic structure information inside each patch. In this paper, we propose a novel Transformer-iN-Transformer (TNT) model for modeling both patch-level and pixel-level representation. In each TNT block, an outer transformer block is utilized to process patch embeddings, and an inner transformer block extracts local features from pixel embeddings. The pixel-level feature is projected to the space of patch embedding by a linear transformation layer and then added into the patch. By stacking the TNT blocks, we build the TNT model for image recognition.

Image source: Han et al.

PaperSource

Papers archive 2025-07-28

12 shown of 12, newest first. Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code; it is per sample and not a correctness claim.

Tasks archive 2025-07-28

14 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.

TaskPapers
Image Classification2
Second-order methods2
Sentence2
3DGS1
Autonomous Vehicles1
Deep Learning1
Evolutionary Algorithms1
Fine-Grained Image Classification1
Image Harmonization1
NeRF1
Neural Rendering1
Surface Reconstruction1
Traffic Sign Recognition1
image-classification1

Usage over time archive 2025-07-28

Papers per year tagged with TNT: 2021 to 2024, peak 6 6 0 2021: 4 papers 2021 2022: 2 papers 2022 2023: 0 papers 2023 2024: 6 papers 2024
Papers per year the archive tags with this method, by the paper's archive date (12 dated). Bars are counts, not a trend claim.

Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).

Categories archive 2025-07-28

Vision TransformersImage Model BlocksImage ModelsBackbone ArchitecturesTransformers

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections