TL;DR
This paper introduces TAPTQ, a novel Post-Training Quantization (PTQ) method specifically designed for large-scale 3D geometry models. TAPTQ tackles the challenges of intricate data distributions and computational bottlenecks in 3D models by employing a progressive calibration strategy, an efficient ternary search for quantization intervals, and a tail-relative error-guided compensation mechanism, achieving significant improvements in accuracy and calibration speed.
What Problem Does This Paper Address?
Deploying complex 3D geometry models on resource-constrained devices like edge platforms is a major challenge due to their large size and computational demands. Post-Training Quantization (PTQ) offers a way to compress these models by reducing the precision of weights and activations without retraining. However, existing PTQ methods, largely developed for 2D vision models and large language models, perform poorly when directly applied to 3D geometry models. This is attributed to the unique characteristics of 3D data, such as intricate feature distributions across multiple views and the sensitivity of 3D tasks to even small quantization errors. Furthermore, the calibration process for PTQ, which involves finding optimal quantization parameters, is computationally expensive for 3D models due to their multi-view nature and large token sequences. This paper aims to bridge this gap by developing a PTQ pipeline tailored for 3D geometry models that is both accurate and efficient.
Methods
TAPTQ introduces three core innovations:
- Progressive Calibration Set Construction: To address the data-scale bottleneck and the issue of noisy or unstable samples in 3D datasets, TAPTQ employs a two-stage strategy. First, it uses a coarse-grained outlier suppression by performing K-means clustering on a latent feature space derived from the data to filter out noisy instances. Second, it uses fine-grained clustering to select a compact yet representative set of samples that capture diverse geometric configurations and local statistical variations. This ensures a robust calibration set without requiring a massive number of samples.
- Ternary-Search-Based Interval Optimization: The paper reformulates the search for optimal quantization intervals (scaling factors) as an optimization problem. By observing that the similarity metric (used to evaluate quantization quality) exhibits a near-unimodal trend across candidate intervals, TAPTQ introduces a ternary search algorithm. This significantly reduces the computational complexity of interval selection from $\mathcal{O}(N)$ (linear scan) to $\mathcal{O}(\log N)$, drastically accelerating the calibration process.
- TRE-Guided Module-wise Compensation: To mitigate the accumulation of quantization errors across layers in deep 3D transformers, TAPTQ proposes a selective compensation mechanism. It introduces a "Tail Relative Error" (TRE) metric that specifically quantifies distortions in the high-magnitude regions of activation distributions, which are known to be critical for 3D geometry tasks. This TRE metric acts as a gate, activating a lightweight, low-rank compensation module only for modules that exhibit significant tail errors. This targeted approach minimizes computational overhead while effectively rectifying critical distortions.
Datasets
The paper evaluates its method on the following datasets:
- 7Scenes: Used for point cloud reconstruction experiments.
- ETH3D: Another dataset used for point cloud reconstruction experiments.
- DTU: Used for point cloud reconstruction experiments (additional results in Appendix).
- Co3Dv2: Used for evaluating camera parameter prediction to test cross-task robustness.
The authors mention using samples from the DTU training split for calibration.
Key Insights and Ideas
- 3D Geometry Models are Fundamentally Different for PTQ: The paper strongly argues that standard PTQ techniques for 2D vision and LLMs do not directly translate to 3D geometry models due to unique data characteristics (multi-view, intricate features) and task sensitivities (high precision requirements).
- Calibration Data Quality is Paramount: Randomly sampling calibration data for 3D models leads to significant performance fluctuations. A carefully constructed, compact, and representative calibration set is crucial for stable and accurate quantization.
- Unimodality is Key to Efficient PTQ: The observed unimodal nature of the quantization objective function allows for a significant speedup in interval selection using ternary search, transforming a bottleneck into a near-instantaneous operation.
- Focus on "Tail" Errors: Quantization errors in 3D models are not uniformly distributed. High-magnitude activations (the "tail" of the distribution) are disproportionately responsible for geometric drift. Targeting these specific errors with TRE-guided compensation is more effective than general MSE-based approaches.
- Selective Compensation is Efficient: Applying compensation only to modules that exhibit significant tail errors (identified by TRE) is crucial for maintaining low computational overhead and avoiding over-correction.
Key Results
- Accuracy Improvements: TAPTQ consistently outperforms state-of-the-art PTQ methods on both VGGT and Pi3 models across various benchmarks (7Scenes, ETH3D) and quantization settings (W4A8, W6A6). For example, on 7Scenes with VGGT at W4A8, TAPTQ achieves an accuracy of 0.0281 (mean) compared to 0.059 for RTN and 0.046 for PTQ4ViT. On the highly sensitive camera parameter prediction task (Co3Dv2) at W4A8, TAPTQ significantly improves AUC across thresholds, achieving 0.8099 (A@30) where most baselines collapse.
- Reduced Calibration Time: The ternary search significantly speeds up calibration. The paper states that conventional linear search can take over 522.6 GPU-minutes, while TAPTQ's ternary search reduces this to near-instantaneous operations. Table 6 shows calibration times of 168.7 min for ternary search vs. 529.7 min for exhaustive search.
- Qualitative Improvements: Visual comparisons (Figures 8 and 9) show that TAPTQ-quantized models better preserve geometric structures and surface continuity compared to baseline methods, especially under aggressive quantization.
Limitations and Future Work
- Limitations: The paper acknowledges that while TAPTQ significantly reduces calibration overhead, it still requires a calibration set. The performance might be sensitive to the choice of the latent space for clustering in the calibration set construction. The TRE metric is designed for activations; its application to weights might require further investigation.
- Future Work: The authors suggest that their method is directly applicable to other 3D geometry foundation models. Further exploration into more advanced compensation strategies or adaptive quantization granularities could be potential future directions. The code will be released, enabling further research and application.
Summary updated