This project implements Foresight, a vision-language navigation policy that iteratively discovers instruction-relevant visual clues and refines motion plans for open-world navigation.
Given a natural-language goal and a short history of RGB observations, the model proposes an image-space trajectory, critiques its own proposal, optionally refines it, and grounds the result into metric BEV waypoints for motion control.
This repository contains what is needed to run the released model weights on a robot, plus the supervised fine-tuning pipeline for the unified plan-critique-refine model. Data generation and evaluation code are not included. See docs/architecture.md for how the system fits together, the service interface, the full configuration reference, and the no-refinement and RL variants, and docs/training.md for training.
ROS2 Humble or newer and a CUDA GPU are assumed. The vLLM server and the grounding policy both need CUDA; a single 2B model at gpu_memory_utilization: 0.5 fits comfortably on 24 GB.
Clone this repository into a ROS2 workspace as src/foresight_public; the config files reference prompt and config paths under that name.
git clone --recurse-submodules <this-repo> ~/foresight_ws/src/foresight_public cd ~/foresight_ws/src/foresight_public
Dependencies are managed by uv, which creates the
.venv, installs this repository in editable mode, and resolves everything from
pyproject.toml / uv.lock:
uv sync --extra deploy # vLLM server and grounding policy encoders source .venv/bin/activate
Use --extra train instead for the training dependencies (verl and flash-attn,
see docs/training.md), or --all-extras for both. The
train extra needs the external/verl submodule, hence --recurse-submodules
above.
The planner's service interface lives in a separate interface package. Build amrl_msgs into the same workspace (see docs/architecture.md for the message definitions if you need to vendor your own), then:
cd ~/foresight_ws colcon build --packages-select amrl_msgs legged_deployment source install/setup.bash
Released weights, all under the ut-amrl organization:
| Model | Hugging Face ID | Used by |
|---|---|---|
| Unified VLM, SFT | foresight-qwen3vl-2b-sft | vllm_server_sft.yaml (default) |
| Unified VLM, RL | foresight-qwen3vl-2b-rl | vllm_server_rl.yaml |
| Plan reward model | foresight-qwen3vl-2b-reward | the optional vlm_reward role, off by default |
| Grounding policy | foresight-waypoint-policy | waypoint_planner.yaml |
vLLM loads the VLM directly from its Hugging Face ID, so only the grounding policy checkpoint needs downloading:
mkdir -p checkpoints/waypoint_policy hf download ut-amrl/foresight-waypoint-policy \ gtpassthrough_xformer_kp384_48m.ckpt --local-dir checkpoints/waypoint_policy
To fine-tune your own unified plan-critique-refine model instead of using the released weights, see docs/training.md.
Two terminals, both from the workspace root. The defaults bring up the SFT variant with self-critique refinement enabled.
# terminal 1 - model server ros2 launch legged_deployment vllm_server.launch.py # terminal 2 - planner ros2 launch legged_deployment deployment.launch.py
Wait for the server to print Starting vLLM server on http://127.0.0.1:8001, then
request a plan:
ros2 service call /legged_deployment/foresight_planner \
amrl_msgs/srv/ForesightPlannerSrv "{goal_command: {data: 'go to the next doorway'}}"The response carries the planned nav_msgs/Path in the odom frame along with the critic's verdict and reason.
If the repository is not at ~/foresight_ws/src/foresight_public, point the server launch at it:
ros2 launch legged_deployment vllm_server.launch.py \ vllm_repo_dir:=/path/to/foresight_public
If you use this code or the model weights in your research, please cite:
@article{zhang2026foresight, title={Foresight: Iterative Reasoning About Clues that Matter for Navigation}, author={Zhang, Arthur and Qi, Carl and Su, Donne and Meng, Xiangyun and Zhang, Amy and Biswas, Joydeep}, journal={arXiv preprint arXiv:2606.12550}, year={2026} }
Apache-2.0
