Organizations: The University of Hong Kong · Tsinghua University · The University of Sydney · University of Chinese Academy of Sciences · Harbin Institute of Technology
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× 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× the maximum batch size and up to 1.67× the peak throughput of unquantized inference. Code and pretrained checkpoints will be made publicly available.
Figures & tables
StreamVGGT Relative change (%) ↓
Granularity (K2V2)
Dataset
Metric
KCVC
KCVT
KTVC
KTVT
Sintel
δ1
+2.3
+2.8
+2.5
+3.5
KITTI
AbsRel
+1.0
−6.5
+2.4
−5.2
Bonn
AbsRel
+3.9
+3.5
+5.6
+4.4
TUM
ATE
+60.2
+83.3
+71.8
+104.3
Table 1: K/V granularity and precision in two streaming backbones. Relative changes (%) use each backbone’s unquantized reference: negative indicates improvement; positive indicates degradation. NC denotes normal consistency.
Figure 2: Layer sensitivity across tasks. Joint K/V precision drops from 4 to 2 bits at one global-attention layer; all others remain at 4 bits. Relative degradation is measured from each backbone’s all-4-bit reference; decreases in δ1 are positive. Layer 14 is a shared sensitivity peak across both tasks and backbones.
Figure 3: Geometry-Aligned Quantization-Aware Distillation. A frozen native-precision teacher supervises joint adaptation of the student’s transformer blocks (including FFNs) and geometry heads on student-generated quantized history. Dashed arrows indicate within-clip straight-through gradients through fake-quantized history; C denotes the student’s native-precision recurrent camera state.
TUM prefix
Head input
Depth
3D points
Sitting halfsphere
10.24
2.17
3.13
Walking halfsphere
11.15
2.24
2.87
Table 2: Propagation into unquantized geometry heads. Relative L2 changes (%) between native- and quantized-history StreamVGGT rollouts at fixed pretrained weights. Head inputs and predictions are paired at the fifth view ( Sec. B.2 ).
Metric
Original
KIVI
QuaRot
Ours
StreamVGGT
AbsRel ↓
0.059
0.061
0.063
0.055
RMSE ↓
0.260
0.262
0.267
0.246
δ1 (%) ↑
97.2
97.4
97.4
97.5
SqRel ↓
0.034
0.036
0.037
0.033
LogRMSE ↓
0.114
0.115
0.116
0.108
Table 3: Depth estimation on Bonn. RMSE is in meters; threshold accuracies are percentages. Ours denotes QuantStream3D.
Metric
Original
KIVI
QuaRot
Ours
StreamVGGT
ATE ↓
0.0269
0.0493
0.0509
0.0264
RPE-t ↓
0.0122
0.0303
0.0297
0.0126
RPE-r ↓
0.318
0.473
0.459
0.322
STream3R
ATE ↓
0.0258
0.0608
0.0509
0.0259
Table 4: Camera pose on TUM RGB-D. Results average eight sequences. ATE and RPE-t are in meters; RPE-r is in degrees.
Metric
Original
KIVI
QuaRot
Ours
StreamVGGT
Acc. ↓
0.084
0.096
0.091
0.074
Acc. med. ↓
0.044
0.048
0.049
0.043
Comp. ↓
0.079
0.089
0.083
0.066
Comp. med. ↓
0.039
0.040
0.043
0.033
NC ↑
0.861
0.850
0.843
0.867
Table 5: Reconstruction on NeuralRGBD. Distances are in meters; NC denotes normal consistency and med. denotes median.
Configuration
Acc. ↓
Comp. ↓
NC ↑
Unpruned StreamVGGT
Original
0.084
0.079
0.861
InfiniteVGGT
Prune only
0.084
0.079
0.861
Prune + Ours
0.074
0.066
0.867
XStreamVGGT
Table 6: Post-pruning reconstruction on NeuralRGBD. We compare each pruning policy before and after applying QuantStream3D. XStreamVGGT’s original KV quantization is disabled in both configurations. Distances are in meters; NC is unitless.
Figure 4: Complete-inference efficiency on H20. (a) Batch-size-one runtime (720 views), peak allocated memory, and KV storage relative to original inference (60-GiB budget). (b) Throughput and batch capacity (120-GiB budget). Both paths use pretrained weights and independent 90-view requests. Error bars span three rounds; dashed lines mark adjacent OOM tests.
Execution variant
36-frame history
89-frame history
All optimizations
2.810
6.563
Without history-read fusion
7.130
17.287
Without Q/K pairing
2.823
6.566
Without K/V pairing
2.820
6.565
Table 7: Kernel pipeline ablations. Median GPU time (ms) over five interleaved rounds on fixed synthetic StreamVGGT inputs. The pipeline comprises Q/K rotation, history retrieval, original SDPA, and current K/V encoding. Controls disable one optimization at fixed precision ( Sec. E.2 ).
Protected frame
0
1
0
1
Global-attention layer
14
14
13
13
ATE ↓
0.0272
0.0275
0.0347
0.0352
Table 8: Precision allocation on TUM. ATE (m) with frozen StreamVGGT and matched final global-attention KV bytes.
Scope
No adaptation
Geometry heads only
Transformer blocks only
Joint (Ours)
Comp. ↓
0.0764
0.0760
0.0753
0.0661
Table 9: Adaptation scope on NeuralRGBD. Completeness error (m) with a fixed StreamVGGT cache policy. Adapted variants share initialization, clips, teacher, losses, and 2,000 updates; transformer-block updates include FFNs.
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
Sintel
KITTI
Bonn
TUM
NeuralRGBD
Protected states
AbsRel ↓
AbsRel ↓
AbsRel ↓
ATE ↓
RPE-t ↓
RPE-r ↓
Comp. ↓
StreamVGGT
None
0.325
0.174
0.061
0.0431
0.0248
0.428
0.097
First frame
0.335
0.179
0.060
0.0439
0.0240
0.408
0.071
Camera tokens
0.327
0.174
0.061
0.0435
0.0246
0.430
0.093
Register tokens
0.327
0.175
0.061
0.0430
0.0245
0.428
0.084
Appendix
Table S1: First-frame and special-token protection. Protected states use native precision; remaining history uses 2-bit per-channel K/V. Controls use 64-value groups without transforms. Distances are in meters and rotations in degrees.
Sintel
KITTI
Bonn
TUM
NeuralRGBD
Transform
AbsRel ↓
AbsRel ↓
AbsRel ↓
ATE ↓
RPE-t ↓
RPE-r ↓
Comp. ↓
StreamVGGT
No transform
0.325
0.174
0.061
0.0431
0.0248
0.428
0.097
K rotation
0.322
0.175
0.059
0.0358
0.0197
0.378
0.077
V rotation
0.331
0.174
0.061
0.0432
0.0253
0.419
0.075
K + V rotation
0.325
0.174
0.060
0.0353
0.0203
0.375
0.071
Appendix
Table S2: Quantization transforms. All controls use unprotected 2-bit per-channel K/V with groups of 64. K rotation includes the paired query transform. Distances are in meters and rotation in degrees.
Component
Setting
Teacher
Frozen native-precision counterpart of each backbone
Trainable
Complete frame/global-attention blocks, including FFNs and normalization; camera/depth/point heads
Frozen
Image encoder and seed tokens
Clip length / global batch
10 views per clip; 4 clips per update
Updates
2,000
Optimizer
AdamW; β=(0.9,0.95) ; weight decay 0.05
Appendix
Table S3 : Geometry-Aligned QAD settings. Both backbones use 2,000 updates; cosine horizons follow their released schedules.
Figure S1 : Fused reads and paired writes. (a) One launch reconstructs F historical frames and copies current native K/V directly into final attention operands, eliminating 2F decoded arrays and concatenation. Dashed outlines mark launch boundaries; SDPA remains outside. (b) Independent K and V programs share one encoder launch per layer, fusing per-channel reduction, quantization, and packing.
Operation
Work per program
Launch grid
Paired Q/K rotation
1,024 Q or K values; six FP32 butterfly stages and normalization by 1/8
(⌈HND/1024⌉,2)
Fused history read
1,024 positions in one frame/head; both K and V
(⌈ND/1024⌉,H,F+1)
Paired K/V encoding
64 tokens × 64 channels from K or V; per-channel reduction, quantization, and packing
(H,⌈N/64⌉,2)
Appendix
Table S4 : Profiled single-request kernel configurations. H,N,D,F denote heads, tokens per view, head dimension, and historical frames. Profiling uses H=16 , N=1,004 , D=64 , and four warps per program, with floating-point contraction disabled.
Task
Dataset
Sequences
Frames
Primary metrics
Depth
Sintel [ 3 ]
23
1064
AbsRel, RMSE, δ1
KITTI [ 5 ]
13
1269
AbsRel, RMSE, δ1
Bonn [ 14 ]
5
550
AbsRel, RMSE, δ1
Pose
TUM RGB-D [ 16 ]
8
720
ATE, translation RPE, rotation RPE
Reconstruction
NeuralRGBD [ 2 ]
9
28
Accuracy, completeness, normal consistency
Appendix
Table S5 : Evaluation subsets and primary metrics. Counts exclude training clips and diagnostic prefixes.
StreamVGGT
Sintel
KITTI
Method
AbsRel ↓
RMSE ↓
δ1↑
SqRel ↓
LogRMSE ↓
δ2↑
δ3↑
AbsRel ↓
RMSE ↓
δ1↑
SqRel ↓
LogRMSE ↓
δ2↑
δ3↑
Original
0.328
3.813
65.0
1.487
0.372
82.0
89.9
0.173
4.969
72.3
0.934
0.217
94.4
99.3
KIVI
0.326
3.826
63.2
1.436
0.374
81.9
90.0
0.161
4.869
76.2
0.851
0.206
95.6
99.2
QuaRot
0.333
3.850
63.6
1.482
0.377
81.7
89.7
0.170
4.977
73.2
0.910
0.215
94.8
99.3
Ours
0.318
3.726
65.8
1.413
0.359
83.2
90.3
0.171
4.877
72.9
0.905
0.214
94.5
99.3
Appendix
Table S6 : Depth estimation on Sintel and KITTI. Ours denotes QuantStream3D. RMSE is in meters; threshold accuracies are percentages.
Dataset
Backbone
Variant
AbsRel ↓
RMSE ↓
δ1↑
SqRel ↓
LogRMSE ↓
δ2↑
δ3↑
Sintel
StreamVGGT
Original
0.3280
3.8127
65.0
1.4868
0.3720
82.0
89.9
w/o QAD
0.3289
3.8145
65.0
1.5043
0.3722
81.8
89.9
QuantStream3D
0.3176
3.7260
65.8
1.4129
0.3587
83.2
90.3
STream3R
Original
0.2653
3.0825
70.6
1.2259
0.3216
85.7
93.1
w/o QAD
0.2672
3.0954
70.3
1.2332
0.3227
85.3
93.1
QuantStream3D
0.2722
3.0952
68.8
1.0660
0.3173
86.1
91.8
Appendix
Table S7 : Geometry-Aligned QAD on depth. Shading denotes QuantStream3D; both quantized variants share the precision policy and KV storage. RMSE is in meters and threshold accuracies are percentages.
Pruning method
Configuration
Acc. ↓
Comp. ↓
NC ↑
Acc. med. ↓
Comp. med. ↓
NC med. ↑
NC1 ↑
NC2 ↑
Unpruned StreamVGGT
Original
0.084
0.079
0.861
0.044
0.039
0.986
0.862
0.860
InfiniteVGGT
Prune only
0.084
0.079
0.861
0.044
0.039
0.986
0.862
0.860
Prune + Ours
0.074
0.066
0.867
0.043
0.033
0.990
0.876
0.858
XStreamVGGT
Prune only
0.084
0.076
0.866
0.052
0.035
0.990
0.865
0.867
Prune + Ours
0.074
0.063
0.869
0.055
0.034
0.991
0.875
0.863
FrameVGGT
Prune only
0.084
0.079
0.861
0.044
0.039
0.986
0.862
0.860
Appendix
Table S8 : Reconstruction after native pruning on NeuralRGBD. Original is unpruned and unquantized; Ours denotes QuantStream3D. Distances are in meters; normal consistency is unitless.
Batch
Frames per round
Throughput (frames/s)
90-view request latency median [min, max] (s)
Peak alloc. (GiB)
Peak reserved (GiB)
Unique KV (GiB)
Original (BF16 KV)
1
720
4.10
21.94 [21.91, 21.99]
15.40
39.76
8.27
2
720
4.36
41.28 [41.24, 41.30]
26.17
87.13
16.55
4
720
4.70
76.59 [76.48, 76.69]
47.45
119.67
33.09
5
900
4.69
95.98 [95.97, 95.99]
58.11
117.16
41.36
Packed KV
Appendix
Table S10: Batch scaling under the 120-GiB budget. Throughput counts all completed frames; request latency gives the median [min, max] batch-completion time over three rounds. Peaks exclude correctness checks; KV reports unique persistent allocations.
Component
Separate / reference GPU time (ms)
Paired / fused GPU time (ms)
Gain
Reference temp. (MiB)
Fused temp. (MiB)
Paired Q/K rotation
0.041 [0.041, 0.042]
0.030 [0.029, 0.030]
1.40×
7.84
7.84
Paired K/V, 2-bit
0.111 [0.108, 0.112]
0.098 [0.097, 0.100]
1.13×
0.75
0.75
Paired K/V, 4-bit
0.110 [0.109, 0.122]
0.098 [0.097, 0.099]
1.12×
1.25
1.25
History read, F=36
4.205 [4.178, 4.306]
0.213 [0.201, 0.227]
19.76×
434.79
218.56
History read, F=89
10.360 [10.347, 10.588]
0.438 [0.425, 0.454]
23.63×
1063.73
529.46
History read, F=36 , Layer 14
4.198 [4.179, 4.267]
0.215 [0.201, 0.239]
19.53×
434.79
218.56
Appendix
Table S11 : Isolated kernel costs and incremental allocation. GPU latency is the median [minimum, maximum] over five interleaved rounds. Temporary allocation is measured above persistent inputs and includes output buffers. History-read fusion removes decoded-frame intermediates; pairing preserves output allocation.
TUM RGB-D
NeuralRGBD
Protection
ATE ↓
RPE-t ↓
RPE-r ↓
Acc. ↓
Comp. ↓
NC ↑
Frame 0 / Layer 14
0.0272
0.0127
0.3215
0.0827
0.0764
0.8604
Frame 1 / Layer 14
0.0275
0.0131
0.3213
0.0804
0.0753
0.8595
Frame 0 / Layer 13
0.0347
0.0175
0.3567
0.0835
0.0779
0.8605
Frame 1 / Layer 13
0.0352
0.0188
0.3708
0.0865
0.0789
0.8521
Appendix
Table S12 : Precision placement at equal final KV storage. Frozen StreamVGGT with a 2-bit background; frame 0/layer 14 is our policy. Each row protects the union of one frame and one layer. Distances are in meters and rotational RPE in degrees.
Learning-based 3D visual geometry models have significantly advanced with the advent of large-scale transformers. Among these, StreamVGGT leverages frame-wise causal attention to deliver robust and efficient streaming 3D reconstruction. However, it suffers from unbounded growth in the Key-Value (KV) cache due to the massive influx of vision tokens from multi-image and long-video inputs, leading to increased memory consumption and inference latency as input frames accumulate. This ultimately limits its scalability for long-horizon applications. To address this gap, we propose XStreamVGGT, a tuning-free approach that seamlessly integrates pruning and quantization to systematically compress the KV cache, enabling extremely memory-efficient streaming inference. Specifically, redundant KVs generated from multi-frame inputs are initially pruned to conform to a fixed KV memory budget using an efficient token-importance identification mechanism that maintains full compatibility with high-performance attention kernels (e.g., FlashAttention). Additionally, leveraging the inherent distribution patterns of KV tensors, we apply dimension-adaptive KV quantization within the pruning pipeline to further minimize memory overhead while preserving numerical accuracy. Extensive evaluations show that XStreamVGGT achieves mostly negligible performance degradation while substantially reducing memory usage by 4.42× and accelerating inference by 5.48×, enabling practical and scalable streaming 3D applications. The code is available at https://github.com/ywh187/XStreamVGGT/.
Zunhai Su, Weihao Ye, Hansen Feng +5
Shenzhen International Graduate School, Tsinghua University · Institute of Artificial Intelligence, Xiamen University · China Star Optoelectronics Technology +2
Reconstructing dense 3D geometry from continuous video streams requires stable inference under a constant memory budget. Existing O(1) frameworks primarily rely on a ``pure eviction'' paradigm, which suffers from significant information destruction due to binary token deletion and evaluation noise from localized, single-layer scoring. To address these bottlenecks, we propose StreamCacheVGGT, a training-free framework that reimagines cache management through two synergistic modules: Cross-Layer Consistency-Enhanced Scoring (CLCES) and Hybrid Cache Compression (HCC). CLCES mitigates activation noise by tracking token importance trajectories across the Transformer hierarchy, employing order-statistical analysis to identify sustained geometric salience. Leveraging these robust scores, HCC transcends simple eviction by introducing a three-tier triage strategy that merges moderately important tokens into retained anchors via nearest-neighbor assignment on the key-vector manifold. This approach preserves essential geometric context that would otherwise be lost. Extensive evaluations on five benchmarks (7-Scenes, NRGBD, ETH3D, Bonn, and KITTI) demonstrate that StreamCacheVGGT sets a new state-of-the-art, delivering superior reconstruction accuracy and long-term stability while strictly adhering to constant-cost constraints.
Xuanyi Liu, Chunan Yu, Deyi Ji +6
KOKONI 3D, Moxin Technology · Nanjing University of Science and Technology · University of Science and Technology of China +4
Streaming Visual Geometry Transformers such as StreamVGGT enable strong online 3D perception, but their KV-cache grows unbounded over long streams, limiting practical deployment. We study bounded-memory streaming geometry from the perspective of memory organization: unlike language modeling, where useful information can often be compressed at token level, geometry-driven inference relies on coherent and mutually compatible observations across views. Under fixed memory budgets, retaining history as isolated entries can progressively fragment the geometric context needed for stable long-horizon matching and fusion. We therefore propose FrameVGGT, a bounded-memory framework that maintains a fixed-capacity set of complementary memory units for streaming geometry. In our implementation, each unit is instantiated as a frame-wise KV segment summarized by a compact key-space prototype, together with a sparse anchor tier for persistent long-range references. Across long-sequence 3D reconstruction, video depth estimation, and camera pose estimation, FrameVGGT achieves favorable accuracy--memory trade-offs under bounded budgets while maintaining more stable geometry over long streams.
Zhisong Xu, Takeshi Oishi
Institute of Industrial Science, The University of Tokyo, Tokyo, Japan