Papers › CodeIt: Self-Improving Language Models with Prioritized Hindsight Replay
CodeIt: Self-Improving Language Models with Prioritized Hindsight Replay
Natasha Butt, Blazej Manczak, Auke Wiggers, Corrado Rainone, David W. Zhang, Michaël Defferrard, Taco Cohen
Large language models are increasingly solving tasks that are commonly believed to require human-level reasoning ability. However, these models still perform very poorly on benchmarks of general intelligence such as the Abstraction and Reasoning Corpus (ARC). In this paper, we approach ARC as a programming-by-examples problem, and introduce a novel and scalable method for language model self-improvement called Code Iteration (CodeIt). Our method iterates between 1) program sampling and hindsight relabeling, and 2) learning from prioritized experience replay. By relabeling the goal of an episode (i.e., the target program output given input) to the realized output produced by the sampled program, our method effectively deals with the extreme sparsity of rewards in program synthesis. Applying CodeIt to the ARC dataset, we demonstrate that prioritized hindsight replay, along with pre-training and data-augmentation, leads to successful inter-task generalization. CodeIt is the first neuro-symbolic approach that scales to the full ARC evaluation dataset. Our method solves 15% of ARC evaluation tasks, achieving state-of-the-art performance and outperforming existing neural and symbolic baselines. Our code is available at https://github.com/Qualcomm-AI-research/codeit .
In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.04858")
Code
Syntology Ran 32 of 41 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 4 ran · honoured contract; 2 ran · violated contract; 16 ran · our draft was wrong; 6 ran · fixture could not drive it; 4 ran with no contract checked.
By repository: official repository: 41 samples from 1 repository, 32 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
41 samples harvested; 32 ran; 4 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.
Licence: 41 of the 41 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from Qualcomm-AI-research/codeit. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.
Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
5a889f45ec35ace2 · report
0ca10f7987f7e3f5 · report
3215558dec21b76e · report
663e3c33f8beaa30 · report
a792436574cb8a36 · report
bdff87a4c2b09334 · report
ad432ec024f7e66d · report
fa8e1aaf26bd9cad · report
d440e9a190ac2556 · report
48365ca029cd4ade · report
ca56e081f31c0018 · report
3a16b6289b603c98 · report
f2e43abb4b090b39 · report
4054c380d9c1a16c · report
ffe7482ebd5d840d · report
27064c0c54006326 · report
113c9f4b6c4a8053 · report
d34bd77f1580bc22 · report
2a25b9259dde5c3a · report
5824e673c05bbd51 · report
965ff5003da35606 · report
258eb81b564d0b3f · report
30ccff49d96c238b · report
46be79408beca620 · report
e017b07e36a77f43 · report
9c35b11d97682173 · report
06dd5bc91255c2eb · report
0b37eaf28f553e13 · report
9b827c28751c700d · report
720842f503a718ef · report
35a3a514964eb409 · report
b08a4ca506072484 · report
cc17c7829a24c82e · report
0232d1b03729354b · report
12ead3ea3a548d6c · report
a9fe63eda6190bfc · report
dab2d7cbaed329ce · report
35f2d5afe53e1635 · report
b2a254a4a76ff136 · report
5761dc5c761194fc · report
5025771c421695db · report
Tasks
Results from the paper archive 2025-07-28
No leaderboard rows for this paper in the archive.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections