atlas

Research map / Large language models / Agents, code and math

Synthesizing Programmatic Reinforcement Learning Policies with Large Language Model Guided Search

ICLR 2025 · Large language models › Agents, code and math · approach: LLM-guided program synthesis · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LLM-GS, which prompts GPT-4 to write Python programs that are converted to Karel DSL, then refines them with Scheduled Hill Climbing to cut the program-environment interactions needed for programmatic RL.

Problem

Programmatic reinforcement learning (PRL) policies in DSLs such as Karel need tens of millions of program-environment interactions with search methods, which is too sample-inefficient for practical use.

Approach

Use an LLM (GPT-4) with domain- and task-aware prompts to generate Python programs that are converted into DSL programs (Pythonic-DSL strategy), then seed a hill-climbing search whose neighborhood size is scheduled from small to large (Scheduled HC).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Generate Python programs and convert them to DSL instead of directly generating Python or DSL (ablation)LLM-GS program generation · Karel tasksacceptance rateHelped
Generate Python programs and convert them to DSL instead of directly generating Python or DSL (ablation)LLM-GS program generation · Karel tasksbest returnMixed
Use Scheduled Hill Climbing instead of fixed-neighborhood search (ablation)LLM-initialized program search · DoorKey and CleanHousesample efficiencyHelped
Initialize Scheduled Hill Climbing with LLM-generated programs instead of randomly sampled programs (ablation)Scheduled Hill Climbing · DoorKey and CleanHousesample efficiencyHelped
Continue LLM program revision beyond the first two rounds (ablation)LLM program revision · DoorKeyepisodic returnNo clear effect
Use LLM-GS instead of Hill ClimbingProgrammatic RL · Karel taskssample efficiencyHelped
Use LLM-GS instead of Hill ClimbingProgrammatic RL · Novel Karel taskssample efficiencyHelped
Adapt LLM-GS prompts and DSL for MinigridLLM-GS · Minigrid taskssample efficiencyHelped

Surprising findings

Limitations

Experimental setup

Datasets: Karel tasks Karel-Hard tasks Minigrid LavaGap Minigrid PutNear Minigrid RedBlueDoor

Benchmarks: Karel Karel-Hard PathFollow WallAvoider Minigrid LavaGap Minigrid PutNear

Metrics: average episodic return vs. number of programs evaluated acceptance rate best return

Baselines: LEAPS HPRL CEBS Hill Climbing CEM

Builds on: hill climbing LEAPS CEBS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy