arXiv:2611.06143cs.CVNov 2026

Manuscript Offprint

arXiv:2611.06143

PTQ4SAM3: Semantics-Preserving Post-Training Quantization for Segment Anything Model 3

Xi Xiao, Yunbei Zhang, Lin Zhao, Janet Wang, Xinru Jiang, Yanshu Li, Chenrui Ma, Pan Wang, Tianyang Wang, Xiao Wang

Xi Xiao1^{1} Yunbei Zhang2^{2} Lin Zhao3^{3} Janet Wang2^{2} Xinru Jiang3^{3}

Yanshu Li4^{4} Chenrui Ma5^{5} Pan Wang6^{6} Tianyang Wang1^{1} Xiao Wang7^{7}

1^{1}University of Alabama at Birmingham, USA

2^{2}Tulane University, USA 3^{3}Northeastern University, USA

4^{4}University of Texas at Austin, USA 5^{5}University of Virginia, USA

6^{6}University of Pittsburgh, USA 7^{7}Oak Ridge National Laboratory, USA

wangx2@ornl.gov tw2@uab.edu

Quantized SAM3

Figure

Ours

Figure

Figure 1. SPQ preserves prompt grounding after quantization. Under the same text prompt, standard W4A8 quantization can select the wrong objects (left, red crosses). SPQ calibrates the model with text concepts, preserves residual features, and corrects memory bias (right). The latent-feature diagram illustrates features moving closer to the FP16 reference during offline calibration.

Abstract

Segment Anything Model 3 (SAM 3) can segment objects from text prompts and track them across video, but its memory and computation costs make deployment difficult. Posttraining quantization (PTQ) reduces these costs by using fewer bits. However, a quantized model can select the wrong object or lose track of its target across frames. We call this prompt-alignment drift. Controlled tests show

that perturbing low-variance feature directions strongly affects target selection. We propose Semantics-Preserving Quantization (SPQ), which gives more calibration weight to concept-sensitive parameters, preserves residual features, and corrects the mean error in video memory. Fixed text concepts guide calibration without task annotations. All three components operate offline and add no inference operators. With a W4A8 image encoder, SPQ improves RefCOCO Pr@0.5 from 42.1 to 72.5 over PTQ4SAM while retaining 54.8 COCO mask AP. Experiments on LVIS, RefCOCO variants, and SA-V show consistent gains. A CLIP study also shows improved image-text retrieval.

© 2027 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

1. Introduction

Segment Anything Model (SAM) [21] lets users select objects through simple prompts. SAM 3 [3] extends this ability to text prompts and video: a user can name an object, obtain its mask, and track it across frames. These capabilities make the model useful for a wide range of visual tasks. They also make deployment expensive. The model must store large image features, match them with text, and maintain a memory of past frames. Reducing these costs is part of a broader challenge in efficient multimodal learning [42].

Post-training quantization (PTQ) offers a practical way to reduce model size and inference cost. It converts a pretrained model to lower precision using a small calibration set [33, 34]. Existing methods improve low-bit vision transformers and SAM through better reconstruction, rounding, and calibration [24, 27, 29–32, 39, 49, 56, 57]. Related methods also support large language models [13, 23, 25, 47]. For SAM 3, however, preserving mask quality is only part of the problem. The quantized model must also preserve the connection between a prompt and its intended object.

We find that a quantized SAM 3 can draw a plausible mask around the wrong object, omit a prompted part, or switch identities as a video unfolds. These errors occur even when feature reconstruction and standard segmentation scores remain strong. We call this behavior prompt-alignment drift. Fig. 1 shows how the same text prompt can produce different target selections after quantization. This observation motivates a central question: which feature errors matter most to prompt grounding?

We study this question through the dominant principal directions of model features and their low-variance residual complement. Matched perturbations in residual directions reduce grounding more, while perturbations in dominant directions reduce mask AP more. Feature removal gives a similar task contrast, and the random-basis control has intermediate effects (Sec. 4.5 and Supplementary Sec. B). We use a subspace perturbation view [4, 54] to organize this analysis and guide calibration toward the residual features that grounding depends on.

Based on these observations, we propose Semantics-Preserving Quantization (SPQ). SPQ combines three calibration steps. Semantic-Anchor Calibration gives more weight to parameters that affect text-concept scores. Orthogonal Subspace Rectification preserves features along the residual directions. Temporal Distribution Alignment estimates the mean error in video memory and folds its correction into existing biases. These components build on second-order PTQ weighting and static distribution correction [6, 45, 47]. Together, they preserve prompt grounding and temporal memory while keeping the inference graph unchanged.

We evaluate SPQ on image segmentation, referring seg-

mentation, and video tracking, and test its transfer to CLIP. With a W4A8 image encoder, SPQ reaches 54.8 COCO mask AP and 72.5 RefCOCO Pr@0.5, compared with 54.1 and 42.1 for PTQ4SAM. Controlled baseline comparisons and a complete factorial ablation show how the three components contribute across tasks. Our contributions are three-fold:

  • We identify prompt-alignment drift in quantized SAM 3 and show that grounding is especially sensitive to perturbations in low-variance residual directions.
  • We introduce SPQ, which combines concept-sensitive calibration, residual-feature matching, and an offline correction for video memory.
  • We evaluate these components across image, referring, and video tasks, with controlled comparisons and a CLIP transfer study.

References (54)