# Robots run on plain Python code from GPT-6.1 succeed twice as often as pi0.5

A coding agent turned 50 recorded demonstrations per task into plain Python robot programs. On real robots and the RoboTwin 2.0 benchmark, they beat neural policies on average.

- Category: Robotics
- Readiness level: II (Benchmarked) on Science Underway's four-step scale, as proposed
- Published: 2026-12-03
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/robots-run-on-plain-python-code-from-gpt-6-1-succeed-twice-as-often-as-pi0-5

## The study

Pixel Code Policy: Discovering Simple Visuomotor Programs from Demonstrations (preprint, not peer reviewed). arXiv 2611.40331. https://arxiv.org/abs/2611.40331

## At a glance

- What it shows: An AI coding assistant watched 50 recordings of a robot doing a task, then wrote an ordinary computer program to do the same task. On 15 real robot tasks, these programs succeeded about twice as often as a leading AI robot model trained on the same recordings.
- What it does not show: It does not show the method working in a factory or warehouse, or with a cheaper coding model. The programs also needed rewriting when lighting or object colours changed.
- Why it matters: Robot control that runs as short, readable code on an ordinary processor is faster to run and easier to inspect and fix than a large AI model.

## What the study shows

Robots usually learn tasks from demonstrations through neural networks, software that learns patterns from data and is hard to inspect. This preprint, from Columbia University and the University of Illinois Urbana-Champaign, tries something else. It has not been peer reviewed.

The authors give a coding agent, a large language model that writes software, about 50 recorded demonstrations of one task. They used OpenAI's GPT-6.1 Sol, and GPT-6.2 Sol for three harder tasks. The agent writes a Python program in three parts: what to look at in the camera image, which motion to make, and which stage of the task the robot is in.

The programs use only classical image processing, such as colour filters, template matching and tracking of movement between frames. Motions are fitted to the demonstrations with simple statistics. No neural network runs while the robot works. Each call takes under 19 milliseconds on a desktop processor.

On 15 real-robot tasks, tested 20 times each from the same starting positions, the programs succeeded 84.7% of the time on average. π0.5, a large vision-language-action model (one that maps camera images and instructions to robot actions), scored 41.7% after the authors fine-tuned it on the same demonstrations. The programs matched or beat it on every task.

The gap was widest on precise tasks, such as pushing a narrow pin into a small hole, and on tasks that need memory. One memory task asks the robot to find the cup hiding a ball after a person shuffles three cups.

On the public RoboTwin 2.0 simulation benchmark, across all 50 tasks in its standard clean setting, the programs averaged 78%. π0.5 averaged 71% on the official leaderboard, and older neural methods scored lower. The programs were not better everywhere: π0.5 won on 18 of the 50 tasks.

## Our reading

In our reading, the main point is not that neural networks are obsolete. It is that a strong coding agent can do much of the engineering a robotics team would once have done by hand. It picks visual cues, fits motions and writes the task logic, and the result is small enough to read. The median program on RoboTwin was about 320 lines.

The real-world comparison is striking but narrow. It uses one baseline, tuned by the authors, and 20 trials per task. The benchmark comparison is looser still. The leaderboard models used different cameras and a different way of commanding the arm, and π0.5 was trained on all 50 tasks at once.

On our readiness scale this sits at level II, benchmarked. The paper reports public RoboTwin 2.0 results. It points to a project page, but we found no linked release of code, generated programs or data, so level III is not yet met.

The rest of the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/robots-run-on-plain-python-code-from-gpt-6-1-succeed-twice-as-often-as-pi0-5

## How this was made

An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
