AI summary · arXiv: 2103.00112v1 · cs.CV

Transformer in Transformer

Kai Han, An Xiao, Enhua Wu, Jianyuan Guo, Chunjing Xu, Yunhe Wang

Original paper · DOI Submitted to arXiv on 27 Feb. 2021 License: NONEXCLUSIVE-DISTRIB 1.0

The essentials

  • The Transformer is a self-attention-based neural network architecture originally developed for NLP tasks.
  • Recent advancements have shown that pure transformer-based models can be applied to computer vision problems.
  • Visual transformers treat images as sequences of patches but overlook intrinsic structural information within each patch.
  • The proposed model, Transformer-iN-Transformer (TNT), captures both patch-level and pixel-level representations in images.
  • TNT consists of TNT blocks, with an outer transformer block for processing patch embeddings and an inner transformer block for extracting local features from pixel embeddings.
  • Pixel-level features are projected onto the space of patch embeddings and added into corresponding patches.
  • The TNT model achieves an impressive top-1 accuracy of 81.3% on ImageNet, outperforming similar models like DeiT with comparable computational cost.
  • The TNT architecture demonstrates state-of-the-art performance on image recognition tasks such as ImageNet classification.
  • Code for implementing the TNT architecture will be available at https://github.com/huawei-noah/noah-research/tree/master/TNT.

Key points written by AI: they may contain errors, check them against the paper.

AI-generated keywords: Transformer TNT Image Recognition Pixel-level Representations Patch Embeddings

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
The Transformer is a self-attention-based neural network architecture that was originally developed for natural language processing (NLP) tasks. However, recent advancements have shown that pure transformer-based models can also be applied to solve computer vision problems. These visual transformers typically treat an image as a sequence of patches, but they often overlook the intrinsic structural information within each patch. To address this limitation, the authors of this paper propose a novel model called Transformer-iN-Transformer (TNT), which aims to capture both patch-level and pixel-level representations in images. The TNT model consists of TNT blocks, each containing an outer transformer block for processing patch embeddings and an inner transformer block for extracting local features from pixel embeddings. In more detail, the pixel-level features are projected onto the space of patch embeddings using a linear transformation layer and then added into the corresponding patches. By stacking multiple TNT blocks together, the authors construct the TNT model for image recognition tasks. The proposed TNT architecture is evaluated on the ImageNet benchmark and various downstream tasks, demonstrating its superiority and efficiency compared to other existing models. For instance, the TNT model achieves an impressive top-1 accuracy of 81.3% on ImageNet, which is 1.5% higher than that of DeiT (a similar model) with comparable computational cost. Overall, this paper introduces a new approach to incorporate both patch-level and pixel-level representations in image analysis through the Transformer-iN-Transformer (TNT) model. The experimental results highlight its effectiveness in achieving state-of-the-art performance on image recognition tasks such as ImageNet classification. The code for implementing the proposed TNT architecture will be made available at https://github.com/huawei-noah/noah-research/tree/master/TNT.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

⚠The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 3 free rewrites left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero
Citation alerts
Journal club Premium+ Slides to present it
For journalists Premium+ Press kit and hype check

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

⚠The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.