Generalized SAM: Efficient Fine-Tuning of SAM for Variable Input Image Sizes
Not on the map. Why?
Abstract (arXiv)
There has been a lot of recent research on improving the efficiency of fine-tuning foundation models. In this paper, we propose a novel efficient fine-tuning method that allows the input image size of Segment Anything Model (SAM) to be variable. SAM is a powerful foundational model for image segmentation trained on huge datasets, but it requires fine-tuning to recognize arbitrary classes. The input image size of SAM is fixed at 1024 x 1024, resulting in substantial computational demands during training. Furthermore, the fixed input image size may result in the loss of image information, e.g. due to fixed aspect ratios. To address this problem, we propose Generalized SAM (GSAM). Different from the previous methods, GSAM is the first to apply random cropping during training with SAM, thereby significantly reducing the computational cost of training. Experiments on datasets of various types and various pixel counts have shown that GSAM can train more efficiently than SAM and other fine-tuning methods for SAM, achieving comparable or higher accuracy.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 28 of its 34 references that are in the map. First posted on arXiv 22 Aug 2024.
Builds on
28 of 34 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 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
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Segment Anythingcited by 8,158
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
16 more
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
- 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,210
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2016Pyramid Scene Parsing Networkcited by 2,472
- 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,154
- 2021TransUNet: Transformers Make Strong Encoders for Medical Image Segmentationcited by 1,552
- 2018UNet++: A Nested U-Net Architecture for Medical Image Segmentationcited by 1,518
- 2021Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentationcited by 1,218
- 2015Multi-Scale Context Aggregation by Dilated Convolutionscited by 1,128
- 2022AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognitioncited by 714
- 2019Kvasir-SEG: A Segmented Polyp Datasetcited by 588
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2023Customized Segment Anything Model for Medical Image Segmentationcited by 277
- 2018Recurrent Residual Convolutional Neural Network based on U-Net (R2U-Net) for Medical Image Segmentationcited by 180
- 2020Segmenting Transparent Objects in the Wildcited by 98
- 2024Convolution Meets LoRA: Parameter Efficient Finetuning for Segment Anything Modelcited by 67
Built on by
Citing papers per year: 2025: 5; 2026: 1.
6 papers.
- 2025ROS-SAM: High-Quality Interactive Segmentation for Remote Sensing Moving Objectcited by 15
- 2026Prompt-Free and Efficient SAM2 Adaptation for Biomedical Semantic Segmentation via Dual Adapterscited by 1
- 2025Multi-Sequence Parotid Gland Lesion Segmentation via Expert Text-Guided Segment Anything Modelcited by 0
- 2025Quickly Tuning Foundation Models for Image Segmentationcited by 0
- 2025Attack for Defense: Adversarial Agents for Point Prompt Optimization Empowering Segment Anything Modelcited by 0
- 2025AD-SAM: Adapting the Segment Anything Model for Semantic Segmentation in Autonomous Drivingcited by 0
- 2026Prompt-Free and Efficient SAM2 Adaptation for Biomedical Semantic Segmentation via Dual Adapters7 May 2026
- 2025AD-SAM: Adapting the Segment Anything Model for Semantic Segmentation in Autonomous Driving30 Oct 2025
- 2025Attack for Defense: Adversarial Agents for Point Prompt Optimization Empowering Segment Anything Model23 Sep 2025
- 2025Quickly Tuning Foundation Models for Image Segmentation24 Aug 2025
- 2025Multi-Sequence Parotid Gland Lesion Segmentation via Expert Text-Guided Segment Anything Model13 Aug 2025
- 2025ROS-SAM: High-Quality Interactive Segmentation for Remote Sensing Moving Object15 Mar 2025