Methods › Computer Vision › Vision Transformers › TNT
Transformer in Transformer
TNT
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.
In Syntology repository known, no verified implementation (declared_code; repositories: 5 listed of 11 in the graph, strongest link: official). The lookup matched a different name in Syntology's graph, 'Transformer in Transformer (TNT)' (resolution: alias); this answer is about that name. This answer is about arXiv:2103.00112, the paper the archive credits with this method.
Origin paper of this answer, arXiv:2103.00112 (its page on this site · its page on Syntology): Syntology's run record for its harvested code, 16 ran (of which 12 constructed an object rather than computing a result; 15 with no instrument failure: 1 honoured, 1 violated, 13 with no contract checked; 1 where Syntology's instrument failed) · 8 unverified (of 24 harvested samples) · 5 pointer-only (licence). The instrument figure counts failures of Syntology's instrument, not of the code. Ran means executed on a synthesized input, not that the code is correct.
Syntology's have check for this name (free, it answers coverage only), read 2026-10-05; ask it again live. A level is the served verification level of that one answer; nothing here is summed across methods.
Papers archive 2025-07-28
archive papers tagged: 12 · with a code link: 5 · where Syntology ran a sample: 2 (2 with a run with no instrument failure, 0 where every run was a failure of Syntology's instrument) Syntology
Show: all tagged papersonly where code ran (2 of 12 tagged: 2 with a run with no instrument failure, 0 where every run was a failure of Syntology's instrument)
Page 1 of 1: papers 1 to 12 of 12, newest first by the archive's date (ties by slug), in archive order.
Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code, as “N ran (of which C constructed an object rather than computing a result; K with no instrument failure: H honoured, V violated, P with no contract checked; I where Syntology's instrument failed) · U unverified”; the instrument figure counts failures of Syntology's instrument, not of the code. It is per sample and not a correctness claim. When the archive marks a repository official for the paper, the line starts with that repository's state (the archive's flag, not a verdict on who wrote the code; “community repositories only” when every sample that ran came from a community repository, “official: no sample here; runs from other or unrecorded repositories” when some came from a repository the paper names or has in its text, or from none recorded); hover it for the repositories the samples that ran came from.
-
Quadratic Gaussian Splatting for Efficient and Detailed Surface Reconstruction 25 Nov 2024 · 0 repositories · arXiv:2411.16392
-
Intensity Field Decomposition for Tissue-Guided Neural Tomography 1 Nov 2024 · 0 repositories · arXiv:2411.00900
-
Towards Minimal Targeted Updates of Language Models with Targeted Negative Training 19 Jun 2024 · 1 repository · arXiv:2406.13660
-
Swin transformers are robust to distribution and concept drift in endoscopy-based longitudinal rectal cancer assessment 6 May 2024 · 0 repositories · arXiv:2405.03762
-
Revolutionizing Traffic Sign Recognition: Unveiling the Potential of Vision Transformers 29 Apr 2024 · 0 repositories · arXiv:2404.19066
-
Nested-TNT: Hierarchical Vision Transformers with Multi-Scale Feature Processing 20 Apr 2024 · 0 repositories · arXiv:2404.13434
-
A Mini-Block Fisher Method for Deep Neural Networks 8 Feb 2022 · 0 repositories · arXiv:2202.04124
-
PyramidTNT: Improved Transformer-in-Transformer Baselines with Pyramid Architecture 4 Jan 2022 · 1 repository · arXiv:2201.00978
-
TnT Attacks! Universal Naturalistic Adversarial Patches Against Deep Neural Network Systems 19 Nov 2021 · 0 repositories · arXiv:2111.09999
-
Tree in Tree: from Decision Trees to Decision Graphs 1 Oct 2021 · 1 repository · arXiv:2110.00392
-
Tensor Normal Training for Deep Learning Models 5 Jun 2021 · 1 repository · arXiv:2106.02925Syntology official (archive's flag): 2 ran · 2 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 1 unverified (of 3 harvested samples) · 3 pointer-only (licence)
-
Transformer in Transformer 27 Feb 2021 · 12 repositories · arXiv:2103.00112Syntology official (archive's flag): 4 ran · 16 ran (of which 12 constructed an object rather than computing a result; 15 with no instrument failure: 1 honoured, 1 violated, 13 with no contract checked; 1 where Syntology's instrument failed) · 8 unverified (of 24 harvested samples) · 5 pointer-only (licence)
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.
Usage over time archive 2025-07-28
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
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