Co-Evolving Policy and Reward for Code Generation: A Mechanistic Study of Single-Adapter Drift
Not on the map. Why?
Abstract (arXiv)
Reinforcement learning with verifiable rewards (RLVR) is particularly well suited to code generation because generated programs can be objectively evaluated through execution. Execution also provides behavioral information that can be reused as additional supervision. The Synergistic Policy and Reward Co-Evolving Framework (SPARK), originally proposed for reasoning tasks, exploits this idea by recycling training rollouts and their evaluation results to train a model not only to generate solutions but also to evaluate and improve them. We investigate whether this policy-reward co-evolution approach transfers effectively to code generation and whether execution-grounded reflection provides an additional source of self-improvement. We compare SPARK-style rollout recycling with execution-only Group Relative Policy Optimization (GRPO) using Qwen2.5-Coder-3B-Instruct. Our results do not support either hypothesis under the configuration tested. Although co-evolution improves training performance, these gains do not generalize to held-out problems. Compared at the same stage of training, rollout recycling produces roughly 34x greater KL divergence from the reference policy than execution-only GRPO. Over training, trained tokens per GRPO sequence fall from 185 to 86 as training pass rate increases, while held-out performance declines or fails to sustain early gains. We characterize these patterns as single-adapter policy drift: the shared trainable parameters increasingly depart from pretrained code-generation behavior without corresponding gains in generalization. The results show that higher training reward alone is not evidence of generalizable code self-improvement and highlight the importance of held-out evaluation and drift diagnostics.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 20 of its 22 references that are in the map. Submitted 19 Oct 2026.
Builds on
20 of 22 references.
References · 20
- 2022Training language models to follow instructions with human feedbackcited by 16,493
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,963
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,810
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
- 2021Program Synthesis with Large Language Modelscited by 3,972
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,620
- 2023Code Llama: Open Foundation Models for Codecited by 2,242
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,241
- 2023Teaching Large Language Models to Self-Debugcited by 1,049
8 more
- 2024Self-Rewarding Language Modelscited by 745
- 2024Training Language Models to Self-Correct via Reinforcement Learningcited by 456
- 2025Co-Evolving LLM Coder and Unit Tester via Reinforcement Learningcited by 60
- 2025SPARK: Synergistic Policy And Reward Co-Evolving Frameworkcited by 11
- 2025Cooper: Co-Optimizing Policy and Reward Models in Reinforcement Learning for Large Language Modelscited by 7
- 2026ACE: Self-Evolving LLM Coding Framework via Adversarial Unit Test Generation and Preference Optimizationcited by 6
- 2026GASP: Guided Asymmetric Self-Play For Coding LLMscited by 5
- 2026Anchored Self-Play for Code Repaircited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025MURPHY: Feedback-Aware GRPO with Retrospective Credit Assignment for Multi-Turn Code Generation
- 2026TaPR: Test-Aware Policy Refinement for Feedback-Conditioned Code Generation
- 2026RLPF: Reinforcement Learning from Performance Feedback for Code Generation
- 2026Beyond Execution: Static-Analysis Rewards and Hint-Conditioned Diffusion RL for Code Generation
- 2025ReVeal: Self-Evolving Code Agents via Reliable Self-Verification
- 2024Process Supervision-Guided Policy Optimization for Code Generation
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization
- 2026Improving Small Language Models for Code Generation with Reinforcement Learning from Verification Feedback