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

Ruiyang Si, Jianxin Bi, Shunyu Yang, Rui Ni, Wenbo Huang, Qiang Wang, Shulong Jiang, Duomin Wang, Xiuyu Li, Haiwen Feng, Zhen Dong, Daquan ZhouarXiv 2026

TL;DR

PyRUA-Lean is a new framework that allows Vision-Language Model (VLM) robot agents to control hardware more efficiently by writing Python code instead of using standard tool-calling. By composing multiple robot primitives into single code blocks and selectively requesting visual feedback, the system achieves a 14% higher success rate while using 65% fewer tokens and costing 2.2x less than traditional methods.

What Problem Does This Paper Address?

Current VLM-based robot agents typically operate through a "tool-calling" loop: the model observes an image, selects a single action (like "move arm"), receives a new observation, and repeats. This approach is incredibly "chatty." Every minor adjustment requires a full round-trip to a massive model like GPT-6 Astra, incurring high latency and monetary costs.

Furthermore, these interfaces often return redundant data—like multiple camera angles after every single movement—which quickly bloats the VLM's context window. This overhead makes long-horizon tasks (tasks requiring many steps) difficult and expensive to solve. The authors ask: How can we let a VLM compose robot primitives to complete tasks reliably while minimizing token consumption?

Methods

The authors introduce PyRUA-Lean (Python for Lean Robot-Use Agents), an interactive code-execution interface. Instead of calling one tool at a time, the VLM generates a Python "cell" that can:

  • Compose Primitives: Combine multiple actions (motion, grasping, perception) and learned Vision-Language-Action (VLA) policies into a single execution block.
  • Execute Local Logic: Use if statements, loops, and try-except blocks to handle minor errors or retries locally without needing to re-prompt the VLM.
  • Selective Observation: Explicitly request specific images or state data (e.g., robo.show()) only when necessary for high-level replanning.
  • Maintain Persistent State: Keep variables and helper functions in a persistent namespace across the entire episode.
This diagram illustrates the difference between the standard tool-calling loop and the PyRUA-Lean code-execution workflow.

Datasets

The framework was evaluated across 700 simulated task instances using three major robot benchmarks:

  1. LIBERO-PRO: 40 tasks involving perturbed layouts and long-horizon goals.
  2. RoboTwin 2.0: 50 dual-arm tasks requiring coordination.
  3. RoboCasa365: 50 tasks from the "Target50" set, including complex kitchen manipulations.

Key Insights and Ideas

  • Autonomy through Composition: By writing a "mini-program" for a sub-task (e.g., "approach the bowl, then grasp it if the approach succeeded"), the agent avoids the overhead of the VLM overseeing every millimeter of movement.
  • The Power of Geometric Reasoning: Because the agent is writing Python, it can perform complex calculations that high-level tools might not support. For example, it can fit a plane to a set of 3D points to determine the orientation of a fallen object, enabling sophisticated recovery behaviors that standard agents can't handle.
  • Token Savings are Structural: The majority of token savings come from reducing the number of LLM calls rather than just making each prompt smaller. By staying in the "code runtime" longer, the agent keeps the conversation history clean.
A comparison of success rates across different task types, showing significant gains in long-horizon and multi-step tasks.

Key Results

PyRUA-Lean significantly outperformed the tool-calling baseline across all metrics:

  • Success Rate: Increased from 63.1% to 71.7% overall. The gains were most dramatic in "Long" horizon tasks (+36.0 percentage points) and "Stack & Order" tasks (+40.0 percentage points).
  • Efficiency: On tasks solved by both agents, PyRUA-Lean used 49% fewer LLM calls and 65% fewer input tokens.
  • Cost: The estimated monetary cost per solved episode dropped by 2.2x (from $1.63 to $0.74).
  • Budget Resilience: As shown in Figure 3, PyRUA-Lean reaches the baseline's final success rate using a fraction of the token budget.
Success rate vs. token budget per episode, demonstrating that PyRUA-Lean is far more token-efficient.

Limitations and Future Work

While impressive, the authors note several areas for further exploration:

  • Hardware Generalization: The study was conducted in simulation using GPT-6 Astra. Performance on physical robots and with other LLM planners remains to be seen.
  • Isolation of Variables: The current experiments evaluate the interface as a whole; future work is needed to isolate exactly how much of the gain comes from code composition versus selective feedback.
  • Latency: While token counts are lower, the wall-clock time for executing complex Python cells on a robot was not the primary focus and warrants further study.
  • Cross-Episode Learning: The current system does not use memory across different episodes, which could be a powerful extension for building a library of reusable robot skills.

Summary updated

BibTeX
@misc{si2026fewer,
  author = {Ruiyang Si and Jianxin Bi and Shunyu Yang and Rui Ni and Wenbo Huang and Qiang Wang and Shulong Jiang and Duomin Wang and Xiuyu Li and Haiwen Feng and Zhen Dong and Daquan Zhou},
  title = {{Fewer Tokens, Better Action: GPT-6 Astra Robot Agents with 14\% Higher Success Rate but 65\% Fewer Tokens}},
  year = {2026},
  eprint = {2610.01939},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.01939},
}
Figure