# RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning

- **ID:** 923
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2410.02089
- **Authors:** Jonas Gehring, Kunhao Zheng, Jade Copet, Vegard Mella, Quentin Carbonneaux, Taco Cohen, Gabriel Synnaeve
- **Venue:** arXiv 2410.02089
- **Publisher:** arXiv 2410.02089
- **Published:** 2024
- **Source:** arxiv
- **Access:** open arXiv PDF/abs
- **License:** arXiv non-exclusive
- **License family:** Other (auto-classified)
- **Tags:** rlef, code, rl, execution-feedback, llama3, arxiv:2410.02089
- **Topics:** code LLMs; RL with execution feedback
- **Added:** 2026-10-02
- **Page:** https://papers.projxon.ai/entries/923

## Summary

Meta RLEF fine-tunes Llama 3 with PPO using public-test execution feedback; Llama 3.1 70B CodeContests improve from ~27.5% to ~40.1% (1@3). Cited by Philipp Schmid LinkedIn re Anthropic coding quality.

## Attributes

- **Purpose:** Ground code LLMs in execution feedback via RL (RLEF) on CodeContests-style tasks
- **Scale:** Llama 3 8B/70B; CodeContests eval
- **Domain:** code LLMs; RL with execution feedback
- **Used for:** Code RL; execution-feedback post-training
- **Time period:** arXiv 2024-10; Discord LinkedIn mid 2024-11-06
- **Author type:** industry research (Meta)

## From the source (fetched 2026-10-03)

- **Published:** Oct 2, 2024 (arXiv)
- **Last revised:** Feb 18, 2025 (arXiv)
- **arXiv categories:** cs.CL, cs.AI (arXiv)
- **Author comment:** Add repair model ablation, update related work (arXiv)
- **Citations:** 181 (6 influential) (Semantic Scholar)
- **References:** 52 (Semantic Scholar)
- **Published in:** International Conference on Machine Learning (Semantic Scholar)

## Abstract

Large language models (LLMs) deployed as agents solve user-specified tasks over multiple steps while keeping the required manual engagement to a minimum. Crucially, such LLMs need to ground their generations in any feedback obtained to reliably achieve the desired outcomes. We propose an end-to-end reinforcement learning method for teaching models to leverage execution feedback in the realm of code synthesis, where state-of-the-art LLMs struggle to improve code iteratively compared to independent sampling. We benchmark on competitive programming tasks, where we achieve new state-of-the art results with both small (8B parameters) and large (70B) models while reducing the amount of samples required by an order of magnitude. Our analysis of inference-time behavior demonstrates that our method produces LLMs that effectively leverage automatic feedback over multiple steps.

## Research notes

- Resolved from LinkedIn philipp-schmid Anthropic-coding post (Discord mid 1303849791200956487). Primary: arXiv abs.

## Cites, within this collection

- [Training Language Models to Self-Correct via Reinforcement Learning](https://papers.projxon.ai/entries/915) (paper 2024, #915)

## Cited by, within this collection

- [Self-Policy Distillation via Capability-Selective Subspace Projection](https://papers.projxon.ai/entries/516) (paper 2026, #516)

## Similar entries

- [Extrapolative Weight Averaging Reveals Correctness-Efficiency Frontiers in Code RL](https://papers.projxon.ai/entries/778) (paper, #778)
- [Harness Learning Enables Generalizable Test-Time Adaptation](https://papers.projxon.ai/entries/851) (paper, #851)
- [Reinforcement Learning for Code Optimization](https://papers.projxon.ai/entries/779) (paper, #779)
- [AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents](https://papers.projxon.ai/entries/1211) (paper, #1211)
- [Reward design lessons from 7,780 MiMo RL environments (X thread)](https://papers.projxon.ai/entries/794) (thread, #794)
- [Orbit: Stable and Efficient Reinforcement Learning for Trillion-Parameter LLMs](https://papers.projxon.ai/entries/1120) (code, #1120)
