# Extrapolative Weight Averaging Reveals Correctness–Efficiency Frontiers in Code RL

*Kunhao Zheng, Juliette Decugis, Pierre Chambon, Jonas Gehring, Taco Cohen, Benjamin Negrevergne, Gabriel Synnaeve*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151744) · [OpenReview](https://openreview.net/forum?id=YRDiKZgtA9) · [alphaXiv](https://www.alphaxiv.org/abs/2605.28751) · [Open on the map](../papers.html#p151744)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [LLM-Driven Tool-Use and Planning](../pgroup/691.md) · Type: new method · Keywords: code reinforcement learning, checkpoint interpolation, extrapolation, correctness-efficiency frontier, inference-time scaling, competitive programming

Areas: [LLM Reasoning](../areas/reasoning.md) › Reasoning Strategies › Reinforcement Learning for Reasoning; [Code & Coding Agents](../areas/codegen.md) › Code Generation and Optimization › Code Generation

## Summary
Extrapolative weight averaging extends correctness-efficiency frontiers in code RL, enabling complementary checkpoints that improve inference-time performance without additional training.

## Explained to a 5-year-old
We teach a computer program to solve coding puzzles. We make several versions of the program that are good at solving many puzzles but maybe slow. We also make versions that are fast but solve fewer puzzles. By mixing these versions together, and even going a little beyond simple mixing, we get new versions that can solve more puzzles. This helps the program solve more problems when we use it in real life.

## Explained to a 5-year-old, longer
We teach a computer program to solve coding puzzles like those on a game. The program learns to solve many puzzles, but sometimes it takes a long time. Other versions of the program learn to solve puzzles quickly, but they only get a few right. We create a bunch of different versions, each with its own strengths and weaknesses. By putting two versions together, we can get a new version that tries to be both fast and accurate. Sometimes just mixing them works, but we can also push the mix a bit further to get even better results. This extra push helps the new version solve more puzzles than either version alone. When we use many such improved versions together, they cover more problems and solve them more often. This makes the overall system better at solving coding challenges without needing to train new models. The new versions act like helpful teammates, each bringing a different skill to the table. By combining them, we get a stronger team that can tackle harder puzzles and finish faster.

## For a technical reader
The work explores how combining model checkpoints can improve performance trade-offs in reinforcement learning for code. By training checkpoints under varying test coverage, a frontier between correctness and efficiency emerges. Linear interpolation already captures this frontier, but extrapolation can push it further, yielding complementary policies. Ensembles of these extrapolated checkpoints improve benchmark scores without extra training. The approach is evaluated across reasoning, tool use, and agentic coding settings, showing consistent gains.

## Problem
In reinforcement learning, it is unclear whether extrapolating between model checkpoints can achieve better trade-offs between correctness and efficiency than simply interpolating, especially when no additional training is performed.

## Method
The authors train multiple checkpoints under nested unit-test coverage, creating a sweep that reveals a correctness-efficiency frontier. They then combine these checkpoints using linear interpolation and extrapolation to navigate and extend the frontier, evaluating ensembles at inference time.

## Results
Ensembles of extrapolated checkpoints broaden coverage and achieve a 3.3% improvement in pass@250 on the LCB/hard benchmark compared to the best single checkpoint under the same sample budget.

## Contributions
The paper demonstrates that nested unit-test coverage in code RL induces a correctness-efficiency frontier and that extrapolative weight averaging can navigate, extend, and exploit this frontier to produce complementary policies for inference-time scaling.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151744)
