mlsanityData to 7 Oct 2026

Generalized SAM: Efficient Fine-Tuning of SAM for Variable Input Image Sizes

arXiv 2408.12406 ↗First posted 22 Aug 2024cs.CVcited by 6

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  7. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  8. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  9. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  10. 2023Segment Anythingcited by 8,158
  11. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  12. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
16 more
  1. 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
  2. 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,210
  3. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  4. 2016Pyramid Scene Parsing Networkcited by 2,472
  5. 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,154
  6. 2021TransUNet: Transformers Make Strong Encoders for Medical Image Segmentationcited by 1,552
  7. 2018UNet++: A Nested U-Net Architecture for Medical Image Segmentationcited by 1,518
  8. 2021Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentationcited by 1,218
  9. 2015Multi-Scale Context Aggregation by Dilated Convolutionscited by 1,128
  10. 2022AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognitioncited by 714
  11. 2019Kvasir-SEG: A Segmented Polyp Datasetcited by 588
  12. 2021Conditional Positional Encodings for Vision Transformerscited by 402
  13. 2023Customized Segment Anything Model for Medical Image Segmentationcited by 277
  14. 2018Recurrent Residual Convolutional Neural Network based on U-Net (R2U-Net) for Medical Image Segmentationcited by 180
  15. 2020Segmenting Transparent Objects in the Wildcited by 98
  16. 2024Convolution Meets LoRA: Parameter Efficient Finetuning for Segment Anything Modelcited by 67

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 1.

6 papers.