arXiv:2609.38733v1 Announce Type: new Abstract: Recent LLM-based approaches to control either invoke a language model to select actions or synthesize world models that require planning at every decision, introducing latency that can limit real-time use. We introduce Code to Control, an approach that synthesizes Python controllers which execute directly as policies. Code to Control separates program structure from parameters. An LLM synthesizes the controller structure, while derivative-free search fits its parameters for continuous control using feedback from the environment. Once learned, the resulting controllers require neither LLM inference nor planning at decision time, enabling real-time gameplay and, under our timing protocol, faster action selection than a PPO policy. Across a suite of Atari games, Flappy Bird, and MuJoCo tasks, Code to Control outperforms planning-based program synthesis methods, remains competitive with deep reinforcement learning while using fewer environment interactions, transfers across substantial changes in environment dynamics, and scales to complex locomotion tasks.
Code to Control: Synthesizing Parameterized Reactive Controllers
Researchers introduced Code to Control, an approach that synthesizes Python controllers executing directly as policies, separating program structure from parameters so an LLM builds the controller structure while derivative-free search fits its parameters for continuous control. Once learned, the controllers require neither LLM inference nor planning at decision time, enabling real-time gameplay and, under the authors' timing protocol, faster action selection than a PPO policy. Across Atari games, Flappy Bird, and MuJoCo tasks, Code to Control outperforms planning-based program synthesis methods, remains competitive with deep reinforcement learning using fewer environment interactions, transfers across substantial changes in environment dynamics, and scales to complex locomotion tasks.
Run your AI side-project on zahid.host
EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.