GRAPPA: Generalizing and Adapting Robot Policies via Online Agentic Guidance

Arthur Bucker, Pablo Ortega-Kral, Jonathan Francis, Jean Oh · DOI

TL;DR

GRAPPA (Generalizing and Adapting Robot Policies via Online Agentic Guidance) is a framework that uses a "team" of AI agents to help robots succeed in unfamiliar or cluttered environments. By generating Python-based guidance functions on the fly, it nudges a robot's existing, brittle policy toward the correct action without requiring any new human demonstrations or expensive retraining.

What Problem Does This Paper Address?

Robot learning has a "generalization" problem. A policy trained in a clean simulator often fails in the messy real world (the sim-to-real gap), and a robot trained to pick up a red mug might be completely baffled by a blue one or a cluttered table.

While Large Language Models (LLMs) and Vision-Language Models (VLMs) are great at high-level reasoning, they are typically too slow or imprecise to handle low-level robot control (like the millisecond-by-millisecond adjustments needed to grasp an object). This paper addresses the gap between high-level semantic reasoning and low-level visuomotor execution, allowing robots to adapt to out-of-distribution (OOD) scenarios online.

Methods

The core of GRAPPA is an agentic framework consisting of four specialized roles:

  1. Advisor Agent: The "manager" that breaks down a natural language task into steps and orchestrates the other agents.
  2. Grounding Agent: The "eyes" that use models like Grounding DINO and SAM to locate objects. It uses a recursive, multi-granular search (e.g., "I can't see the mug, let me find the cupboard first, then look inside").
  3. Robotic Agent: The "engineer" that writes and tests Python code to ensure the proposed guidance is feasible for the specific robot hardware.
  4. Monitor Agent: The "critic" that analyzes video of failed attempts to explain why the robot failed and how to fix the guidance code.

The Secret Sauce: Guidance Functions Instead of the VLMs controlling the robot directly, they generate a Python guidance function. This function calculates a "guidance score" for potential actions. This score is then mathematically combined with the robot's original policy distribution. Essentially, the original policy provides the "how to move," and the GRAPPA guidance provides the "where to go," shifting the robot's behavior toward success in real-time.

Datasets

The researchers evaluated GRAPPA using:

  • RL-Bench: A standard benchmark for robot manipulation featuring tasks like "open drawer," "sweep to dustpan," and "meat off grill."
  • Real-World Benchmarks: The team set up a UFACTORY Lite 6 robot arm for challenging tasks including:
  • Button-pressing in highly cluttered environments.
  • Chess piece reaching, requiring the robot to identify a specific piece (e.g., "white knight") among many similar ones.
  • OOD Pick-and-Place, using objects never seen during the base policy's training.

Key Insights and Ideas

  • Code as the Interface: By outputting Python code rather than raw actions, the framework bypasses the latency issues of large models. The code runs locally and fast, fitting right into the robot's control loop.
  • The "1% Guidance" Effect: One of the most surprising findings was that even a tiny amount of guidance (applying the guidance function to just 1% of the action distribution) significantly boosted success rates. This allows the robot to retain its smooth, learned motions while receiving just enough "correction" to reach the goal.
  • Multi-Granular Grounding: Standard vision models often fail to find small objects in clutter. GRAPPA’s grounding agent mimics human behavior by looking for "parent" objects (like a shelf or a box) to narrow down the search area, making it much more robust than a single-shot detector.
  • Learning from Scratch: GRAPPA is so effective it can actually guide a Random Policy (a robot moving aimlessly) to successfully complete tasks by iteratively refining the guidance code based on failures.

Key Results

  • Performance Boost: On the RL-Bench suite, adding GRAPPA guidance to a pre-trained Act3D policy improved average success rates by over 10% with minimal iterations.
  • Sim-to-Real Mastery: In real-world button-pressing tasks, a "naive" policy that failed 100% of the time due to clutter achieved a 100% success rate once 75% GRAPPA guidance was applied.
  • Generalization: In OOD tests (moving a toy ball into a box), the base policy failed every single trial (0/5). With GRAPPA, the success rate jumped to 80% (4/5).

Limitations and Future Work

The authors identify a few hurdles:

  • Perception Failures: If the grounding agent experiences a "false positive" (misidentifying an object), the guidance will lead the robot astray.
  • VLM Hallucinations: Occasionally, the LLM might generate logic that doesn't match the physical reality of the scene.
  • Graphics Gap: The VLMs sometimes struggled with the simplified graphics of simulators compared to the rich textures of the real world.

Future Directions: The team suggests incorporating Retrieval-Augmented Generation (RAG) so the system can remember and reuse successful guidance functions from the past, and using LoRA (Low-Rank Adaptation) to permanently "bake" the successful guided behaviors back into the base policy.

Summary updated

Abstract

Robot learning approaches such as behavior cloning and reinforcement learning have shown great promise in synthesizing robot skills from human demonstrations in specific environments. However, these approaches often require task-specific demonstrations or designing complex simulation environments, which limits the development of generalizable and robust policies for unseen real-world settings. Recent advances in the use of foundation models for robotics (e.g., LLMs, VLMs) have shown great potential in enabling systems to understand the semantics in the world from large-scale internet data. However, it remains an open challenge to use this knowledge to enable robotic systems to understand the underlying dynamics of the world, to generalize policies across different tasks, and to adapt policies to new environments. To alleviate these limitations, we propose an agentic framework for robot self-guidance and self-improvement, which consists of a set of role-specialized conversational agents, such as a high-level advisor, a grounding agent, a monitoring agent, and a robotic agent. Our framework iteratively grounds a base robot policy to relevant objects in the environment and uses visuomotor cues to shift the action distribution of the policy to more desirable states, online, while remaining agnostic to the subjective configuration of a given robot hardware platform. We demonstrate that our approach can effectively guide manipulation policies to achieve significantly higher success rates, both in simulation and in real-world experiments, without the need for additional human demonstrations or extensive exploration. Code and videos available at: https://agenticrobots.github.io
BibTeX
@article{bucker2026grappa,
  author = {Arthur Bucker and Pablo Ortega-Kral and Jonathan Francis and Jean Oh},
  title = {{GRAPPA: Generalizing and Adapting Robot Policies via Online Agentic Guidance}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2026},
  doi = {10.1109/lra.2026.3664527},
}
Figure