GaP: A Graph-as-Policy Multi-Agent Self-Learning Harness For Variational Automation Tasks

Kaiyuan Chen, Shuangyu Xie, Letian Fu, Justin Yu, William Pacini, Sandeep Bajamahal, Hudson Kim, Jaimyn Drake, Daehwa Kim, Haoru Xue, Jonathan Francis, Christian Juette, Peter Schaldenbrand, Muhammet Yunus Seker, Ruwan Wickramarachchi, Uksang Yoo, Guanzhi Wang, Adithyavairavan Murali, Balakumar Sundaralingam, S. Shankar Sastry, Spencer Huang, Yuke Zhu, Linxi "Jim" Fan, Ken GoldbergarXiv 2026

TL;DR

Graph-as-Policy (GaP) bridges the gap between structured robot programming and flexible AI coding agents by representing robot policies as directed computation graphs. By leveraging a hierarchical multi-agent LLM/VLM harness and iterative simulation rehearsal, GaP automatically generates, tests, and refines highly reliable control pipelines for complex industrial tasks with high spatial variation.

What Problem Does This Paper Address?

Traditional industrial automation excels at repetitive, fixed tasks (like spot welding) but fails when object shapes, orientations, or positions change. Conversely, generalist model-free policies (like Vision-Language-Action models) handle variation well but lack the extreme reliability, safety guarantees, and interpretability required for commercial deployment.

The authors target Variational Automation (VA)—a class of tasks where the workcell environment is known, but objects vary significantly in geometry, pose, and arrangement (e.g., packing diverse groceries or assembling cables). Existing single-agent "Code-as-Policy" (CaP) approaches prompt LLMs to generate free-form Python scripts, which quickly overwhelm the model's context window, leading to code hallucinations, constraint violations, or "cheating" behavior where the agent invents non-existent functions.

Methods

GaP introduces a structured framework to safely harness the coding capabilities of LLMs:

  • Graph-as-Policy (GaP): Instead of free-form code, robot behaviors are structured into a directed computation graph containing modular perception, planning, and control nodes.
  • Hierarchical Multi-Agent Harness: An Orchestration Agent partitions a natural language task description into functional segments. Specialized Skill Agents then synthesize localized subgraphs for their assigned segments, which are ultimately wired together into an executable graph.
  • Modular Open Robot Skill Library (MORSL): A standardized library containing 51 initial atomic skills (e.g., SAM2, Grounding DINO, cuRobo motion planning, and ROS translators) that agents can choose from and configure.
  • Self-Learning via Simulation Rehearsal: GaP instantiates parallel task variations in NVIDIA Isaac Sim. If a simulated rollout fails, the system analyzes the physical execution data, generates a text-based failure report (Feedback.md), and prompts the LLM agents to iteratively refine the graph topology and parameters until performance plateaus.
GaP System Architecture

Datasets

The paper introduces 8 new open Variational Automation benchmarks (4 in simulation, 4 in the real world) designed to evaluate robustness against severe spatial and geometric perturbations:

  1. Fulfill Grocery Orders (Sim & Real): Locating and basket-placing items under randomized positions, swaps, and distractor permutations.
  2. Pack Grocery Items (Sim & Real): Multi-object pick-and-place of 6 distinct items into a container.
  3. Make Popcorn (Sim & Real): A long-horizon sequential manipulation task requiring turning stove knobs, handling a pan, and turning off the stove.
  4. Insert Cables (Real): Force-feedback-guided USB-C insertions across varying angles and distances.
  5. Wash Crates (Sim): A coordinated bimanual task where two Franka arms must lift, flip, and place an industrial crate.

Key Insights and Ideas

  • Structure Prevents Cheating: Separating graph generation from execution testing limits each agent's context window and removes the incentive for individual coding agents to "cheat" by fabricating trivial success metrics.
  • VLAs Benefit from Classical Pre-Staging: Pure model-free VLA policies often fail when objects are out of their training distribution. GaP can autonomously generate a simple perception-driven motion node to center the robot's wrist camera over an object before handing control to a VLA, resulting in a twofold improvement in VLA success rates.
  • Simulation as a Geometric Critic: LLMs struggle to evaluate geometric feasibility (like inverse kinematics or collisions) from text alone. Rehearsing in a physics simulator provides the concrete geometric grounding needed for effective self-improvement.

Key Results

  • Positional Robustness: In simulation trials, GaP achieved near-perfect success rates (93%–99%) across severe spatial perturbations, whereas baseline VLA models ($\pi_{0.5}$ and MolmoAct2) saw performance drop as low as 10%–20%.
Table 1: Success Rates for 5500 trials, 100 task instances per table cell. Results on Benchmarks I-a and II-a: Fulfill Grocery Orders and Pack Grocery Items. The first two columns are the original LIBERO [34] with negligible pose variation, and LIBERO-PRO with slightly larger pose variation [69] . We introduce the VA Grocery Order Fulfillment benchmark that includes larger object positional variance (X-Y 20×20 cm2), swapping target and basket positions (basket swap), permuting all item locations, and everything combined (mixed all). We also introduce the Grocery Packing benchmark that requires picking all objects and placing them in the basket. In rows 5 and 6, GaP navigates the robot wrist camera above the target object and then switches to MolmoAct2 and π0.5 VLA policies.
  • Sim-to-Real Transfer: GaP successfully transferred to real hardware, achieving a 100% success rate (25/25) on grocery fulfillment and 90% (18/20) on making popcorn, vastly outperforming traditional Task and Motion Planning (TAMP) baselines like TipTop.
Table 2: Physical Benchmark Results

Limitations and Future Work

  • Throughput Bottlenecks: GaP's execution times are still well below industry standards (which require ~500 units per hour) due to heavy VLM inference overhead and motion planning latency during execution.
  • Quasi-Static Focus: The current benchmarks focus primarily on static pick-and-place operations.
  • Lack of Dynamic/Deformable Handling: More work is required to apply GaP to tasks involving deformable objects (e.g., fabrics, cables without rigid fixtures), dynamic forces, or moving targets. Force sensing is currently limited to the cable insertion benchmark.

Summary updated

BibTeX
@misc{chen2026gap,
  author = {Kaiyuan Chen and Shuangyu Xie and Letian Fu and Justin Yu and William Pacini and Sandeep Bajamahal and Hudson Kim and Jaimyn Drake and Daehwa Kim and Haoru Xue and Jonathan Francis and Christian Juette and Peter Schaldenbrand and Muhammet Yunus Seker and Ruwan Wickramarachchi and Uksang Yoo and Guanzhi Wang and Adithyavairavan Murali and Balakumar Sundaralingam and S. Shankar Sastry and Spencer Huang and Yuke Zhu and Linxi "Jim" Fan and Ken Goldberg},
  title = {{GaP: A Graph-as-Policy Multi-Agent Self-Learning Harness For Variational Automation Tasks}},
  year = {2026},
  eprint = {2607.05369},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.05369},
}
Figure