SPA-Q: Structure-Preserving Adaptive Post-Training Quantization for Monocular Depth Estimation
Jaemin Choi, Jincheol Yang, Nahyun Lim, Yun-Seong Jeong, Matti Zinke, Hyunwoo Yu, Suk-Ju Kang
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Low-bit LLM Quantization · Type: new method · Keywords: post-training quantization, monocular depth estimation, attention preservation, distribution alignment, efficient deployment
Areas: Model Architectures & Sequence Modeling › Vision and Generative Architectures › Vision Model Quantization; Computer Vision & 3D › Geometric Vision › Geometric Transformers
Summary
SPA-Q is a structure-preserving adaptive post-training quantization framework that reduces quantization error in monocular depth estimation by preserving attention maps and aligning channel distributions, achieving significant improvements on NYUv2 and KITTI.
Explained to a 5-year-old
Computers can look at pictures and tell how far away things are, which is useful for robots and cars. These programs are big and need a lot of memory, so sometimes we shrink them to make them faster. When we shrink them too much, they start making mistakes. The new idea helps by making sure the program still pays attention to the same things as before. It also fixes small differences in how the program sees colors and shapes.
Explained to a 5-year-old, longer
Computers can look at pictures and tell how far away things are, which is useful for robots and cars. These programs are big and need a lot of memory, so sometimes we shrink them to make them faster. When we shrink them too much, they start making mistakes. The new idea helps by making sure the program still pays attention to the same things as before. It also fixes small differences in how the program sees colors and shapes. This keeps the guesses about distance accurate even when the program is smaller. It works on two popular sets of pictures used for testing. The improvements are noticeable, with fewer errors and better predictions. This makes the program more useful on devices like phones and small robots. It also saves energy because the smaller program uses less power. Overall, the method makes depth-estimation programs both smaller and smarter.
For a technical reader
SPA-Q is a post-training quantization framework for monocular depth estimation that preserves attention maps and aligns channel distributions to reduce quantization error. It calibrates query/key quantization parameters by matching full-precision attention distributions and learns channel-wise affine transforms that are later absorbed into the model weights. The method is evaluated on NYUv2 and KITTI under 4-bit quantization, achieving a 25.9% reduction in AbsRel and a 17.3% increase in δ1 over existing PTQ baselines. This approach enables efficient deployment of large foundation depth models on resource-constrained hardware while maintaining accuracy. The design is modular and can be applied to other vision transformers that rely on attention mechanisms.
Problem
Quantizing deep monocular depth estimation models to low bit-widths often degrades performance because quantization errors disrupt attention mechanisms and cause feature distribution shifts across layers, making efficient deployment difficult.
Method
First, it determines quantization parameters for query and key projections by matching the full-precision attention distribution. Second, it learns channel-wise affine transformations to mitigate quantization-induced distribution shifts, which are later absorbed into the model weights.
Results
The approach achieves an average 25.9% reduction in AbsRel and a 17.3% improvement in δ1 on NYUv2 and KITTI compared to existing PTQ methods under 4-bit quantization.
Contributions
It introduces a calibration scheme that preserves attention maps during quantization and a channel-wise alignment technique that compensates for distribution shifts, both integrated into a unified PTQ framework for depth estimation.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction