AIAny

Code as Policies: Language Model Programs for Embodied Control

Turns language commands into executable robot policies that combine perception, control APIs, loops, and geometry libraries. Hierarchical code generation recursively fills in missing functions to support new behaviors without policy retraining.

Introduction

A robot can understand an instruction yet lack a prebuilt skill that implements it. The key move here is to let generated code express the missing control logic: language selects the behavior, while Python supplies feedback loops, numerical operations, and reusable functions.

Key Findings
  • Few-shot examples connect instructions to perception and control APIs, allowing new commands to change both action sequences and policy parameters.
  • Recursive generation of undefined functions makes complex policies compositional; the same technique reaches 39.8% pass@1 on HumanEval.
  • Demonstrations span tabletop manipulation, drawing, and mobile robots, showing that the representation can work across different action interfaces.
Who Should Read It

A useful starting point for robotics researchers exploring language-conditioned control and program synthesis. Adapting it requires available perception and control APIs; the paper does not establish reliable open-world operation. Quantitative robot evaluation covers constrained simulated tasks, while the physical robot results demonstrate capabilities.

Information

  • Websitearxiv.org
  • OrganizationsRobotics at Google
  • AuthorsJacky Liang, Wenlong Huang, Fei Xia, Peng Xu, Karol Hausman, Brian Ichter, Pete Florence, Andy Zeng
  • Published date2022/09/16

More Items

Trains a vision-language model to gather visual evidence, combine tool outputs, and revise decisions using execution feedback. Supervised fine-tuning and agentic reinforcement learning help it transfer to embodied tasks without simulator rollouts during post-training.

Evaluates how accurately and quickly GUI agents locate interface targets against expert completion times. Across 9,160 tasks, it finds the largest agent–human gaps in complex, time-sensitive scenarios.

Plans real-city events from natural-language requests and geospatial data, then generates video from street or aerial viewpoints. Edited reference images define the event’s extent and stages before the world model synthesizes its dynamics.