reinforcement-learning-for-code-optimization-96fea7a5·1 events·first seen Aliases: Reinforcement Learning for Code Optimization
A new arXiv preprint addresses the challenge of extending RL-based code generation to code optimization, where execution time is added to the reward signal. The authors identify three failure modes (measurement noise, reward sparsity, GRPO instability) and propose a three-stage solution: a new benchmark (DMC-Optim) with calibrated timing, a composed correctness-plus-speed reward with offline simulator, and adapted GRPO training. On Qwen 2.5 7B and CWM 32B, strict top-50% pass@1 improves from 18.0% to 31.3% and 30.7% to 50.4% respectively, with larger gains at stricter percentiles, while preserving correctness scores.