atlas

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

CodeIt: Self-Improving Language Models with Prioritized Hindsight Replay

ICML 2024 · Large language models › Agents, code and math · approach: LLM-guided program synthesis · 1 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 CodeIt, an expert-iteration loop that samples DSL programs from a CodeT5+ policy, relabels goals with realized outputs (hindsight), and trains with prioritized replay, solving 59/400 ARC evaluation tasks.

Problem

Solving ARC as programming-by-examples faces extremely sparse rewards and poor inter-task generalization; prior LLM and symbolic methods either don't use experience across tasks or scale poorly.

Approach

Combine expert iteration with hindsight relabeling (replace target outputs with realized program outputs so every valid program yields training data) and prioritized replay weighted by demonstration correctness, to avoid catastrophic forgetting while learning from all samples.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CodeIt instead of the Mutation d1 baselineARC program synthesis · ARC Eval Setpass@3 solved tasks: 42 / 400 -> 59 / 400Helped
Add policy feedback through Expert Iteration (ablation)CodeIt · ARC evaluationcumulative solved tasks: 45/400 -> 59/400Helped
Add hindsight relabeling instead of retaining only fully correct demonstration solutions (ablation)CodeIt · ARC evaluationcumulative solved tasks: 42/400 -> 59/400Helped
Prioritize replay-buffer experiences instead of sampling uniformly (ablation)CodeIt · ARC evaluationpolicy-only solved tasks: 38/400 -> 49/400Helped
Use a pretrained policy instead of randomly initialized weights (ablation)CodeIt · ARC evaluationcumulative solved tasks: 35/400 -> 59/400Helped
Use multiple demonstration examples rather than at most one (ablation)CodeIt · ARC evaluationcumulative solved tasks: 51/400 -> 59/400Helped
Add mutation-based training data augmentation (ablation)CodeIt · ARC evaluationcumulative solved tasks: 20/400 -> 59/400Helped

Surprising findings

Limitations

Experimental setup

Datasets: ARC training split ARC evaluation split ConceptARC

Benchmarks: ARC evaluation set (400 tasks) ARC Eval 412 ARC custom validation split ConceptARC

Metrics: pass@3 pass@1 cumulative performance policy performance

Baselines: GPT-4 direct prediction (Ho et al. / Bubeck-style LLM ARC) text-davinci-003 ARC LLM Mutation d1 baseline Mutation dinf baseline Random program baseline Icecuber-style symbolic search DreamCoder-style search

Builds on: expert iteration hindsight experience replay DreamCoder Hodel ARC DSL

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