EmbodyAgent: Post-Training Embodied VLM Agents via Distillation, SFT, and RL

Wei Dai, Jinkun Liu, Jiayi Chen, Han Liu, Wenbo Ding, Shaolun HuangarXiv 2026 · arXiv

TL;DR

EmbodyAgent is a three-stage post-training framework that transforms an open-weight 9B Vision-Language Model (VLM) into a high-performing embodied agent. By combining black-box teacher distillation, supervised fine-tuning (SFT), and online reinforcement learning (RL) over a unified Python code interface, it boosts task success from 0% to 84% while significantly improving execution efficiency.

What Problem Does This Paper Address?

While frontier Vision-Language Models (VLMs) like GPT-4o show impressive reasoning, they are often "black boxes" accessible only via APIs. Conversely, open-weight VLMs (like Qwen or Llama) are accessible but typically fail at complex, closed-loop robot manipulation tasks out of the box.

The authors identify three major hurdles in creating capable embodied agents:

  1. The Format Gap: Raw VLMs don't naturally follow the strict "interactive tool contracts" required to control a robot.
  2. The Teacher Gap: High-quality training data is hard to get because the best "teacher" models don't expose their internal weights or token probabilities for standard distillation.
  3. The Imitation Gap: Supervised imitation learning (SFT) often plateaus because the student model eventually encounters "out-of-distribution" states that the teacher never showed it how to handle.

Methods

EmbodyAgent tackles these issues with a three-stage "post-training stack" built around a unified think-then-code interface. Instead of outputting raw motor commands, the model writes Python programs that call two simple functions: env.observation() (to see) and env.action(a) (to move).

Figure 1: The EmbodyAgent full-pipeline post-training framework; the photographs are LIBERO Spatial frames. Left: the single output contract shared verbatim across all stages—at every turn the VLM emits a forced explanation et followed by an executable program ct over two raw runtime operations, shown for two turns of the episode below. Center: the three-stage pipeline. Stage 1 (black-box data synthesis) queries Astra Medium on training-split initial states without accessing teacher weights and filters successful think-then-code episodes into 1,475 targets; Stage 2 (multimodal SFT) distills these targets into an open-weight 9B VLM; Stage 3 (online RL) optimizes the student’s own rollouts via group-relative outcome credit. Bottom: a successful held-out episode from the post-trained 9B VLM (RL round 64), pairing each frame with its verbatim explanation and program through grasp, lift, lower, and place.
  1. Stage 1: Black-box Teacher Data Synthesis. The authors use a frontier model (Astra Medium) as a teacher. It interacts with the environment as a black box, forced to provide a "Chain-of-Thought" explanation before writing code. Only successful trajectories are kept, resulting in a clean dataset of 1,475 "think-then-code" targets.
  2. Stage 2: Multimodal SFT Distillation. An open-weight 9B VLM (Qwen3.5-9B) is fine-tuned on the teacher's data. Crucially, both the vision encoder and the language backbone are kept trainable, allowing the model to ground visual observations directly into executable code.
  3. Stage 3: Online Outcome-Based RL. To overcome the imitation gap, the student model is trained on its own rollouts using Group-Relative Policy Optimization (GRPO). The reward is simple: success on the task, minus a small penalty for code that causes runtime errors.

Datasets

The framework was evaluated on the LIBERO Spatial benchmark, which consists of 10 distinct robot manipulation tasks (e.g., picking up a bowl and placing it on a plate). The authors used a strict evaluation protocol with disjoint initial-state splits for training, validation, and testing to ensure the agent wasn't just memorizing specific scenarios.

Key Insights and Ideas

  • Primitive-Free Control: Unlike many prior works that rely on a library of pre-defined skills (like pick_up() or open_drawer()), EmbodyAgent writes raw control loops. This demonstrates that VLMs can handle the "perception-planning-control" loop entirely through code.
  • The Self-Reinforcing Error Loop: The authors discovered a unique failure mode in RL for code-writing agents. If a model generates buggy code, that error message enters its conversation history. In subsequent turns, the model might "learn" to condition on its own errors, leading to a death spiral of repeated failures.
  • Efficiency Emergence: Interestingly, RL didn't just make the agent more successful; it made it more efficient. The agent learned to "batch" its actions, executing longer control loops before stopping to check the camera again.
