cd /news/machine-learning/function-level-execution-feedback-fo… · home topics machine-learning article
[ARTICLE · art-111231] src=arxiv.org ↗ pub= topic=machine-learning verified=true sentiment=· neutral

Function-Level Execution Feedback for Code Preference Optimization

Researchers 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. Evaluated on HumanEval(+), MBPP(+), BigCodeBench, and LiveCodeBench, STEP-KTODER improves over outcome-only KTO and DPO. The study finds that execution-based labels are essential, as LLM-as-a-judge annotations systematically over-predict function failures and degrade downstream optimization.

read1 min views1 publishedAug 26, 2026

arXiv:2608.23632v1 Announce Type: new Abstract: 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.

── more in #machine-learning 4 stories · sorted by recency
── more on @step-ktoder 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/function-level-execu…] indexed:0 read:1min 2026-08-26 ·