File size: 9,230 Bytes
38c539c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
license: other
license_name: qwen
license_link: https://huggingface.co/Qwen/Qwen2.5-72B-Instruct/blob/main/LICENSE
base_model: OpenGVLab/InternVL3-8B-hf
base_model_relation: finetune
library_name: transformers
pipeline_tag: image-text-to-text
language:
- en
datasets:
- MLL-Lab/ViewSuite-ScanNet
tags:
- viewsuite
- view-planning
- active-perception
- camera-control
- embodied-ai
- vision-language-model
- reinforcement-learning
- internvl
---

# VGD-InternVL3-8B-ScanNet

InternVL3-8B (Hugging Face format) trained with **View Graph Distillation (VGD)** for camera control in ViewSuite (ScanNet). Given a target view, a start view and a top-down view of a scene, the model moves a camera with discrete actions, sees the new view after every turn, and finally submits the 6-DoF pose of the target view (Interactive View Planning, IVP). The model was trained and evaluated for the paper [*Planning with the Views*](https://arxiv.org/abs/2605.29563).

## Results

These results come from the updated experiments (Habitat-Sim renders, horizontal-plane action space) and differ from the numbers in arXiv v1.

Test split of ViewSuite (ScanNet), 530 instances per task, success rate (%). Short / Long: unified view distance between the start and target views d < 3 / d >= 3 (187 / 343 instances).

| Model | IVP Short | IVP Long | IVP All | IVP No-Submit | P2V | V2P |
|---|---|---|---|---|---|---|
| InternVL3-8B (base) | 0.0 | 0.0 | 0.0 | 5.3 | 31.9 | 27.5 |
| **This model** | 81.8 | 59.2 | **67.2** | 75.8 | 23.6 | 30.6 |

- **IVP**: success when the submitted pose is within the position and rotation thresholds of the target. **No-Submit** credits an episode once an observed camera pose is within the thresholds, whatever is submitted.
- **P2V** (Path-to-View) and **V2P** (View-to-Path) are four-way multiple-choice questions about one action sequence (chance 25%).
- Gemini 3.1 Pro, the strongest zero-shot model evaluated in the same setting, reaches 24.0% IVP.
- The Qwen2.5-VL-7B model trained with the same recipe reaches 55.8% IVP All (each backbone trained once).
- Every request used temperature 0, top-p 1, repetition penalty 1.0 and at most 1,024 new tokens; the checkpoint was served with SGLang 0.5.13 in bfloat16 (PyTorch 2.11, Transformers 5.8.1). Batched serving is not bit-deterministic even at temperature 0, so a re-run can differ slightly.

## Task and environment

ScanNet indoor scenes, rendered from the ScanNet meshes with Habitat-Sim at 256 x 256 pixels. Ten camera actions: move forward / backward / left / right in the horizontal plane (0.5 m), move up / down along the world vertical axis (0.5 m), turn left / right (30 deg yaw) and look up / down (30 deg pitch, limited to +-60 deg); no roll. Up to four actions per turn, ten turns including the final answer. Success: submitted pose within 0.5 m and 30 deg of the target.

The system prompt, the observation messages and the action syntax are produced by the environment code (https://github.com/mll-lab-nu/viewagent). Replies have the form `<think>...</think><action>a1|a2|...</action>`, and the final turn calls `answer(tx, ty, tz, rx, ry, rz)` with the camera-to-world position in meters and Euler XYZ angles in degrees. Complete example conversations of this model are in the evaluation trajectories dataset (MLL-Lab/ViewSuite-Eval-Trajectories).

## How to use

Evaluation with the released code (one SGLang server per GPU; it needs the corpus with its images and the environment's render service, see the code release and the dataset card):

```bash
hf download MLL-Lab/VGD-InternVL3-8B-ScanNet --local-dir models/VGD-InternVL3-8B-ScanNet
SCANNET_CORPUS=<corpus dir> bash examples/eval_checkpoint/run.sh models/VGD-InternVL3-8B-ScanNet --corpus scannet
```

Serving (OpenAI-compatible API) as in our evaluation:

```bash
python -m sglang.launch_server --model-path models/VGD-InternVL3-8B-ScanNet --dtype bfloat16 \
    --context-length 32768 --port 30000 \
    --chat-template models/VGD-InternVL3-8B-ScanNet/chat_template.jinja
```

SGLang needs the checkpoint's own chat template (`chat_template.jinja`, identical to the base model's), passed with `--chat-template` as in our evaluation; the evaluation script of the code release does this for InternVL checkpoints.

We evaluated with SGLang only; other servers (for example vLLM) have not been tested with this checkpoint.

Transformers 5 (tested with 5.8.1, which wrote the configuration; Transformers 4.x does not read the rotary-embedding settings stored under `rope_parameters`):

```python
import torch
from transformers import AutoProcessor, InternVLForConditionalGeneration

model_id = "MLL-Lab/VGD-InternVL3-8B-ScanNet"
model = InternVLForConditionalGeneration.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
processor = AutoProcessor.from_pretrained(model_id)

# One turn: a system prompt and a user message with the images, as produced by the environment.
messages = [
    {"role": "system", "content": SYSTEM_PROMPT},
    {"role": "user", "content": [{"type": "image", "image": target_view},
                                 {"type": "image", "image": initial_view},
                                 {"type": "image", "image": top_down_view},
                                 {"type": "text", "text": FIRST_OBSERVATION_TEXT}]},
]
inputs = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=True,
                                       return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=1024, do_sample=False, repetition_penalty=1.0)
print(processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
```

In the environment the three images are placed where the prompt text has `<image>`; use the code release for the exact message construction. `generation_config.json` is the one saved with the checkpoint; pass the decoding settings above explicitly.

## Training

- Base model: [OpenGVLab/InternVL3-8B-hf](https://huggingface.co/OpenGVLab/InternVL3-8B-hf) (revision `259a3b64`). Before training, `tie_word_embeddings: false` was added to the base configuration, so the output layer is trained separately from the input embeddings.
- Data: the ViewSuite ScanNet training split: 3,419 instances over 193 scenes; checkpoint selection on 100 of the 378 dev instances.
- View Graph Distillation, three rounds. In each round the current policy explores the training scenes with PPO (60 steps of 128 episodes, 7,680 recorded episodes); the visited views and the actions between them are merged into a view graph that grows over the rounds; shortest-path plans, view-difference estimates and multiple-choice questions are distilled from the graph; and the model is fine-tuned on them (3 epochs).
- Final RL stage: PPO for up to 1,000 steps, validated every 20 steps on 100 dev instances, stopped after 200 steps without improvement. This checkpoint is step 480 (dev success 0.78); training stopped after step 680.
- Hardware: 2 nodes with 8 H100 GPUs each. One training run per configuration.

## Files

- `model.safetensors`: the evaluated weights, unchanged: one file, 31.8 GB, 781 tensors, 7,944,373,760 parameters, stored in **float32** (the training export). The evaluation served them in bfloat16 (`--dtype bfloat16`); `config.json` declares `dtype: bfloat16`, so `dtype="auto"` also loads bfloat16.
- `config.json`, `generation_config.json`, `tokenizer.json`, `tokenizer_config.json`, `processor_config.json`, `chat_template.jinja`: as saved with the checkpoint.
- `MANIFEST.json` and `SHA256SUMS`: size and SHA-256 of every file.

## Limitations

- Trained for one rendering style, one camera model and one discrete action space; other renderers, fields of view or action sets reduce success.
- The model plans camera viewpoints; it was not trained or tested for physical navigation, collision avoidance or robot control.
- Training targets IVP. The single-step multiple-choice tasks do not improve consistently: P2V 23.6 vs 31.9 for the base model, V2P 30.6 vs 27.5.
- One training run per configuration; differences of a few points between models are within run-to-run variation.

## Training data and license

The training views are renders of ScanNet scenes. ScanNet is available under the ScanNet Terms of Use (non-commercial research and education); the renders are not part of this repository.

The base model card of [InternVL3-8B-hf](https://huggingface.co/OpenGVLab/InternVL3-8B-hf) declares the Qwen license (`license: other`, `license_name: qwen`) and states that InternVL is released under the MIT License while its Qwen2.5 component is licensed under the Qwen License. This fine-tuned version keeps those terms: the Qwen LICENSE AGREEMENT is in `LICENSE`, the InternVL MIT license in `LICENSE-InternVL-MIT`, and the required attribution in `NOTICE`. Built with Qwen.

## Citation

```bibtex
@article{wang2026viewagent,
  title   = {Planning with the Views},
  author  = {Wang, Kangrui and Li, Linjie and Yang, Zhengyuan and Chen, Shiqi and
             Wang, Zihan and Fei-Fei, Li and Wu, Jiajun and Guibas, Leonidas and
             Wang, Lijuan and Li, Manling},
  journal = {arXiv preprint arXiv:2605.29563},
  year    = {2026}
}
```