JJava Stack Lab
论文雷达 · arXiv AI

QuantStream3D:面向流式视觉几何 Transformer 的几何对齐低比特 KV 缓存量化

摘要

流式视觉几何 Transformer 会将历史 key-value(KV)状态保留为跨视角的几何记忆,但不断增长的缓存会限制长序列推理。作者系统分析了其中的 KV 量化问题与两个相关挑战(非均匀几何敏感性和缓存与几何不匹配),并提出 QuantStream3D:用几何引导的混合精度 KV 量化保护敏感的跨视角证据,并用几何对齐的量化感知蒸馏,在学生模型生成的量化历史上联合适配 transformer 模块与几何头。在五个基准和两个骨干网络上,多数设置使用以 2-bit 为主的 KV 缓存即可达到接近无损的几何精度;相比面向 LLM 的 KV 量化器,TUM 绝对轨迹误差和 NeuralRGBD 完整度误差最多分别降低 57.4% 和 69.7%。

查看原始标题和摘要

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

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 trajecto

核心要点

  • 指出流式几何中的两个关联问题:非均匀几何敏感性,以及缓存与几何失配;量化扰动会改变几何头输入,并向后传播到后续预测与 KV 写入
  • 提出 QuantStream3D,包含几何引导混合精度 KV 量化与几何对齐量化感知蒸馏
  • 在五个基准、两个骨干网络上,多数配置以 2-bit KV 缓存为主达到近无损精度,部分配置超过未量化推理
  • 相比面向 LLM 的 KV 量化器,TUM 绝对轨迹误差降低 57.4%,NeuralRGBD 完整度误差降低 69.7%
  • 与原生缓存剪枝方法结合可进一步提升压缩率,并改善 NeuralRGBD 重建质量
  • 优化后的 StreamVGGT 后端在 batch size 为 1 时实现 5.05× 物理 KV 压缩和 23.1% 延迟下降;在固定显存预算下,最大 batch size 为 5.4×,峰值吞吐最高为 1.67×
  • 代码与预训练权重将公开

为什么值得后端工程师关注

为推理服务端提供了 KV 缓存量化的工程参考:在固定显存下以低比特 KV 缓存支撑更长序列和更大 batch。其混合精度选择、量化感知蒸馏与后端优化思路也适用于 LLM 推理的缓存压缩与延迟优化。论文给出 5.05× 压缩、23.1% 延迟下降、5.4× 最大 batch 与 1.67× 峰值吞吐等可对照的收益指标。