Figure 2: Stage 3 RL progression across ten LIBERO Spatial tasks. Left: greedy success on the 100 held-out test states after each round alongside temperature-one training rollout success (round 0 is the Stage 2 SFT checkpoint). The purple dashed line indicates the black-box Astra Medium teacher’s collection acceptance rate (32%, validated episodes over valid attempts, averaged over tasks); under RL, student rollout success rises from 8.4% to 87.7%, surpassing the teacher’s collection rate. The shaded band marks rounds 21–33, where runtime-error episodes dominated failures. Right: median model calls per test episode, inflating briefly during the error wave (rounds 31–33) and compressing to 10–14 calls once the wave subsides.

Key Results

  • Massive Success Gains: The base 9B VLM had a 0/100 success rate on held-out test states. After SFT, this rose to 14/100, and after Stage 3 RL, it jumped to 84/100.
  • Efficiency Boost: The median number of model calls per episode dropped from 36 (after SFT) to just 11 (after RL).
  • Local Independence: The final 9B model operates entirely locally, running 14x faster than the original black-box teacher API while achieving higher success rates than the teacher's raw collection rate.
Figure 3: Per-task held-out success across Stage 3 RL rounds (column 0 is the Stage 2 SFT checkpoint). Every task improves over SFT, with nine of ten tasks reaching 8– 10/10; task 4 remains the hardest throughout, matching the task that also resisted Stage 1 black-box synthesis longest.

Limitations and Future Work

  • Scope: The study is currently limited to one simulation suite (LIBERO Spatial). The authors note that extending this to broader manipulation suites and real-world robots is a natural next step.
  • Sparse Rewards: While RL was highly effective, some tasks (like Task 4 in the benchmark) remain challenging due to the difficulty of discovering success through random exploration in sparse-reward environments.
  • Ablations: Future work could more deeply investigate the specific impact of the "think-then-code" structure versus other prompting or architectural choices.

Summary updated

Abstract

Vision-language models (VLMs) can act as closed-loop robot-use agents (RUAs) by writing and executing control code through tool interfaces. However, turning an open-weight VLM into a high-performing embodied agent requires a complete post-training stack: out-of-the-box open VLMs fail completely at interactive tool contracts, strong frontier teachers are accessible only as black-box endpoints without exposed weights or token probabilities, and supervised imitation alone plateaus under rollout distribution shift. We present EmbodyAgent, an end-to-end post-training framework with three tightly coupled pipelines: (1) a black-box data synthesis pipeline that queries a strong teacher under a forced think-then-code contract and filters trajectories by task success; (2) an SFT pipeline that distills the explanation-and-program targets into an open-weight 9B VLM with both vision and language encoders trainable; and (3) an online RL pipeline that optimizes student-generated episodes via group-relative advantage with a runtime-error-penalized outcome reward. All three pipelines share one primitive-free Python execution tool exposing only raw visual observation and seven-dimensional end-effector control, with no action decoder and no interface shift across stages. Under a strictly separated evaluation protocol on ten LIBERO Spatial tasks (disjoint state splits, greedy test-time decoding, training-only safeguards), held-out success on 100 test states rises from 0/100 (base 9B VLM) to 14/100 (after SFT) and 84/100 (after RL), while training rollout success climbs from 8.4% to 87.7% and median model calls per episode drop from 36 to 11. We further identify a self-reinforcing runtime-error mode induced by outcome-based RL on executable code, and establish a failure-category monitoring and sampling-side curation protocol that stabilizes training.
BibTeX
@misc{dai2026embodyagent,
  author = {Wei Dai and Jinkun Liu and Jiayi Chen and Han Liu and Wenbo Ding and Shaolun Huang},
  title = {{EmbodyAgent: Post-Training Embodied VLM Agents via Distillation, SFT, and RL}},
  year = {2026},
  eprint = {2611.26196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26196},
}
Figure