Function-aware post-training quantization for dense vision foundation models
Does low-bit PTQ break the native register–patch interaction of DINOv3 / DINOv2-with-registers on dense segmentation?
DINOv3-B (4 registers), DINOv2-reg-B (4), DINOv2-B (0, control)
ADE20K 2016 · 150 classes · frozen-backbone linear probe
1× RTX 3090 24 GB · bf16 baseline · W4A4 / W4A8
Indices are read from model.config.num_register_tokens, never hardcoded:
N = 1 + num_reg + (H/p)·(W/p).
Five configurations applied to every linear layer's activation input
(q, k, v, o, fc1, fc2) with per-output-channel symmetric weight PTQ in B–E.
| ID | Name | Registers Xr | Patches Xp | Scaling |
|---|---|---|---|---|
| A | Full Precision Baseline | FP16 | FP16 | none |
| B | Shared-Scale PTQ | INT4/8 | INT4/8 | single shared scale |
| C | Register Protection | FP16 | INT4/8 | patch scale s_p |
| D | Patch Protection | INT4/8 | FP16 | register scale s_r |
| E | Independent Scaling | INT4/8 | INT4/8 | independent s_r, s_p |
mIoU and Boundary IoU of a frozen-backbone linear probe.
Patch cosine similarity and 4-neighbour spatial relation error Lspatial.
Attention sub-block deviation Arr, Arp, Apr, App.
C − B > 3 mIoU would confirm register clipping as the primary failure mode.
Phase 1 results are available. Open the results dashboard →