paper-with-me

홈 › Papers

Q-SAM2: Accurate Quantization for Segment Anything Model 2

2025-06-11 · Nicola Farronato, Florian Scheidegger, Mattia Rigotti, Cristiano Malossi, Michele Magno, Haotong Qin

The Segment Anything Model 2 (SAM2) has gained significant attention as a foundational approach for promptable image and video segmentation. However, its expensive computational and memory consumption poses a severe challenge for its application in resource-constrained scenarios. In this paper, we propose an accurate low-bit quantization method for efficient SAM2, termed Q-SAM2. To address the performance degradation caused by the singularities in weight and activation distributions during quantization, Q-SAM2 introduces two novel technical contributions. We first introduce a linear layer calibration method for low-bit initialization of SAM2, which minimizes the Frobenius norm over a small image batch to reposition weight distributions for improved quantization. We then propose a Quantization-Aware Training (QAT) pipeline that applies clipping to suppress outliers and allows the network to adapt to quantization thresholds during training. Our comprehensive experiments demonstrate that Q-SAM2 allows for highly accurate inference while substantially improving efficiency. Both quantitative and visual results show that our Q-SAM2 surpasses existing state-of-the-art general quantization schemes, especially for ultra-low 2-bit quantization. While designed for quantization-aware training, our proposed calibration technique also proves effective in post-training quantization, achieving up to a 66% mIoU accuracy improvement over non-calibrated models.

📄 PDF Abstract BibTeX arXiv:2506.09782

Code (0)

등록된 구현이 없습니다.

Tasks

QuantizationVideo SegmentationVideo Semantic Segmentation

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar Papers 제목 키워드 기반

AHCPTQ: Accurate and Hardware-Compatible Post-Training Quantization for Segment Anything Model

2025-03-05 · Wenlun Zhang, Shimpei Ando, Kentaro Yoshioka

The Segment Anything Model (SAM) has demonstrated strong versatility across various visual tasks. However, its large storage requirements and high computational cost pose challenges for practical deployment. Post-trainin…

Instance SegmentationQuantizationSemantic Segmentation

PTQ4SAM: Post-Training Quantization for Segment Anything

2024-05-06 · CVPR 2024 1 · Chengtao Lv, Hong Chen, Jinyang Guo, Yifu Ding 외

Segment Anything Model (SAM) has achieved impressive performance in many computer vision tasks. However, as a large-scale model, the immense memory and computation costs hinder its practical deployment. In this paper, we…

Instance Segmentationobject-detectionObject DetectionQuantization+2

Efficient Quantization-Aware Training on Segment Anything Model in Medical Images and Its Deployment

2024-12-15 · Haisheng Lu, Yujie Fu, Fan Zhang, Le Zhang

Medical image segmentation is a critical component of clinical practice, and the state-of-the-art MedSAM model has significantly advanced this field. Nevertheless, critiques highlight that MedSAM demands substantial comp…

Image SegmentationMedical Image SegmentationQuantizationSemantic Segmentation

CAR-SAM: Cross-Attention Reconstruction for Post-Training Quantization of the Segment Anything Model

2026-05-16 · Houji Wen, Jiangyong Yu, Jun Li, Dawei Yang arxiv

Segment Anything Models (SAMs) are extensively used in computer vision for universal image segmentation, but deploying them on resource-constrained devices is challenging due to their high computational and memory demand…

Image SegmentationModel Compression

TinySAM: Pushing the Envelope for Efficient Segment Anything Model

2023-12-21 · Han Shu, Wenshuo Li, Yehui Tang, Yiman Zhang 외

Recently segment anything model (SAM) has shown powerful segmentation capability and has drawn great attention in computer vision fields. Massive following works have developed various applications based on the pre-train…

Knowledge DistillationQuantization