mlsanityData to 7 Oct 2026

PTQ4SAM: Post-Training Quantization for Segment Anything

arXiv 2405.03144 ↗First posted 6 May 2024cs.CV cs.LGcited by 32

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

  1. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  2. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  3. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
  4. 2023Segment Anythingcited by 8,158
  5. 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
  6. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
  7. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  8. 2019FCOS: Fully Convolutional One-Stage Object Detectioncited by 1,573
  9. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
  10. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  11. 2022DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detectioncited by 1,306
  12. 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
38 more
  1. 2021YOLOX: Exceeding YOLO Series in 2021cited by 1,064
  2. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  3. 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
  4. 2017DOTA: A Large-scale Dataset for Object Detection in Aerial Imagescited by 622
  5. 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
  6. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
  7. 2021BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstructioncited by 464
  8. 2021A White Paper on Neural Network Quantizationcited by 453
  9. 2023Segment Anything in High Qualitycited by 373
  10. 2023Faster Segment Anything: Towards Lightweight SAM for Mobile Applicationscited by 345
  11. 2023Fast Segment Anythingcited by 286
  12. 2023Q-Diffusion: Quantizing Diffusion Modelscited by 266
  13. 2022Post-training Quantization on Diffusion Modelscited by 262
  14. 2023Personalize Segment Anything Model with One Shotcited by 250
  15. 2018Bi-Real Net: Enhancing the Performance of 1-bit CNNs With Improved Representational Capability and Advanced Training Algorithmcited by 233
  16. 2023Inpaint Anything: Segment Anything Meets Image Inpaintingcited by 233
  17. 2023Track Anything: Segment Anything Meets Videoscited by 230
  18. 2023Segment and Track Anythingcited by 193
  19. 2019Low-bit Quantization of Neural Networks for Efficient Inferencecited by 185
  20. 2023Semantic-SAM: Segment and Recognize Anything at Any Granularitycited by 185
  21. 2020Integer Quantization for Deep Learning Inference: Principles and Empirical Evaluationcited by 183
  22. 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
  23. 2022QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantizationcited by 175
  24. 2021PTQ4ViT: Post-training quantization for vision transformers with twin uniform quantizationcited by 173
  25. 2022DETRs with Hybrid Matchingcited by 149
  26. 2021FQ-ViT: Post-Training Quantization for Fully Quantized Vision Transformercited by 148
  27. 2022RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformerscited by 134
  28. 2021Dual Attention Suppression Attack: Generate Adversarial Camouflage in Physical Worldcited by 127
  29. 2023Segment Any Point Cloud Sequences by Distilling Vision Foundation Modelscited by 123
  30. 2023Can SAM Segment Anything? When SAM Meets Camouflaged Object Detectioncited by 99
  31. 2023Caption Anything: Interactive Image Description with Diverse Multimodal Controlscited by 98
  32. 2016Convolutional Neural Networks using Logarithmic Data Representationcited by 97
  33. 2023Anything-3D: Towards Single-view Anything Reconstruction in the Wildcited by 91
  34. 2022PD-Quant: Post-Training Quantization based on Prediction Difference Metriccited by 73
  35. 2023Towards Accurate Post-Training Quantization for Vision Transformercited by 70
  36. 2023FlexRound: Learnable Rounding based on Element-wise Division for Post-Training Quantizationcited by 46
  37. 2021Harnessing Perceptual Adversarial Patches for Crowd Countingcited by 39
  38. 2023Matte Anything: Interactive Natural Image Matting with Segment Anything Modelscited by 39

50 most cited of 60 All 60 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 7; 2025: 14; 2026: 11.

32 papers.

Sort:

By area:

  1. 2025Fast-FoundationStereo: Real-Time Zero-Shot Stereo Matchingcited by 23
  2. 2025A Survey on Efficient Vision-Language Modelscited by 19
  3. 2025APHQ-ViT: Post-Training Quantization with Average Perturbation Hessian Based Reconstruction for Vision Transformerscited by 17
  4. 2024On Efficient Variants of Segment Anything Model: A Surveycited by 16
  5. 2024LLMCBench: Benchmarking Large Language Model Compression for Efficient Deploymentcited by 16
  6. 2024QVD: Post-training Quantization for Video Diffusion Modelscited by 14
  7. 2024BiDM: Pushing the Limit of Quantization for Diffusion Modelscited by 11
  8. 2025Low-bit Model Quantization for Deep Neural Networks: A Surveycited by 11
  9. 2025SalQ-VLM: Fine-Grained Saliency-Guided Quantization for Vision-Language Modelscited by 7
  10. 2025LLMC+: Benchmarking Vision-Language Model Compression with a Plug-and-play Toolkitcited by 7
  11. 2024PTSBench: A Comprehensive Post-Training Sparsity Benchmark Towards Algorithms and Modelscited by 5
  12. 2024SSA-Seg: Semantic and Spatial Adaptive Pixel-level Classifier for Semantic Segmentationcited by 4
20 more
  1. 2024Privacy-Preserving SAM Quantization for Efficient Edge Intelligence in Healthcarecited by 4
  2. 2025Mix-QSAM: Mixed-Precision Quantization of the Segment Anything Modelcited by 4
  3. 2025AHCQ-SAM: Toward Accurate and Hardware-Compatible Post-Training Segment Anything Model Quantizationcited by 3
  4. 2025SAQ-SAM: Semantically-Aligned Quantization for Segment Anything Modelcited by 3
  5. 2025AccuQuant: Simulating Multiple Denoising Steps for Quantizing Diffusion Modelscited by 3
  6. 2025Compress Any Segment Anything Model (SAM)cited by 2
  7. 2025SLMQuant:Benchmarking Small Language Model Quantization for Practical Deploymentcited by 2
  8. 2026Efficient-SAM2: Accelerating SAM2 with Object-Aware Visual Encoding and Memory Retrievalcited by 2
  9. 2026StructSAM: Structure- and Spectrum-Preserving Token Merging for Segment Anything Modelscited by 2
  10. 2025Dual Precision Quantization for Efficient and Accurate Deep Neural Networks Inferencecited by 1
  11. 2025Q-SAM2: Accurate Quantization for Segment Anything Model 2cited by 1
  12. 2026PicoSAM3: Real-Time In-Sensor Region-of-Interest Segmentationcited by 1
  13. 2026CAR-SAM: Cross-Attention Reconstruction for Post-Training Quantization of the Segment Anything Modelcited by 1
  14. 2026SparseSAM: Structured Sparsification of Activations in Segment Anything Modelscited by 1
  15. 2026Memory-efficient Continual Learning with Prototypical Exemplar Condensationcited by 0
  16. 2026When W4A4 Breaks Camouflaged Object Detection: Token-Group Dual-Constraint Activation Quantizationcited by 0
  17. 2026Lean-SAM2: Target-Anchored Memory and Encoder Acceleration for SAM2cited by 0
  18. 2026MixFrag: Fragility-Guided Mixed-Precision Post-Training Quantization for Vision Transformerscited by 0
  19. 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Accelerationcited by 0
  20. 2026DCM-SAM: Defect-Conditioned Mixture of LoRA Experts for NPU-Deployed AM Defect Segmentationcited by 0