QuantStream3D improves visual transformer caches with low-bit compression

QuantStream3D: Geometry-Aligned Low-Bit KV Cache Quantization for Streaming Visual Geometry Transformers

Computer Vision and Pattern Recognition

Summary

Visual geometry transformers keep track of past information to understand scenes better, but storing all this data takes a lot of space and slows down processing. The authors found that compressing this stored information is tricky because different parts are more sensitive to errors. They developed a method called QuantStream3D that smartly compresses this data with very few bits while keeping the accuracy high. Their technique makes the system faster and supports larger workloads on the same hardware.

What this means in practice

  • For augmented reality developers: Enable AR systems to process long video streams efficiently by compressing geometry transformer caches without loss of accuracy.
  • For robotics engineers: Improve 3D scene reconstruction from streaming input by reducing memory use and latency in visual geometry models.
  • For game engine programmers: Implement efficient geometric memory caching to allow larger and more detailed real-time 3D environments on standard GPUs.$Commercial implications: This paper enables game engines to deliver higher-quality streaming 3D scenes with less hardware resources, improving game performance and visual fidelity.

Authors

Zunhai Su, Keyu Fan, Ruishan Guo, Zhongzhu Zhou, Jingzehua Xu, Bohan Sun, Hansen Feng, Ruihan Hu, Yik-Chung Wu, Ngai Wong

Abstract

Streaming visual geometry transformers retain historical key-value (KV) states as cross-view geometric memory, but growing caches constrain long-sequence inference. We systematically characterize KV quantization in streaming geometry and uncover two linked challenges: Nonuniform Geometric Sensitivity and Cache-Geometry Mismatch. Quantization sensitivity varies across precision choices and cache locations, while perturbed retrieval changes geometry-head inputs and propagates through subsequent predictions and KV writes. Guided by these findings, we propose QuantStream3D, to our knowledge the first dedicated KV quantization framework for streaming visual geometry transformers. Geometry-Guided Mixed-Precision KV Quantization protects sensitive cross-view evidence, while Geometry-Aligned Quantization-Aware Distillation jointly adapts transformer blocks and geometry heads on student-generated quantized history. Across five benchmarks and two backbones, QuantStream3D achieves near-lossless geometric accuracy in most settings with predominantly 2-bit KV caches, and many configurations surpass unquantized inference. Compared with LLM-oriented KV quantizers, it reduces TUM absolute trajectory error and NeuralRGBD completeness error by up to 57.4% and 69.7%, respectively. Integration with existing native cache-pruning methods further pushes compression while improving reconstruction quality on NeuralRGBD. Our optimized StreamVGGT backend achieves $5.05\times$ physical KV compression and 23.1% lower latency at batch size one. Under a fixed memory budget on the same GPU, it supports $5.4\times$ the maximum batch size and up to $1.67\times$ the peak throughput of unquantized inference. Code and pretrained checkpoints will be made publicly available.