StreamVLN: Streaming Vision-and-Language Navigation via SlowFast Context Modeling
Meng Wei*
Chenyang Wan*
Xiqian Yu*
Tai Wang*β‘
Yuqiang Yang
Xiaohan Mao
Chenming Zhu
Wenzhe Cai
Hanqing Wang
Yilun Chen
Xihui Liuβ
Jiangmiao Pangβ
Shanghai AI Laboratory The University of Hong Kong Zhejiang University Shanghai Jiao Tong University
[](http://arxiv.org/abs/2507.05240)
[](https://streamvln.github.io/)
[](https://huggingface.co/papers/2507.05240/)
[](https://www.youtube.com/watch?v=gG3mpefOBjc)
## π About
StreamVLN generates action outputs from continuous video input in an online, multi-turn dialogue manner. Built on **LLaVA-Video** as the foundational Video-LLM, we extend it for interleaved vision, language, and action modeling. For both effective context modeling of long sequence and efficient computation for real-time interaction, StreamVLN has: (1) a **fast-streaming** dialogue context with a sliding-window KV cache; and (2) a **slow-updating** memory via token pruning.
## π’ News
[2025-09-28] We have updated the [checkpoint](https://huggingface.co/mengwei0427/StreamVLN_Video_qwen_1_5_r2r_rxr_envdrop_scalevln_v1_3) which is trained on R2R_VLNCE_v1-3, achieving better results: R2R (NE:4.90, OS:63.6, SR:56.4, SPL:50.2) and RxR (NE:5.65, SR:54.4, SPL:45.4, nDTW:63.7). **Please switch your training and testing data to R2R_VLNCE_v1-3 if you used R2R_VLNCE_v1 before.**
[2025-08-28] We have released the code and [guide](realworld/realworld.md) for real-world deployment on a unitree Go2 robot.
[2025-08-21] We have released the code for the following components: 1) **Dagger Data Collection**; 2) **Stage-Two Co-training** with the LLaVA-Video-178K, ScanQA, and MMC4 datasets.
[2025-07-30] We have released the ScaleVLN training data, including a subset of ~150k episodes converted from the discrete environment setting to the VLN-CE format. For usage details, see [here](https://huggingface.co/datasets/cywan/StreamVLN-Trajectory-Data/blob/main/README.md#envdrop--scalevln-dataset-note).
[2025-07-18] Weβve fixed a bug where num_history was not correctly passed to the model during evaluation, causing it to default to None. This had a significant impact on performance. Please make sure to pull the latest code for correct evaluation.
## π Getting Started
We test under the following environment:
* Python 3.9
* Pytorch 2.1.2
* CUDA Version 12.4
1. **Preparing a conda env with `Python3.9` & Install habitat-sim and habitat-lab**
```bash
conda create -n streamvln python=3.9
conda install habitat-sim==0.2.4 withbullet headless -c conda-forge -c aihabitat
git clone --branch v0.2.4 https://github.com/facebookresearch/habitat-lab.git
cd habitat-lab
pip install -e habitat-lab # install habitat_lab
pip install -e habitat-baselines # install habitat_baselines
```
2. **Clone this repository**
```bash
git clone https://github.com/OpenRobotLab/StreamVLN.git
cd StreamVLN
```
## π Data Preparation
To get started, you need to prepare three types of data:
1. **Scene Datasets**
- For **R2R**, **RxR** and **EnvDrop**: Download the MP3D scenes from the [official project page](https://niessner.github.io/Matterport/), and place them under `data/scene_datasets/mp3d/`.
- For **ScaleVLN**: Download the HM3D scenes from the [official github page](https://github.com/matterport/habitat-matterport-3dresearch), and place the `train` split under `data/scene_datasets/hm3d/`
2. **VLN-CE Episodes**
Download the VLN-CE episodes:
- [r2r](https://drive.google.com/file/d/18DCrNcpxESnps1IbXVjXSbGLDzcSOqzD/view) (Rename `R2R_VLNCE_v1/` -> `r2r/`)
- [rxr](https://drive.google.com/file/d/145xzLjxBaNTbVgBfQ8e9EsBAV8W-SM0t/view) (Rename `RxR_VLNCE_v0/` -> `rxr/`)
- [envdrop](https://drive.google.com/file/d/1fo8F4NKgZDH-bPSdVU3cONAkt5EW-tyr/view) (Rename `R2R_VLNCE_v1-3_preprocessed/envdrop/` -> `envdrop/`)
- [scalevln](https://huggingface.co/datasets/cywan/StreamVLN-Trajectory-Data/blob/main/ScaleVLN/scalevln_subset_150k.json.gz) (This is a subset of the ScaleVLN dataset, converted to the VLN-CE format. For the original dataset, please refer to the [official repository](https://github.com/wz0919/ScaleVLN).)
Extract them into the `data/datasets/` directory.
3. **Collected Trajectory Data**
We provide pre-collected observation-action trajectory data for training. These trajectories were collected using the **training episodes** from **R2R** and **RxR** under the Matterport3D environment. For the **EnvDrop** and **ScaleVLN** subset, please refer to [here](https://huggingface.co/datasets/cywan/StreamVLN-Trajectory-Data/blob/main/README.md) for instructions on how to collect it yourself.
Download the observation-action trajectory data from [Hugging Face](https://huggingface.co/datasets/cywan/StreamVLN-Trajectory-Data), and extract it to `data/trajectory_data/`.
4. **Co-training Data Preparation**
Download the respective datasets from their official sources and place them in the `data/co-training_data/`.
- LLaVA-Video-178K: Available on Hugging Face at [lmms-lab/LLaVA-Video-178K](https://huggingface.co/datasets/lmms-lab/LLaVA-Video-178K).
- ScanNet:
- The main dataset can be downloaded from the [official GitHub repository](https://github.com/ScanNet/ScanNet).
- Download the annotation files `scanqa_annotations.json` and `sqa3d_annotations.json` from [here](https://huggingface.co/datasets/chchnii/StreamVLN-ScanQA-SQA3D-Data). These files are subsets of the [LLaVA-3D-DATA](https://huggingface.co/datasets/ChaimZhu/LLaVA-3D-Data).
- MMC4-core: Available via the [official GitHub repository](https://github.com/allenai/mmc4).
Your final folder structure should look like this:
```bash
data/
βββ datasets/
β βββ r2r/
β β βββ train/
β β βββ val_seen/
β β β βββ val_seen.json.gz
β β βββ val_unseen/
β β βββ val_unseen.json.gz
β βββ rxr/
β β βββ train/
β β βββ val_seen/
β β β βββ val_seen_guide.json.gz
β β β βββ ...
β β βββ val_unseen/
β β βββ val_unseen_guide.json.gz
β β βββ ...
β βββ envdrop/
β β βββ envdrop.json.gz
β β βββ ...
β βββ scalevln/
β βββ scalevln_subset_150k.json.gz
βββ scene_datasets/
β βββ hm3d/
β βββ 00000-kfPV7w3FaU5/
β βββ 00001-UVdNNRcVyV1/
β βββ ...
β βββ mp3d/
β βββ 17DRP5sb8fy/
β βββ 1LXtFkjw3qL/
β βββ ...
βββ trajectory_data/
β βββ R2R/
β β βββ images/
β β βββ annotations.json
β βββ RxR/
β β βββ images/
β β βββ annotations.json
β βββ EnvDrop/
β β βββ images/
β β βββ annotations.json
β βββ ScaleVLN/
β βββ images/
β βββ annotations.json
βββ dagger_data/
β βββ R2R/
β β βββ images/
β β βββ annotations.json
β βββ RxR/
β β βββ images/
β β βββ annotations.json
β βββ EnvDrop/
β βββ images/
β βββ annotations.json
βββ co-training_data/
βββ ScanNet/
β βββ posed_images/
β β βββ scene0000_00/
β β βββ scene0000_01/
β β βββ ...
β βββ scanqa_annotations.json
β βββ sqa3d_annotations.json
βββ LLaVA-Video-178K/
β βββ 0_30_s_academic_v0_1/
β β βββ academic_source/
β β β βββ Charades/
β β β βββ NextQA/
β β β βββ ...
β β βββ 0_30_s_academic_oe_v0_1_qa_processed.json
β βββ 30_60_s_academic_v0_1/
β β βββ academic_source/
β β β βββ Charades/
β β β βββ NextQA/
β β β βββ ...
β β βββ 30_60_s_academic_oe_v0_1_qa_processed.json
β βββ 0_30_s_youtube_v0_1/
β βββ liwei_youtube_videos/
β βββ 0_30_s_youtube_oe_v0_1_qa_processed.json
βββ MMC4-core/
βββ images/
βββ docs_shard_10000_v3.jsonl
βββ docs_shard_10001_v3.jsonl
βββ ...
```
## π Model Zoo
We provide two model checkpoints for different use cases:
- **Benchmark Reproduction**
Use this [checkpoint](https://huggingface.co/mengwei0427/StreamVLN_Video_qwen_1_5_r2r_rxr_envdrop_scalevln_v1_3) to reproduce results on the VLN-CE benchmark.
- **Real-World Deployment**
This [checkpoint](https://huggingface.co/mengwei0427/StreamVLN_Video_qwen_1_5_r2r_rxr_envdrop_scalevln_real_world) is recommended for deployment on physical robots.
We made two modifications:
1. **Remove redundant initial spinning actions**: The initial left/right turns not mentioned in the instructions are removed for better instruction alignment.
2. **Trajectory safety**: Enhanced obstacle avoidance ensures more reliable navigation in real-world environments.
## π Training
1. **Stage-one Training**
To perform **multi-node multi-GPU training** with distributed setup, run:
```bash
sbatch scripts/streamvln_train_slurm.sh
```
2. **Dagger Collection**
To perform multi-GPU collection, simply run:
```bash
sh scripts/streamvln_dagger_collect.sh
```
2. **Stage-two Training**
To perform **multi-node multi-GPU training** with distributed setup, run:
```bash
sbatch scripts/streamvln_stage_two_train_slurm.sh
```
## π€ Evaluation
To perform multi-GPU evaluation with key-value cache support, simply run:
```bash
sh scripts/streamvln_eval_multi_gpu.sh
```
## Deployment
Please refer to [realworld/realworld.md](realworld/realworld.md) for real-world deployment on a unitree Go2 robot.
## π TODO List
- β
Release the arXiv paper (Jul. 8, 2025)
- β
Provide inference scripts and model checkpoints
- β
Release training code and configurations
- β
Release training data
- β
Support co-training with LLaVA-Video-178K, ScanQA, MMC4
- β
Dagger data collection
## πββοΈ Questions or Issues
If you encounter any problems or have questions about StreamVLN, please feel free to [open an issue](https://github.com/OpenRobotLab/StreamVLN/issues).
## π Citation
If you find our work helpful, please consider starring this repo π and cite:
```bibtex
@article{wei2025streamvln,
title={StreamVLN: Streaming Vision-and-Language Navigation via SlowFast Context Modeling},
author={Wei, Meng and Wan, Chenyang and Yu, Xiqian and Wang, Tai and Yang, Yuqiang and Mao, Xiaohan and Zhu, Chenming and Cai, Wenzhe and Wang, Hanqing and Chen, Yilun and others},
journal={arXiv preprint arXiv:2507.05240},
year={2025}
}
```
## π License
This work is under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
## π Acknowledgements
This repo is based on [LLaVA-NeXT](https://github.com/LLaVA-VL/LLaVA-NeXT).