← all repositories
mll-lab-nu/VAGEN

RL framework makes VLMs build mental maps

Multi-turn vision agents need world models, not just task rewards.

VAGEN
Collecting fresh signals — velocity needs a few days of history.
collecting data…
star history

What it does VAGEN is a reinforcement-learning framework for training vision-language model agents across multiple turns. It treats agentic tasks as a Partially Observable Markov Decision Process and explicitly rewards the agent for internal world-model reasoning—estimating current state and predicting transitions—using an LLM-as-Judge signal alongside task success. The architecture decouples environments, harnesses, models, and rollouts from the underlying training algorithm so you can plug in different RL methods without rewriting the agent loop.

The interesting bit Instead of relying solely on sparse end-of-episode rewards, VAGEN supervises the agent’s “mental model” by grading its perception-reasoning-prediction chain, which the authors frame as World Modeling RL. This is unusual: most RL pipelines for VLMs optimize for final accuracy; VAGEN optimizes for whether the agent can articulate what changed and what will change next.

Key highlights

  • Modular axes for algorithms, environments, harnesses, models, and evaluation, all importing through stable facades.
  • Supports Sokoban, FrozenLake, Navigation, ManiSkill, and SpatialGym (SVG) environments out of the box.
  • Compatible with Qwen2.5-VL, Qwen3-VL, Qwen3.5, InternVL3.5, and GLM-4.6V model families.
  • Built on the VERL agent-loop; recently refactored into a lightweight VAGEN-Lite reimplementation.
  • Structured output formats separate perception, reasoning, prediction, and answer (or a compact think/answer variant).

Caveats

  • Several environments (spatial_gym, navigation, primitive_skill) require additional manual setup and dependencies such as AI2-THOR or ManiSkill.
  • The codebase underwent a major refactor to decouple the environment and harness layer for Verl 0.9.0, so older branches exist for prior versions.

Verdict Worth a look if you are researching multi-turn VLM agents or need a modular RL harness for embodied-AI tasks. Probably overkill if you just want to fine-tune a vision model on static image-caption pairs.

Frequently asked

What is mll-lab-nu/VAGEN?
Multi-turn vision agents need world models, not just task rewards.
Is VAGEN open source?
Yes — mll-lab-nu/VAGEN is open source, released under the MIT license.
What language is VAGEN written in?
mll-lab-nu/VAGEN is primarily written in Python.
How popular is VAGEN?
mll-lab-nu/VAGEN has 502 stars on GitHub.
Where can I find VAGEN?
mll-lab-nu/VAGEN is on GitHub at https://github.com/mll-lab-nu/VAGEN.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.