Papers › GLiT: Neural Architecture Search for Global and Local Image Transformer

GLiT: Neural Architecture Search for Global and Local Image Transformer

7 Jul 2021ICCV 2021 10arXiv:2107.02960archive 2025-07-28

BoYu Chen, Peixia Li, Chuming Li, Baopu Li, Lei Bai, Chen Lin, Ming Sun, Junjie Yan, Wanli Ouyang

We introduce the first Neural Architecture Search (NAS) method to find a better transformer architecture for image recognition. Recently, transformers without CNN-based backbones are found to achieve impressive performance for image recognition. However, the transformer is designed for NLP tasks and thus could be sub-optimal when directly used for image recognition. In order to improve the visual representation ability for transformers, we propose a new search space and searching algorithm. Specifically, we introduce a locality module that models the local correlations in images explicitly with fewer computational cost. With the locality module, our search space is defined to let the search algorithm freely trade off between global and local information as well as optimizing the low-level design choice in each module. To tackle the problem caused by huge search space, a hierarchical neural architecture search method is proposed to search the optimal vision transformer from two levels separately with the evolutionary algorithm. Extensive experiments on the ImageNet dataset demonstrate that our method can find more discriminative and efficient transformer variants than the ResNet family (e.g., ResNet101) and the baseline ViT for image classification.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2107.02960")

Code

Syntology Ran 2 of 4 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 2 ran with no contract checked.

By repository: community (archive-listed): 4 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

bychen515/glit officialmentioned in papermentioned on GitHubpytorch report
lpxtt/simtrack mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

4 samples harvested; 2 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran
2unverified

Licence: 0 of the 4 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from lpxtt/simtrack. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

TransformerEncoder lpxtt/simtrack/lib/models/stark/transformer.py community (archive-listed) ran fingerprinted MIT (permissive) · 185ba7199442da8a · report
TransformerEncoderLayer lpxtt/simtrack/lib/models/stark/transformer.py community (archive-listed) ran MIT (permissive) · 0fa568810a644276 · report
Transformer lpxtt/simtrack/lib/models/stark/transformer.py community (archive-listed) unverified MIT (permissive) · 40172c198ba18de8 · report
TransformerDecoderLayer lpxtt/simtrack/lib/models/stark/transformer.py community (archive-listed) unverified MIT (permissive) · 45c535d5c49fc225 · report

Tasks

Image ClassificationNeural Architecture Searchimage-classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification ImageNet GLiT-Bases GFLOPs 17 #555 of 1060 Archive leaderboard report
Image Classification ImageNet GLiT-Bases Number of params 96.1M #555 of 1060 Archive leaderboard report
Image Classification ImageNet GLiT-Bases Top 1 Accuracy 82.3% #555 of 1060 Archive leaderboard report
Image Classification ImageNet GLiT-Smalls GFLOPs 4.4 #699 of 1060 Archive leaderboard report
Image Classification ImageNet GLiT-Smalls Number of params 24.6M #699 of 1060 Archive leaderboard report
Image Classification ImageNet GLiT-Smalls Top 1 Accuracy 80.5% #699 of 1060 Archive leaderboard report
Image Classification ImageNet GLiT-Tinys GFLOPs 1.4 #920 of 1060 Archive leaderboard report
Image Classification ImageNet GLiT-Tinys Number of params 7.2M #920 of 1060 Archive leaderboard report
Image Classification ImageNet GLiT-Tinys Top 1 Accuracy 76.3% #920 of 1060 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

1x1 ConvolutionAttentionAverage PoolingBatch NormalizationBottleneck Residual BlockConvolutionDense ConnectionsGlobal Average PoolingKaiming InitializationLayer NormalizationLinear LayerMax PoolingMulti-Head AttentionReLUResidual BlockResidual ConnectionSoftmaxVision Transformer

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