Skip to content
AI News HubLIVE
Original source2 min read

RLPF: Reinforcement Learning from Performance Feedback for Code Generation

Summary

Code models are increasingly trained with execution feedback, but most signals stop at correctness. RLPF turns execution outcomes into a staged reward: failed programs are ordered by execution progress, while correct programs are ranked by relative improvement toward an expert reference. Fine-tuning Qwen3-32B on PerfCodeBench lifts correct-and-runnable solutions from 11.1% to 54.6% and relative efficiency from 8.1% to 38.6%.

SourcearXiv Machine LearningAuthor: Huihao Jing, Haozhe Cui, Wenbin Hu, Shaojin Chen, Haochen Shi, Changxuan Fan, Yuxuan Liu, Hanyu Yang, Sirui Zhang, Ziyi Chen, Haoran Li, Yangqiu Song
RLPF: Reinforcement Learning from Performance Feedback for Code Generation
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

[Submitted on 29 Jul 2026]

Title:RLPF: Reinforcement Learning from Performance Feedback for Code Generation

View a PDF of the paper titled RLPF: Reinforcement Learning from Performance Feedback for Code Generation, by Huihao Jing and 11 other authors

View PDF HTML (experimental)

Abstract:Code models are increasingly trained with execution feedback, but most training signals still stop at correctness. This leaves an important gap for systems code: two programs can pass the same tests while differing greatly in runtime. We study how to train code agents to prefer faster correct implementations, rather than treating efficiency only as an evaluation metric. The key difficulty is that runtime is a fragile reward. It is meaningful only after a program is correct, varies across tasks, and gives little guidance when most sampled programs fail to compile or run. We propose \textbf{RLPF}, reinforcement learning from performance feedback, which turns execution outcomes into a staged reward. Failed programs are ordered by execution progress, while correct programs are ranked by their relative improvement from the baseline toward the expert reference. This gives useful feedback before correctness and performance-sensitive feedback after correctness. Fine-tuning Qwen3-32B with RLPF on PerfCodeBench raises correct-and-runnable solutions from $11.1\%$ to $54.6\%$ and improves relative efficiency from $8.1\%$ to $38.6\%$. The trained model becomes competitive with stronger open-weight systems, and its optimization behavior transfers modestly to EffiBench-X. Additional studies show that model-generated references provide useful but weaker supervision, and that the full composite reward is more reliable than correctness-only or runtime-only baselines. These results suggest that code agents can be trained not only to pass tests, but also to optimize the programs they write.

Subjects:

Machine Learning (cs.LG); Software Engineering (cs.SE)

Cite as: arXiv:2607.27271 [cs.LG]

(or arXiv:2607.27271v1 [cs.LG] for this version)

https://doi.org/10.48550/arXiv.2607.27271

arXiv-issued DOI via DataCite

Submission history

From: Huihao Jing [view email] [v1] Wed, 29 Jul 2026 11:39:55 UTC (1,200 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled RLPF: Reinforcement Learning from Performance Feedback for Code Generation, by Huihao Jing and 11 other authors

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.LG

new | recent | 2026-07

Change to browse by:

cs cs.SE

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

IArxiv recommender toggle

IArxiv Recommender (What is IArxiv?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

Key points and analysis

Article intelligence

EngineersAdvanced

Key points

  • RLPF uses staged rewards: failed programs ordered by execution progress, correct programs ranked by improvement toward an expert baseline.
  • Fine-tuning Qwen3-32B with RLPF on PerfCodeBench raises correct-and-runnable solutions from 11.1% to 54.6% and relative efficiency from 8.1% to 38.6%.
  • The trained model becomes competitive with stronger open-weight systems and transfers modestly to EffiBench-X.
  • The composite reward is more reliable than correctness-only or runtime-only baselines.

Highlights and analysis are generated automatically and may contain errors. Check the original source.