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 

[![arxiv](https://img.shields.io/badge/arXiv_2507.05240-red?logo=arxiv)](http://arxiv.org/abs/2507.05240) [![project](https://img.shields.io/badge/Project_Page-0065D3?logo=rocket&logoColor=white)](https://streamvln.github.io/) [![hf](https://img.shields.io/badge/Hugging_Face-FF9D00?logo=huggingface&logoColor=white)](https://huggingface.co/papers/2507.05240/) [![video-en](https://img.shields.io/badge/YouTube-D33846?logo=youtube)](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 Creative Commons 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).