DuoFormer: Leveraging Hierarchical Representations by Local and Global Attention Vision Transformer
Not on the map. Why?
Abstract (arXiv)
Despite the widespread adoption of transformers in medical applications, the exploration of multi-scale learning through transformers remains limited, while hierarchical representations are considered advantageous for computer-aided medical diagnosis. We propose a novel hierarchical transformer model that adeptly integrates the feature extraction capabilities of Convolutional Neural Networks (CNNs) with the advanced representational potential of Vision Transformers (ViTs). Addressing the lack of inductive biases and dependence on extensive training datasets in ViTs, our model employs a CNN backbone to generate hierarchical visual representations. These representations are adapted for transformer input through an innovative patch tokenization process, preserving the inherited multi-scale inductive biases. We also introduce a scale-wise attention mechanism that directly captures intra-scale and inter-scale associations. This mechanism complements patch-wise attention by enhancing spatial understanding and preserving global perception, which we refer to as local and global attention, respectively. Our model significantly outperforms baseline models in terms of classification accuracy, demonstrating its efficiency in bridging the gap between Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs). The components are designed as plug-and-play for different CNN architectures and can be adapted for multiple applications. The code is available at https://github.com/xiaoyatang/DuoFormer.git.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 26 of its 33 references that are in the map. First posted on arXiv 15 Jun 2025.
Builds on
26 of 33 references.
References · 26
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 569
- 2021TransMIL: Transformer based Correlated Multiple Instance Learning for Whole Slide Image Classificationcited by 555
- 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 519
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
14 more
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2022Transformers in Medical Imaging: A Surveycited by 245
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2021UCTransNet: Rethinking the Skip Connections in U-Net from a Channel-wise Perspective with Transformercited by 197
- 2022Benchmarking Self-Supervised Learning on Diverse Pathology Datasetscited by 150
- 2021Vision Transformer for Small-Size Datasetscited by 122
- 2021Efficient Training of Visual Transformers with Small Datasetscited by 108
- 2023MedViT: A Robust Vision Transformer for Generalized Medical Image Classificationcited by 89
- 2022Conv2Former: A Simple Transformer-Style ConvNet for Visual Recognitioncited by 81
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2023Advances in Medical Image Analysis with Vision Transformers: A Comprehensive Reviewcited by 62
- 2023Scale-Aware Modulation Meet Transformercited by 49
- 2023HIGT: Hierarchical Interaction Graph-Transformer for Whole Slide Image Analysiscited by 17
- 2023CLASS-M: Adaptive stain separation-based contrastive learning with pseudo-labeling for histopathological image classificationcited by 5
Built on by
Not cited yet.