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

Embeds an agent's reasoning together with its search query to improve retrieval. Trains a 4B embedding model on synthesized deep-research trajectories, helping preserve intent across multi-step searches.

Trains an 8B model to search, synthesize evidence, and write cited research reports. Its reinforcement-learning rewards use evolving rubrics grounded in retrieved evidence and contrasting model responses.

Trains long-horizon web researchers by combining agentic mid-training, synthetic trajectories, and reinforcement learning. A 30.5B-parameter model activates 3.3B parameters per token and learns to plan, search, and synthesize evidence.