InnateCoder: Learning Programmatic Options with Foundation Models
Rubens O. Moraes, Quazi Asif Sadmine, Hendrik Baier, Levi H. S. Lelis
TL;DR
InnateCoder addresses the sample-inefficiency of deep reinforcement learning by using foundation models to extract programmatic options before environment interaction. It decomposes model-generated policies into sub-programs (options) and induces a semantic space over a domain-specific language by replacing sub-trees with options, enabling a mixed syntax-semantic search via stochastic hill climbing. Empirically, InnateCoder achieves superior sample efficiency on MicroRTS and Karel and can scale to thousands of options, outperforming baselines that learn options from environment or rely solely on the foundation model's direct policies. The approach is lightweight and broadly applicable, highlighting foundation models as a practical pre-processing step to bootstrap planning with large, diverse option libraries, and it achieves competitive or superior results against state-of-the-art competition policies.
Abstract
Outside of transfer learning settings, reinforcement learning agents start their learning process from a clean slate. As a result, such agents have to go through a slow process to learn even the most obvious skills required to solve a problem. In this paper, we present InnateCoder, a system that leverages human knowledge encoded in foundation models to provide programmatic policies that encode "innate skills" in the form of temporally extended actions, or options. In contrast to existing approaches to learning options, InnateCoder learns them from the general human knowledge encoded in foundation models in a zero-shot setting, and not from the knowledge the agent gains by interacting with the environment. Then, InnateCoder searches for a programmatic policy by combining the programs encoding these options into larger and more complex programs. We hypothesized that InnateCoder's way of learning and using options could improve the sampling efficiency of current methods for learning programmatic policies. Empirical results in MicroRTS and Karel the Robot support our hypothesis, since they show that InnateCoder is more sample efficient than versions of the system that do not use options or learn them from experience.
