Why robot control still needs structure around AI models
Terminator Robotics By What The Future Newsroom · April 2, 2026 · 4 min read

Why robot control still needs structure around AI models

CaP-X tests whether AI coding agents can control robots by writing programs. The results show that frontier models struggle without human-designed abstractions, but agentic scaffolding, visual text feedback and reinforcement learning can sharply improve performance.

A new robotics framework called CaP-X puts a practical question under pressure: can general-purpose AI models control robots by writing code, instead of relying on robot-specific motion models trained on large demonstration datasets?

“The story mildly leans Terminator because it concerns AI agents writing code to control physical robots, though the results emphasize limits and human-designed scaffolding.”Why it scores Terminator

The answer is mixed. Researchers from Nvidia, UC Berkeley, Stanford, and Carnegie Mellon found that none of the twelve frontier models they tested could match the reliability of human-written programs in a single attempt. But the same work also shows that the right support system around those models can close much of the gap.

What CaP-X Is Testing

CaP-X is an open-access framework for evaluating how AI coding agents perform when asked to control robots through self-written programs. The study looks at a different path from training robot-only models on huge motion datasets. Instead, general-purpose language models generate the code that tells a robot what to do.

The researchers tested models including Gemini-3-Pro, GPT-5.2, Claude Opus 4.5, Qwen3-235B and DeepSeek-V3.1. The benchmark covers seven manipulation tasks, from simple cube lifting to bimanual coordination.

The work matters because robot control is not just another coding task. A generated program has to connect language, perception, geometry and physical action. A small coding mistake can become a failed grasp, a missed object or a movement that does not complete the intended task.

Why Building Blocks Matter

The strongest lesson from CaP-X is that model performance depends heavily on the abstractions available to the coding agent. When the model can use pre-built commands such as "grasp object X and lift it," its job is mostly to choose and order the right actions.

When those higher-level commands are removed, the task changes. The model must work with lower-level pieces such as image segmentation, depth processing, grasp planning and inverse kinematics. What was once one convenient function call becomes a longer chain of code that has to be assembled correctly.

That shift causes success rates to fall sharply. The problem is not only whether a model understands the instruction. It also has to manage the technical details that human engineers usually hide behind reusable robotics interfaces.

In practical terms, CaP-X suggests that strong language models still benefit from human-designed software structure. Robot control through code becomes more dependable when the model is not forced to rediscover every low-level step from scratch.

Images Alone Do Not Solve The Problem

The study also found that giving raw camera images directly to the models makes performance worse. The researchers point to a likely cross-modal alignment problem: foundation models are rarely trained to reason at the same time about code and physical robot execution.

A more effective approach is the "Visual Differencing Module." In this setup, a separate vision-language model first turns the scene into structured text. It identifies task-relevant properties, then reports after each execution step what changed in the image and whether the task is complete.

That text becomes the basis for the coding agent’s next action. According to the source, this approach consistently performs better than raw console output and direct image input.

The implication is straightforward: for robot control, vision may be more useful to a coding model when it is translated into concise operational feedback. The agent does not need every pixel in context. It needs a clear report of what is present, what changed and whether the goal has been reached.

How CaP-Agent0 Narrows The Gap

Based on these findings, the researchers built CaP-Agent0, a training-free system with three main components. It uses the "Visual Differencing Module," builds a reusable function library from successful runs and generates multiple code candidates in parallel.

The function library is important because it lets the system carry forward useful helper functions, including coordinate transformations and grasp pose filtering. Instead of treating each attempt as isolated, the system accumulates working pieces that can support later tasks.

The parallel generation step creates nine solution candidates at the same time. These can come from one model using different temperatures or be distributed across Gemini-3-Pro, GPT-5.2 and Claude Opus 4.5. A supervisory agent then combines the candidates into a final solution.

With this scaffolding, CaP-Agent0 matches or beats human-written code on four of seven tasks, even though it relies on low-level building blocks. That does not erase the earlier finding that single-attempt frontier models fall short. It shows that an agentic workflow can make a major difference.

The researchers also compared CaP-Agent0 with trained Vision-Language-Action models. These models control robots through learned motion patterns from large demonstration datasets rather than code. On the LIBERO-PRO benchmark, CaP-Agent0 performed similarly to Physical Intelligence's VLA model pi0.5 on position changes.

When instructions were rephrased, CaP-Agent0 was significantly more robust, according to the team. The stated reason is that it interprets instructions directly instead of depending on a specific training distribution.

Reinforcement Learning Adds Another Path

CaP-X also includes CaP-RL, a reinforcement learning method for improving language models at robot control. The training signal comes from physics simulations: when generated code creates a successful robot movement, the model receives positive feedback.

A Qwen2.5-Coder-7B model trained this way improved its cube stacking success rate from 4 to 44 percent in simulation. On a real Franka robot, the same model reached 76 percent without additional fine-tuning.

The source explains that this transfer works because the model optimizes through abstract programming interfaces rather than camera images. As a result, the visual gap between simulation and reality has much less impact.

The broader direction is a hybrid system. In that model, coding agents handle high-level task logic and recovery, while specialized vision-language-action policies handle fine-grained motor control. The full CaP-X framework, including CaP-Gym, CaP-Bench, CaP-Agent0 and CaP-RL, is available as an open-access platform for the research community.

← Back to the wire

Read next