DAGroup-PKU/PyRUA-Lean

Fewer Tokens, Better Action: GPT-6 Astra Robot Agents with 14% Higher Success but 65% Fewer Tokens

What it solves

Robot-use agents often suffer from high token costs, inefficient tool-calling methods, and low success rates when interacting with complex simulation and real-world environments. PyRUA-Lean addresses this by providing a token-efficient harness that uses Python code cells to compose robot primitives, checking and retrying locally while drastically cutting down unnecessary language model calls and input tokens.

How it works

The framework allows a planning model to write and execute Python cells containing robot primitives and vision-language-action policies. These cells run locally, checking outcomes and retrying before returning only the requested images and states back to the planner. It also supports training specialized code-generation models using techniques like GRPO on task instances.

Who it’s for

This project is designed for robotics researchers, embodied AI engineers, and developers working on intelligent robotic agents who want to achieve higher task success rates while reducing token consumption and API costs.

Highlights

  • Higher success rates: Achieves 71.7% overall success across benchmarks compared to 63.1% for traditional tool calling.
  • Efficiency gains: Reduces LLM calls by 49% and input tokens by 65% on solved episodes.
  • Generalization: Generalizes effectively across robots and benchmarks like LIBERO-PRO, RoboTwin 2.0, RoboCasa365, and RoboDojo.
  • Trained coder models: Includes PyRUA-Lean Coder v0.1-4B, which outperforms larger base models on unseen task instances after training.

Related

  • Project
  • Project
  • Project
  • Project