Pith. sign in

REVIEW 4 cited by

LocalViT: Analyzing Locality in Vision Transformers

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2104.05707 v2 pith:D4CRNYL5 submitted 2021-04-12 cs.CV

classification cs.CV
keywords localitytransformersmechanismvisionmechanismsavailablechoicesfeed-forward
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

The aim of this paper is to study the influence of locality mechanisms in vision transformers. Transformers originated from machine translation and are particularly good at modelling long-range dependencies within a long sequence. Although the global interaction between the token embeddings could be well modelled by the self-attention mechanism of transformers, what is lacking is a locality mechanism for information exchange within a local region. In this paper, locality mechanism is systematically investigated by carefully designed controlled experiments. We add locality to vision transformers into the feed-forward network. This seemingly simple solution is inspired by the comparison between feed-forward networks and inverted residual blocks. The importance of locality mechanisms is validated in two ways: 1) A wide range of design choices (activation function, layer placement, expansion ratio) are available for incorporating locality mechanisms and proper choices can lead to a performance gain over the baseline, and 2) The same locality mechanism is successfully applied to vision transformers with different architecture designs, which shows the generalization of the locality concept. For ImageNet2012 classification, the locality-enhanced transformers outperform the baselines Swin-T, DeiT-T, and PVT-T by 1.0%, 2.6% and 3.1% with a negligible increase in the number of parameters and computational effort. Code is available at https://github.com/ofsoundof/LocalViT.

Discussion (0). Sign in to comment.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. From Local Windows to Adaptive Candidates via Individualized Exploratory: Rethinking Attention for Image Super-Resolution

    cs.CV 2026-01 conditional novelty 5.0 of 10

    A transformer that starts each token with local-plus-sparse-global neighbors, then expands and prunes that candidate list layer by layer, reports consistent state-of-the-art PSNR/SSIM at matched FLOPs on classical and...

  2. HydraMamba: Multi-Head State Space Model for Global Point Cloud Learning

    cs.CV 2025-07 conditional novelty 5.0 of 10

    A state space model based point cloud network with shuffled Hilbert serialization, a convolutional bidirectional S6 branch, and multi-head S6 achieves new top scores on ModelNet40, ShapeNet, S3DIS, and ScanObjectNN.

  3. DuoFormer: Leveraging Hierarchical Representations by Local and Global Attention Vision Transformer

    cs.CV 2025-06 conditional novelty 4.0 of 10

    A hybrid CNN-transformer model with scale-wise local and global attention reports accuracy gains over several baselines on kidney cancer tissue classification.

  4. DFYP: A Dynamic Fusion Framework with Spectral Channel Attention and Adaptive Operator learning for Crop Yield Prediction

    cs.CV 2025-07 reject novelty 3.0 of 10

    DFYP is a crop yield prediction framework combining resolution-aware channel attention, validation-driven edge operator selection, and CNN-ViT fusion, but the method's internal contradictions and test-set-tuned evalua...

Pith tools