AGAR: a reinforcement learning substrate for LLM program evolution

Haoran Li, Zengle Ge, Xiaomin Yuan, Yui Lo, Haoxin Li +9 more
10/6/2026
cs.AIcs.MA
rl

No confident code implementation found for this paper.

Abstract

Given a task and an evaluator, a language model can rewrite a candidate program while a search loop decides which rewrites survive, offering a practical route to algorithm discovery. But that loop is governed by five constants set by hand: which parent to select, how hard to mutate, how to keep diversity, what to remember, and a scalar score that never says which part of the program earned it.

Show full abstract

Reinforcement learning already has an estimator for each. The obstacle is that program evolution is not usually written down as a decision process. We formalize it as a Markov decision process whose action is the modular prefix the model is conditioned on, rather than the program it emits. Credit assignment, value estimation, adaptive exploration, and experience memory can then attach to distinct components. AGAR (Algorithm Generation As RL) provides the resulting substrate: any estimator can be replaced or switched off without changing the controller, making the transfer auditable one mechanism at a time, with no gradient training of the backend model. Across 19 tasks, two backends, and three seeds under one harness, AGAR improves on the stronger of two published baselines on most tasks, with gains concentrated in the competitive-programming family. The formalization also yields a checkable reading of prior work: these systems are implicitly zero-discount, not by choice, but because fitness is exogenous to an individual rather than a return over successors, leaving a discount factor nothing to act on.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026agar,
  title  = {AGAR: a reinforcement learning substrate for LLM program evolution},
  author = {Haoran Li and Zengle Ge and Xiaomin Yuan and Yui Lo and Haoxin Li and Songlin Zhou and Qianhui Liu and Jiahua Ying and Yuanhang Liu and Mingju Chen and Annan Li and Jianmin Wu and Dawei Yin and Dou Shen},
  year   = {2026},
  eprint = {2610.09215},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.09215v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.09215.svg)](https://codeofpaper.com/paper/2610.09215)

Discussion