PTQ4SAM: Post-Training Quantization for Segment Anything
Not on the map. Why?
Abstract (arXiv)
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 propose a post-training quantization (PTQ) framework for Segment Anything Model, namely PTQ4SAM. First, we investigate the inherent bottleneck of SAM quantization attributed to the bimodal distribution in post-Key-Linear activations. We analyze its characteristics from both per-tensor and per-channel perspectives, and propose a Bimodal Integration strategy, which utilizes a mathematically equivalent sign operation to transform the bimodal distribution into a relatively easy-quantized normal distribution offline. Second, SAM encompasses diverse attention mechanisms (i.e., self-attention and two-way cross-attention), resulting in substantial variations in the post-Softmax distributions. Therefore, we introduce an Adaptive Granularity Quantization for Softmax through searching the optimal power-of-two base, which is hardware-friendly. Extensive experimental results across various vision tasks (instance segmentation, semantic segmentation and object detection), datasets and model variants show the superiority of PTQ4SAM. For example, when quantizing SAM-L to 6-bit, we achieve lossless accuracy for instance segmentation, about 0.5% drop with theoretical 3.9× acceleration. The code is available at urlhttps://github.com/chengtao-lv/PTQ4SAM.
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 60 of its 75 references that are in the map. First posted on arXiv 6 May 2024.
Builds on
60 of 75 references.
References · 60
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
- 2023Segment Anythingcited by 8,158
- 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2019FCOS: Fully Convolutional One-Stage Object Detectioncited by 1,573
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
- 2022DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detectioncited by 1,306
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
38 more
- 2021YOLOX: Exceeding YOLO Series in 2021cited by 1,064
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
- 2017DOTA: A Large-scale Dataset for Object Detection in Aerial Imagescited by 622
- 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
- 2021BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstructioncited by 464
- 2021A White Paper on Neural Network Quantizationcited by 453
- 2023Segment Anything in High Qualitycited by 373
- 2023Faster Segment Anything: Towards Lightweight SAM for Mobile Applicationscited by 345
- 2023Fast Segment Anythingcited by 286
- 2023Q-Diffusion: Quantizing Diffusion Modelscited by 266
- 2022Post-training Quantization on Diffusion Modelscited by 262
- 2023Personalize Segment Anything Model with One Shotcited by 250
- 2018Bi-Real Net: Enhancing the Performance of 1-bit CNNs With Improved Representational Capability and Advanced Training Algorithmcited by 233
- 2023Inpaint Anything: Segment Anything Meets Image Inpaintingcited by 233
- 2023Track Anything: Segment Anything Meets Videoscited by 230
- 2023Segment and Track Anythingcited by 193
- 2019Low-bit Quantization of Neural Networks for Efficient Inferencecited by 185
- 2023Semantic-SAM: Segment and Recognize Anything at Any Granularitycited by 185
- 2020Integer Quantization for Deep Learning Inference: Principles and Empirical Evaluationcited by 183
- 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
- 2022QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantizationcited by 175
- 2021PTQ4ViT: Post-training quantization for vision transformers with twin uniform quantizationcited by 173
- 2022DETRs with Hybrid Matchingcited by 149
- 2021FQ-ViT: Post-Training Quantization for Fully Quantized Vision Transformercited by 148
- 2022RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformerscited by 134
- 2021Dual Attention Suppression Attack: Generate Adversarial Camouflage in Physical Worldcited by 127
- 2023Segment Any Point Cloud Sequences by Distilling Vision Foundation Modelscited by 123
- 2023Can SAM Segment Anything? When SAM Meets Camouflaged Object Detectioncited by 99
- 2023Caption Anything: Interactive Image Description with Diverse Multimodal Controlscited by 98
- 2016Convolutional Neural Networks using Logarithmic Data Representationcited by 97
- 2023Anything-3D: Towards Single-view Anything Reconstruction in the Wildcited by 91
- 2022PD-Quant: Post-Training Quantization based on Prediction Difference Metriccited by 73
- 2023Towards Accurate Post-Training Quantization for Vision Transformercited by 70
- 2023FlexRound: Learnable Rounding based on Element-wise Division for Post-Training Quantizationcited by 46
- 2021Harnessing Perceptual Adversarial Patches for Crowd Countingcited by 39
- 2023Matte Anything: Interactive Natural Image Matting with Segment Anything Modelscited by 39
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2024: 7; 2025: 14; 2026: 11.
32 papers.
Sort:
By area:
- 2025Fast-FoundationStereo: Real-Time Zero-Shot Stereo Matchingcited by 23
- 2025A Survey on Efficient Vision-Language Modelscited by 19
- 2025APHQ-ViT: Post-Training Quantization with Average Perturbation Hessian Based Reconstruction for Vision Transformerscited by 17
- 2024On Efficient Variants of Segment Anything Model: A Surveycited by 16
- 2024LLMCBench: Benchmarking Large Language Model Compression for Efficient Deploymentcited by 16
- 2024QVD: Post-training Quantization for Video Diffusion Modelscited by 14
- 2024BiDM: Pushing the Limit of Quantization for Diffusion Modelscited by 11
- 2025Low-bit Model Quantization for Deep Neural Networks: A Surveycited by 11
- 2025SalQ-VLM: Fine-Grained Saliency-Guided Quantization for Vision-Language Modelscited by 7
- 2025LLMC+: Benchmarking Vision-Language Model Compression with a Plug-and-play Toolkitcited by 7
- 2024PTSBench: A Comprehensive Post-Training Sparsity Benchmark Towards Algorithms and Modelscited by 5
- 2024SSA-Seg: Semantic and Spatial Adaptive Pixel-level Classifier for Semantic Segmentationcited by 4
20 more
- 2024Privacy-Preserving SAM Quantization for Efficient Edge Intelligence in Healthcarecited by 4
- 2025Mix-QSAM: Mixed-Precision Quantization of the Segment Anything Modelcited by 4
- 2025AHCQ-SAM: Toward Accurate and Hardware-Compatible Post-Training Segment Anything Model Quantizationcited by 3
- 2025SAQ-SAM: Semantically-Aligned Quantization for Segment Anything Modelcited by 3
- 2025AccuQuant: Simulating Multiple Denoising Steps for Quantizing Diffusion Modelscited by 3
- 2025Compress Any Segment Anything Model (SAM)cited by 2
- 2025SLMQuant:Benchmarking Small Language Model Quantization for Practical Deploymentcited by 2
- 2026Efficient-SAM2: Accelerating SAM2 with Object-Aware Visual Encoding and Memory Retrievalcited by 2
- 2026StructSAM: Structure- and Spectrum-Preserving Token Merging for Segment Anything Modelscited by 2
- 2025Dual Precision Quantization for Efficient and Accurate Deep Neural Networks Inferencecited by 1
- 2025Q-SAM2: Accurate Quantization for Segment Anything Model 2cited by 1
- 2026PicoSAM3: Real-Time In-Sensor Region-of-Interest Segmentationcited by 1
- 2026CAR-SAM: Cross-Attention Reconstruction for Post-Training Quantization of the Segment Anything Modelcited by 1
- 2026SparseSAM: Structured Sparsification of Activations in Segment Anything Modelscited by 1
- 2026Memory-efficient Continual Learning with Prototypical Exemplar Condensationcited by 0
- 2026When W4A4 Breaks Camouflaged Object Detection: Token-Group Dual-Constraint Activation Quantizationcited by 0
- 2026Lean-SAM2: Target-Anchored Memory and Encoder Acceleration for SAM2cited by 0
- 2026MixFrag: Fragility-Guided Mixed-Precision Post-Training Quantization for Vision Transformerscited by 0
- 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Accelerationcited by 0
- 2026DCM-SAM: Defect-Conditioned Mixture of LoRA Experts for NPU-Deployed AM Defect Segmentationcited by 0
- 2026DCM-SAM: Defect-Conditioned Mixture of LoRA Experts for NPU-Deployed AM Defect Segmentation30 Sep 2026
- 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Acceleration27 Sep 2026
- 2026MixFrag: Fragility-Guided Mixed-Precision Post-Training Quantization for Vision Transformers30 Jul 2026
- 2026Lean-SAM2: Target-Anchored Memory and Encoder Acceleration for SAM222 Jul 2026
- 2026SparseSAM: Structured Sparsification of Activations in Segment Anything Models17 May 2026
- 2026CAR-SAM: Cross-Attention Reconstruction for Post-Training Quantization of the Segment Anything Model16 May 2026
- 2026When W4A4 Breaks Camouflaged Object Detection: Token-Group Dual-Constraint Activation Quantization18 Apr 2026
- 2026Memory-efficient Continual Learning with Prototypical Exemplar Condensation14 Mar 2026
- 2026PicoSAM3: Real-Time In-Sensor Region-of-Interest Segmentation12 Mar 2026
- 2026StructSAM: Structure- and Spectrum-Preserving Token Merging for Segment Anything Models7 Mar 2026
- 2026Efficient-SAM2: Accelerating SAM2 with Object-Aware Visual Encoding and Memory Retrieval9 Feb 2026
- 2025Fast-FoundationStereo: Real-Time Zero-Shot Stereo Matching11 Dec 2025
20 more
- 2025SLMQuant:Benchmarking Small Language Model Quantization for Practical Deployment17 Nov 2025
- 2025AccuQuant: Simulating Multiple Denoising Steps for Quantizing Diffusion Models23 Oct 2025
- 2025LLMC+: Benchmarking Vision-Language Model Compression with a Plug-and-play Toolkit13 Aug 2025
- 2025SalQ-VLM: Fine-Grained Saliency-Guided Quantization for Vision-Language Models5 Aug 2025
- 2025Compress Any Segment Anything Model (SAM)11 Jul 2025
- 2025Q-SAM2: Accurate Quantization for Segment Anything Model 211 Jun 2025
- 2025Dual Precision Quantization for Efficient and Accurate Deep Neural Networks Inference20 May 2025
- 2025Low-bit Model Quantization for Deep Neural Networks: A Survey8 May 2025
- 2025Mix-QSAM: Mixed-Precision Quantization of the Segment Anything Model8 May 2025
- 2025A Survey on Efficient Vision-Language Models13 Apr 2025
- 2025APHQ-ViT: Post-Training Quantization with Average Perturbation Hessian Based Reconstruction for Vision Transformers3 Apr 2025
- 2025SAQ-SAM: Semantically-Aligned Quantization for Segment Anything Model9 Mar 2025
- 2025AHCQ-SAM: Toward Accurate and Hardware-Compatible Post-Training Segment Anything Model Quantization5 Mar 2025
- 2024PTSBench: A Comprehensive Post-Training Sparsity Benchmark Towards Algorithms and Models10 Dec 2024
- 2024BiDM: Pushing the Limit of Quantization for Diffusion Models8 Dec 2024
- 2024LLMCBench: Benchmarking Large Language Model Compression for Efficient Deployment28 Oct 2024
- 2024On Efficient Variants of Segment Anything Model: A Survey7 Oct 2024
- 2024Privacy-Preserving SAM Quantization for Efficient Edge Intelligence in Healthcare14 Sep 2024
- 2024QVD: Post-training Quantization for Video Diffusion Models16 Jul 2024
- 2024SSA-Seg: Semantic and Spatial Adaptive Pixel-level Classifier for Semantic Segmentation10 May 2024
- 2025Fast-FoundationStereo: Real-Time Zero-Shot Stereo Matchingcited by 23
- 2025APHQ-ViT: Post-Training Quantization with Average Perturbation Hessian Based Reconstruction for Vision Transformerscited by 17
- 2024On Efficient Variants of Segment Anything Model: A Surveycited by 16
- 2024LLMCBench: Benchmarking Large Language Model Compression for Efficient Deploymentcited by 16
- 2025Low-bit Model Quantization for Deep Neural Networks: A Surveycited by 11
- 2024PTSBench: A Comprehensive Post-Training Sparsity Benchmark Towards Algorithms and Modelscited by 5
- 2024SSA-Seg: Semantic and Spatial Adaptive Pixel-level Classifier for Semantic Segmentationcited by 4
- 2024Privacy-Preserving SAM Quantization for Efficient Edge Intelligence in Healthcarecited by 4
- 2025Mix-QSAM: Mixed-Precision Quantization of the Segment Anything Modelcited by 4
- 2025AHCQ-SAM: Toward Accurate and Hardware-Compatible Post-Training Segment Anything Model Quantizationcited by 3
- 2025SAQ-SAM: Semantically-Aligned Quantization for Segment Anything Modelcited by 3
- 2025Compress Any Segment Anything Model (SAM)cited by 2
12 most cited of 24 All 24 (JSON)
- 2026DCM-SAM: Defect-Conditioned Mixture of LoRA Experts for NPU-Deployed AM Defect Segmentation30 Sep 2026
- 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Acceleration27 Sep 2026
- 2026MixFrag: Fragility-Guided Mixed-Precision Post-Training Quantization for Vision Transformers30 Jul 2026
- 2026Lean-SAM2: Target-Anchored Memory and Encoder Acceleration for SAM222 Jul 2026
- 2026CAR-SAM: Cross-Attention Reconstruction for Post-Training Quantization of the Segment Anything Model16 May 2026
- 2026When W4A4 Breaks Camouflaged Object Detection: Token-Group Dual-Constraint Activation Quantization18 Apr 2026
- 2026Memory-efficient Continual Learning with Prototypical Exemplar Condensation14 Mar 2026
- 2026PicoSAM3: Real-Time In-Sensor Region-of-Interest Segmentation12 Mar 2026
- 2026Efficient-SAM2: Accelerating SAM2 with Object-Aware Visual Encoding and Memory Retrieval9 Feb 2026
- 2025Fast-FoundationStereo: Real-Time Zero-Shot Stereo Matching11 Dec 2025
- 2025SLMQuant:Benchmarking Small Language Model Quantization for Practical Deployment17 Nov 2025
- 2025Compress Any Segment Anything Model (SAM)11 Jul 2025
12 newest of 24 All 24 (JSON)