Meta Paper Reveals Why RL Fails at Code Optimization and How to Fix It
rohanpaul_ai · x · 2026-08-01
A new paper from Meta explains why applying reinforcement learning directly to code optimization usually fails: runtime is a sparse and noisy signal, and naive reward mechanisms often degrade code correctness.
The authors argue that the entire feedback path must be co-designed:
- Infrastructure: Scale up optimization tests and use a calibrated remote execution service for accurate timing.
- Rewards: Implement problem-relative ranking against human solutions with correctness-gated binary rewards.
- GRPO Updates: Stabilize training for noisy zero-advantage batches by increasing samples per prompt, enlarging batch sizes, dropping group variance normalization, and discarding stale timing data.
After rebuilding this full pipeline, the Qwen 2.5 7B model improved its success rate at the top-50% speed threshold significantly, jumping from 18.0% to 31.3%.
More from Research
- Zhipu releases GLM5.4, a 753B-parameter looping model claimed as largest ever — Madisonkanna · 2026-12-02
- Peer review with AI: if papers are AI-written, Q&A review by AI is fair game — murat_kocaoglu_ · 2026-12-02
- Why world models excel at locomotion but stumble on manipulation: the differentiable reward problem — KyleMorgenstein · 2026-12-02
- Inside GLM-5.4: the largest looping (recurrent-depth) model ever released — pavanjayasinha · 2026-12-02
- UNC's Wanda: agentic AI for neuroimaging validated on 123,000 brains — PTenigma · 2026-12-02
- Replicating Sierra's banking benchmark: τ-Voice tasks are unrealistic, thread shows — matthen2 · 2026-12-02