Image-Specific Adaptation of Transformer Encoders for Compute-Efficient Segmentation
Not on the map. Why?
Abstract (arXiv)
Vision transformer based models bring significant improvements for image segmentation tasks. Although these architectures offer powerful capabilities irrespective of specific segmentation tasks, their use of computational resources can be taxing on deployed devices. One way to overcome this challenge is by adapting the computation level to the specific needs of the input image rather than the current one-size-fits-all approach. To this end, we introduce ECO-M2F or EffiCient TransfOrmer Encoders for Mask2Former-style models. Noting that the encoder module of M2F-style models incur high resource-intensive computations, ECO-M2F provides a strategy to self-select the number of hidden layers in the encoder, conditioned on the input image. To enable this self-selection ability for providing a balance between performance and computational efficiency, we present a three step recipe. The first step is to train the parent architecture to enable early exiting from the encoder. The second step is to create an derived dataset of the ideal number of encoder layers required for each training example. The third step is to use the aforementioned derived dataset to train a gating network that predicts the number of encoder layers to be used, conditioned on the input image. Additionally, to change the computational-accuracy tradeoff, only steps two and three need to be repeated which significantly reduces retraining time. Experiments on the public datasets show that the proposed approach reduces expected encoder computational cost while maintaining performance, adapts to various user compute resources, is flexible in architecture configurations, and can be extended beyond the segmentation task to object detection.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 28 of its 41 references that are in the map. First posted on arXiv 23 Apr 2024.
Builds on
28 of 41 references.
References · 28
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2017Mask R-CNNcited by 7,277
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
- 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,351
- 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,152
- 2023DETRs Beat YOLOs on Real-time Object Detectioncited by 533
- 2019Panoptic-DeepLabcited by 363
16 more
- 2022OneFormer: One Transformer to Rule Universal Image Segmentationcited by 328
- 2020BiSeNet V2: Bilateral Network with Guided Aggregation for Real-time Semantic Segmentationcited by 294
- 2023Efficient Large Language Models: A Surveycited by 186
- 2021Rethinking BiSeNet For Real-time Semantic Segmentationcited by 124
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 86
- 2022PIDNet: A Real-time Semantic Segmentation Network Inspired by PID Controllerscited by 84
- 2022You Need Multiple Exiting: Dynamic Early Exiting for Accelerating Unified Vision Language Modelcited by 43
- 2023Lite DETR : An Interleaved Multi-Scale Encoder for Efficient DETRcited by 36
- 2024PEM: Prototype-based Efficient MaskFormer for Image Segmentationcited by 36
- 2019Real-Time Panoptic Segmentation from Dense Detectionscited by 31
- 2023DaTaSeg: Taming a Universal Multi-Dataset Multi-Task Segmentation Modelcited by 31
- 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformercited by 31
- 2021Multi-Exit Vision Transformer for Dynamic Inferencecited by 28
- 2021Single-Layer Vision Transformers for More Accurate Early Exits with Less Overheadcited by 26
- 2023ReMaX: Relaxing for Better Training on Efficient Panoptic Segmentationcited by 18
- 2023Adaptive Deep Neural Network Inference Optimization with EENetcited by 9
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023DFormer: Diffusion-guided Transformer for Universal Image Segmentation
- 2026LUMA: Benchmarking Segmentation via a Lightweight Universal Mask Adapter
- 2025I-Segmenter: Integer-Only Vision Transformer for Efficient Semantic Segmentation
- 2026Towards Agnostic and Holistic Universal Image Segmentation with Bit Diffusion
- 2026iFAN: Inference-Aware Learning for Plain Mask Transformers
- 2022Patcher: Patch Transformers with Mixture of Experts for Precise Medical Image Segmentation
- 2026SegMaFormer: A Hybrid State-Space and Transformer Model for Efficient Segmentation
- 2021Dynamically pruning segformer for efficient semantic segmentation