The Lighter The Better: Rethinking Transformers in Medical Image Segmentation Through Adaptive Pruning
Not on the map. Why?
Abstract (arXiv)
Vision transformers have recently set off a new wave in the field of medical image analysis due to their remarkable performance on various computer vision tasks. However, recent hybrid-/transformer-based approaches mainly focus on the benefits of transformers in capturing long-range dependency while ignoring the issues of their daunting computational complexity, high training costs, and redundant dependency. In this paper, we propose to employ adaptive pruning to transformers for medical image segmentation and propose a lightweight and effective hybrid network APFormer. To our best knowledge, this is the first work on transformer pruning for medical image analysis tasks. The key features of APFormer mainly are self-supervised self-attention (SSA) to improve the convergence of dependency establishment, Gaussian-prior relative position embedding (GRPE) to foster the learning of position information, and adaptive pruning to eliminate redundant computations and perception information. Specifically, SSA and GRPE consider the well-converged dependency distribution and the Gaussian heatmap distribution separately as the prior knowledge of self-attention and position embedding to ease the training of transformers and lay a solid foundation for the following pruning operation. Then, adaptive transformer pruning, both query-wise and dependency-wise, is performed by adjusting the gate control parameters for both complexity reduction and performance improvement. Extensive experiments on two widely-used datasets demonstrate the prominent segmentation performance of APFormer against the state-of-the-art methods with much fewer parameters and lower GFLOPs. More importantly, we prove, through ablation studies, that adaptive pruning can work as a plug-n-play module for performance improvement on other hybrid-/transformer-based methods. Code is available at https://github.com/xianlin7/APFormer.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 45 of its 58 references that are in the map. First posted on arXiv 29 Jun 2022.
Builds on
45 of 58 references.
References · 45
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2021TransUNet: Transformers Make Strong Encoders for Medical Image Segmentationcited by 1,552
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
- 2021Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentationcited by 1,218
- 2021UNETR: Transformers for 3D Medical Image Segmentationcited by 954
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2019Skin Lesion Analysis Toward Melanoma Detection 2018: A Challenge Hosted by the International Skin Imaging Collaboration (ISIC)cited by 657
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
33 more
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
- 2021Medical Transformer: Gated Axial-Attention for Medical Image Segmentationcited by 319
- 2021DeepViT: Towards Deeper Vision Transformercited by 288
- 2018Attention Gated Networks: Learning to Leverage Salient Regions in Medical Imagescited by 271
- 2021TransBTS: Multimodal Brain Tumor Segmentation Using Transformercited by 265
- 2021TransFuse: Fusing Transformers and CNNs for Medical Image Segmentationcited by 258
- 2021CoTr: Efficiently Bridging CNN and Transformer for 3D Medical Image Segmentationcited by 227
- 2019CE-Net: Context Encoder Network for 2D Medical Image Segmentationcited by 219
- 2021IA-RED2: Interpretability-Aware Redundancy Reduction for Vision Transformerscited by 127
- 2021DS-TransUNet:Dual Swin Transformer U-Net for Medical Image Segmentationcited by 126
- 2021UTNet: A Hybrid Transformer Architecture for Medical Image Segmentationcited by 116
- 2021Are Convolutional Neural Networks or Transformers more like human vision?cited by 109
- 2021MISSFormer: An Effective Medical Image Segmentation Transformercited by 103
- 2021Mixed Transformer U-Net For Medical Image Segmentationcited by 95
- 2021LeViT-UNet: Make Faster Encoders with Transformer for Medical Image Segmentationcited by 85
- 2020CA-Net: Comprehensive Attention Convolutional Neural Networks for Explainable Medical Image Segmentationcited by 79
- 2021Vision Transformer Pruningcited by 77
- 2021TransAttUnet: Multi-level Attention-guided U-Net with Transformer for Medical Image Segmentationcited by 60
- 2021Convolution-Free Medical Image Segmentation using Transformerscited by 49
- 2021Vision Transformers with Patch Diversificationcited by 45
- 2022A Data-scalable Transformer for Medical Image Segmentation: Architecture, Model Efficiency, and Benchmarkcited by 45
- 2021Multi-Compound Transformer for Accurate Biomedical Image Segmentationcited by 42
- 2021TransClaw U-Net: Claw U-Net with Transformers for Medical Image Segmentationcited by 41
- 2022Transformers in Medical Image Analysis: A Reviewcited by 41
- 2021Boundary-aware Transformers for Skin Lesion Segmentationcited by 39
- 2022D-Former: A U-shaped Dilated Transformer for 3D Medical Image Segmentationcited by 35
- 2022The Principle of Diversity: Training Stronger Vision Transformers Calls for Reducing All Levels of Redundancycited by 35
- 2022Class-Aware Adversarial Transformers for Medical Image Segmentationcited by 33
- 2022Contextual Attention Network: Transformer Meets U-Netcited by 33
- 2019Multi-label Co-regularization for Semi-supervised Facial Action Unit Recognitioncited by 26
- 2021More than Encoder: Introducing Transformer Decoder to Upsamplecited by 26
- 2021SpecTr: Spectral Transformer for Hyperspectral Pathology Image Segmentationcited by 23
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 2; 2025: 2; 2026: 3.
9 papers.
- 2022Sauron U-Net: Simple automated redundancy elimination in medical image segmentation via filter pruningcited by 5
- 2024Prototype Learning Guided Hybrid Network for Breast Tumor Segmentation in DCE-MRIcited by 3
- 2024Lightweight Change Detection in Heterogeneous Remote Sensing Images with Online All-Integer Pruning Trainingcited by 1
- 2026Efficient Deep Learning for Medical Imaging: Bridging the Gap Between High-Performance AI and Clinical Deploymentcited by 1
- 2026BATS: Resource-Efficient Volumetric Segmentation with Boundary-Aware Mixed-Resolution Tokenscited by 1
- 2023How Does Pruning Impact Long-Tailed Multi-Label Medical Image Classifiers?cited by 0
- 2025PARF-Net: integrating pixel-wise adaptive receptive fields into hybrid Transformer-CNN network for medical image segmentationcited by 0
- 2025Prompt-based Dynamic Token Pruning for Efficient Segmentation of Medical Imagescited by 0
- 2026Harnessing Lightweight Transformer with Contextual Synergic Enhancement for Efficient 3D Medical Image Segmentationcited by 0
- 2026BATS: Resource-Efficient Volumetric Segmentation with Boundary-Aware Mixed-Resolution Tokens29 Jul 2026
- 2026Harnessing Lightweight Transformer with Contextual Synergic Enhancement for Efficient 3D Medical Image Segmentation24 Mar 2026
- 2026Efficient Deep Learning for Medical Imaging: Bridging the Gap Between High-Performance AI and Clinical Deployment31 Jan 2026
- 2025Prompt-based Dynamic Token Pruning for Efficient Segmentation of Medical Images19 Jun 2025
- 2025PARF-Net: integrating pixel-wise adaptive receptive fields into hybrid Transformer-CNN network for medical image segmentation6 Jan 2025
- 2024Prototype Learning Guided Hybrid Network for Breast Tumor Segmentation in DCE-MRI11 Aug 2024
- 2024Lightweight Change Detection in Heterogeneous Remote Sensing Images with Online All-Integer Pruning Training3 May 2024
- 2023How Does Pruning Impact Long-Tailed Multi-Label Medical Image Classifiers?17 Aug 2023
- 2022Sauron U-Net: Simple automated redundancy elimination in medical image segmentation via filter pruning27 Sep 2022