Searching for Programmatic Policies in Semantic Spaces
Not on the map. Why?
Abstract (arXiv)
Syntax-guided synthesis is commonly used to generate programs encoding policies. In this approach, the set of programs, that can be written in a domain-specific language defines the search space, and an algorithm searches within this space for programs that encode strong policies. In this paper, we propose an alternative method for synthesizing programmatic policies, where we search within an approximation of the language's semantic space. We hypothesized that searching in semantic spaces is more sample-efficient compared to syntax-based spaces. Our rationale is that the search is more efficient if the algorithm evaluates different agent behaviors as it searches through the space, a feature often missing in syntax-based spaces. This is because small changes in the syntax of a program often do not result in different agent behaviors. We define semantic spaces by learning a library of programs that present different agent behaviors. Then, we approximate the semantic space by defining a neighborhood function for local search algorithms, where we replace parts of the current candidate program with programs from the library. We evaluated our hypothesis in a real-time strategy game called MicroRTS. Empirical results support our hypothesis that searching in semantic spaces can be more sample-efficient than searching in syntax-based spaces.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 13 of its 31 references that are in the map. First posted on arXiv 8 May 2024.
Builds on
13 of 31 references.
References · 13
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2017A Unified Game-Theoretic Approach to Multiagent Reinforcement Learningcited by 268
- 2018Programmatically Interpretable Reinforcement Learningcited by 193
- 2018Verifiable Reinforcement Learning via Policy Extractioncited by 177
- 2020DreamCoder: Growing generalizable, interpretable knowledge with wake-sleep Bayesian program learningcited by 161
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
- 2022Top-Down Synthesis for Library Learningcited by 58
- 2022babble: Learning Better Abstractions with E-Graphs and Anti-Unificationcited by 23
- 2023Hierarchical Programmatic Reinforcement Learning via Learning to Compose Programscited by 20
- 2022What can we Learn Even From the Weakest? Learning Sketches for Programmatic Strategiescited by 11
- 2023Choosing Well Your Opponents: How to Guide the Synthesis of Programmatic Strategiescited by 8
- 2017Combinatorial Multi-armed Bandits for Real-Time Strategy Gamescited by 7
1 more
Built on by
Citing papers per year: 2024: 2; 2025: 1; 2026: 2.
5 papers.
- 2024Synthesizing Programmatic Reinforcement Learning Policies with Large Language Model Guided Searchcited by 13
- 2024From Code to Play: Benchmarking Program Search for Games Using Large Language Modelscited by 5
- 2025InnateCoder: Learning Programmatic Options with Foundation Modelscited by 2
- 2026Scheduling That Speaks: An Interpretable Programmatic Reinforcement Learning Frameworkcited by 0
- 2026DiPRL: Learning Discrete Programmatic Policies via Architecture Entropy Regularizationcited by 0
- 2026DiPRL: Learning Discrete Programmatic Policies via Architecture Entropy Regularization18 May 2026
- 2026Scheduling That Speaks: An Interpretable Programmatic Reinforcement Learning Framework18 May 2026
- 2025InnateCoder: Learning Programmatic Options with Foundation Models18 May 2025
- 2024From Code to Play: Benchmarking Program Search for Games Using Large Language Models5 Dec 2024
- 2024Synthesizing Programmatic Reinforcement Learning Policies with Large Language Model Guided Search26 May 2024