File size: 4,920 Bytes
b119813
e6270e3
 
b119813
 
e6270e3
 
 
 
 
 
 
 
 
 
 
b119813
e6270e3
 
 
d0402b9
e6270e3
d0402b9
e6270e3
d0402b9
e6270e3
d0402b9
 
 
e6270e3
 
 
d0402b9
 
e6270e3
d0402b9
e6270e3
d0402b9
e6270e3
d0402b9
e6270e3
 
d0402b9
 
 
 
 
 
 
 
 
e6270e3
 
 
 
 
 
 
d0402b9
 
 
 
 
 
 
 
 
05c2600
2953228
e6270e3
d0402b9
 
 
 
 
 
 
 
 
 
 
 
 
e6270e3
 
d0402b9
 
e6270e3
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
language:
- en
license: other
license_name: s-lab-license-1.0
license_link: https://huggingface.co/zunhai/QuantStream3D-STream3R/blob/main/LICENSE.txt
library_name: pytorch
base_model: yslan/STream3R
tags:
- quantstream3d
- streaming-3d
- visual-geometry
- kv-cache
- quantization
- depth-estimation
- arxiv:2611.27901
---

# QuantStream3D–STream3R

**Streaming 3D perception with predominantly 2-bit KV memory.**

Official STream3R checkpoint for
[QuantStream3D: Geometry-Aligned Low-Bit KV Cache Quantization for Streaming Visual Geometry Transformers](https://arxiv.org/abs/2611.27901).
QuantStream3D preserves sensitive cross-view evidence and aligns geometric computation with quantized history, making low-bit memory useful for streaming depth, camera pose, and 3D reconstruction.

**[GitHub](https://github.com/ZunhaiSu/QuantStream3D) · [Paper](https://arxiv.org/abs/2611.27901) · [StreamVGGT checkpoint](https://huggingface.co/zunhai/QuantStream3D-StreamVGGT)**

![QuantStream3D overview](https://raw.githubusercontent.com/ZunhaiSu/QuantStream3D/main/assets/overview.png)

## Method

- **Geometry-Guided Mixed-Precision KV Quantization** combines per-channel K/V quantization with paired Q/K Hadamard rotation. Ordinary historical global-attention states use 2 bits; writes from the first frame **or** global attention in layer 14 use 4 bits.
- **Geometry-Aligned Quantization-Aware Distillation** jointly adapts transformer blocks and geometry heads on student-generated quantized history. This checkpoint uses 2,000 updates with chronological ten-view clips from MVS-Synth and PointOdyssey-TRAIN.

**The 2/4-bit setting describes the runtime KV cache. Model weights retain their native precision.** This release contains the complete adapted model in five safetensors shards, totaling approximately 4.76 GB.

## Quick start

Install a CUDA-compatible PyTorch build, then set up the code and upstream backbone:

```bash
git clone https://github.com/ZunhaiSu/QuantStream3D.git
cd QuantStream3D
python -m pip install -e '.[cuda,weights]'

git clone https://github.com/NIRVANALAN/STream3R.git third_party/STream3R
git -C third_party/STream3R checkout 7bdca8cf7ec206ff8b08c0941ad8286d72087d4f
# Install the upstream dependencies following its README.

python scripts/download_checkpoint.py --model stream3r
python examples/infer_stream3r.py \
  --upstream third_party/STream3R \
  --checkpoint checkpoints/quantstream3d_stream3r \
  --images data/my_sequence/rgb --backend triton \
  --output outputs/my_sequence.npz
```

Use a directory of chronologically named RGB images. The result contains camera, depth, confidence, and 3D point predictions. Export a colored point cloud with:

```bash
python examples/export_pointcloud.py \
  --predictions outputs/my_sequence.npz --images data/my_sequence/rgb \
  --output outputs/my_sequence.ply
```

Triton requires Linux and an NVIDIA CUDA GPU; `--backend torch` selects the packed reference implementation. See [compatibility](https://github.com/ZunhaiSu/QuantStream3D/blob/main/docs/COMPATIBILITY.md) for supported workflows and [evaluation](https://github.com/ZunhaiSu/QuantStream3D/blob/main/docs/EVALUATION.md) for benchmark preprocessing.
The download helper verifies pinned revisions and SHA256 digests; see the
[checkpoint guide](https://github.com/ZunhaiSu/QuantStream3D/blob/main/docs/CHECKPOINTS.md) for download and loading details.

## Representative results

The paper evaluates two backbones across five benchmarks. Selected results for **STream3R** are shown below; lower is better and distances are in meters.

| Method | TUM ATE ↓ | NeuralRGBD accuracy ↓ | NeuralRGBD completeness ↓ |
|:--|--:|--:|--:|
| Original | 0.0258 | 0.065 | 0.034 |
| KIVI | 0.0608 | 0.133 | 0.152 |
| QuaRot | 0.0509 | 0.139 | 0.126 |
| **QuantStream3D** | **0.0259** | **0.065** | **0.046** |

KIVI and QuaRot use their 2-bit KV-quantization components; QuantStream3D uses the mixed 2/4-bit policy and adapted weights. See the [paper](https://arxiv.org/abs/2611.27901) for full results, baseline settings, and post-pruning compression.

## License and attribution

These adapted weights retain the **S-Lab License 1.0** for non-commercial use, following [STream3R](https://huggingface.co/yslan/STream3R). See the [full license](https://huggingface.co/zunhai/QuantStream3D-STream3R/blob/main/LICENSE.txt).
Code and component-specific terms are documented in [third-party notices](https://github.com/ZunhaiSu/QuantStream3D/blob/main/THIRD_PARTY_NOTICES.md).

## Citation

```bibtex
@article{su2026quantstream3d,
  title={QuantStream3D: Geometry-Aligned Low-Bit KV Cache Quantization for Streaming Visual Geometry Transformers},
  author={Su, Zunhai and Fan, Keyu and Guo, Ruishan and Zhou, Zhongzhu and Xu, Jingzehua and Sun, Bohan and Feng, Hansen and Hu, Ruihan and Wu, Yik-Chung and Wong, Ngai},
  journal={arXiv preprint arXiv:2611.27901},
  year={2026}
}
```