mlsanityData to 7 Oct 2026

Function-Level Execution Feedback for Code Preference Optimization

arXiv 2608.23632 ↗First posted 23 Aug 2026cs.AI cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

Process supervision has improved mathematical reasoning, where intermediate steps are naturally expressed as chains of thought. In code generation, however, process supervision remains underexplored because there is no standard notion of a step. Supervision can target lines, reasoning traces, or program states, making it unclear what to label and optimize. We propose STEP-KTODER, a framework for code preference optimization that defines steps as module-level functions in decomposed multi-function programs and assigns binary correctness labels via automatically generated unit tests. Our method provides a code-specific instantiation of stepwise KTO, combining function-level process supervision with outcome-level feedback on the full program. We evaluate on HumanEval(+), MBPP(+), BigCodeBench, and LiveCodeBench, showing that STEP-KTODER improves over outcome-only KTO and DPO. Further analysis shows that execution-based labels are essential: LLM-as-a-judge annotations systematically over-predict function failures, corrupt positive step labels, and degrade downstream preference optimization. Code is available at: https://github.com/inechnech/STEP-KTODER.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 28 of its 34 references that are in the map. First posted on arXiv 23 Aug 2026.

Builds on

28 of 34 references.

References · 28

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  5. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  6. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  7. 2023Let's Verify Step by Stepcited by 3,598
  8. 2021Program Synthesis with Large Language Modelscited by 3,509
  9. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  10. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  11. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  12. 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
16 more
  1. 2021Measuring Coding Challenge Competence With APPScited by 879
  2. 2022Solving math word problems with process- and outcome-based feedbackcited by 871
  3. 2024Improve Mathematical Reasoning in Language Models by Automated Process Supervisioncited by 426
  4. 2022CodeT: Code Generation with Generated Testscited by 369
  5. 2024KTO: Model Alignment as Prospect Theoretic Optimizationcited by 256
  6. 2022Efficient Training of Language Models to Fill in the Middlecited by 248
  7. 2023TACO: Topics in Algorithmic COde generation datasetcited by 150
  8. 2025S*: Test Time Scaling for Code Generationcited by 95
  9. 2024CodeDPO: Aligning Code Models with Self Generated and Verified Source Codecited by 32
  10. 2025Dynamic Scaling of Unit Tests for Code Reward Modelingcited by 31
  11. 2024Process Supervision-Guided Policy Optimization for Code Generationcited by 25
  12. 2025Step-KTO: Optimizing Mathematical Reasoning through Stepwise Binary Feedbackcited by 22
  13. 2024Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generationcited by 21
  14. 2025Focused-DPO: Enhancing Code Generation Through Focused Preference Optimization on Error-Prone Pointscited by 14
  15. 2025Teaching Your Models to Understand Code via Focal Preference Alignmentcited by 10
  16. 2025Alignment with Fill-In-the-Middle for Enhancing Code Generationcited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026StepCodeReasoner: Aligning Code Reasoning with Stepwise Execution Traces via Reinforcement Learning
  2. 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensus
  3. 2026FunPRM: Function-as-Step Process Reward Model with Meta Reward Correction for Code Generation
  4. 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoning
  5. 2025Chain of Execution Supervision Promotes General Reasoning in Large Language Models
  6. 2025CodeTool: Enhancing Programmatic Tool Invocation of LLMs via Process Supervision
  7. 2024Code-Optimise: Self-Generated Preference Data for Correctness and Efficiency
  8. 2025Demystifying Errors in LLM Reasoning Traces: An Empirical Study of Code Execution Simulation