AI News selected for Professionals and Decision Makers
Primary Research Stream

Function-Level Execution Feedback for Code Preference Optimization

06:00 · August 26, 2026 · arXiv cs.AI RSS

Function-Level Execution Feedback for Code Preference Optimization

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.

Summary

The paper addresses a key limitation in aligning large language models for code generation. While process supervision has strengthened mathematical reasoning by labeling intermediate steps, code lacks a comparable standard for what constitutes a step. Existing preference optimization methods such as DPO and KTO therefore operate only at the level of complete programs, supplying a coarse signal that marks an entire output as undesirable even when most of its components are correct.

STEP-KTODER resolves this ambiguity by treating module-level functions as the atomic steps. Reference solutions are first decomposed into multi-function programs. Automatically generated unit tests then assign binary correctness labels to each function, while the original dataset tests continue to supply an outcome label for the full program. These labels are combined in a joint objective that extends KTO with an additional term for function-level supervision, reinforcing locally correct functions and penalizing locally incorrect ones during offline preference optimization.

Experiments on HumanEval(+), MBPP(+), BigCodeBench, and LiveCodeBench show consistent gains over outcome-only KTO and DPO baselines, including improvements of more than 25 percentage points on the hardest subsets of BigCodeBench and LiveCodeBench for already instruction-tuned models. Additional analysis indicates that execution-based labels are essential: replacing them with LLM-as-a-judge annotations systematically over-predicts function failures, corrupts positive step labels, and ultimately weakens the resulting policy.

Why it matters

This research provides a highly actionable and novel methodology for aligning code generation models, which is directly applicable to Dutch AI researchers and software-heavy enterprises. The open-source nature and rigorous mathematical foundation make it an excellent resource for advanced AI practitioners in the Netherlands looking to improve LLM coding capabilities.

More in this beat
Automata from Agent Traces: Failure and Next-Step Prediction

06:00 · August 26, 2026

Automata from Agent Traces: Failure and Next-Step Prediction

This research is highly relevant for Dutch AI researchers and practitioners focusing on AI safety and compliance with the EU AI Act. The proposed FSM-based monitoring offers a transparent, model-agnostic tool for auditing LLM agents and ensuring reliable deployment in enterprise environments.

Relevance 85 · Audience 95

Autonomous Mathematical Discovery in an Open-World Multi-Agent Environment

06:00 · August 26, 2026

Autonomous Mathematical Discovery in an Open-World Multi-Agent Environment

This article presents a breakthrough in autonomous AI-driven scientific discovery using multi-agent systems. It is highly relevant for Dutch AI researchers focusing on AI for Science, multi-agent collaboration, and transparent AI methodologies, offering open-source tools and reproducible mathematical findings.

Relevance 85 · Audience 95

Serving Masked Diffusion LLMs: Characterization and Design Principles from Real Hardware

06:00 · August 26, 2026

Serving Masked Diffusion LLMs: Characterization and Design Principles from Real Hardware

This research is highly relevant for Dutch AI infrastructure researchers and HPC operators looking to optimize the serving of emerging diffusion LLMs. The findings on CPU bottlenecks and step-level parallelism provide actionable design principles for building efficient, scalable, and cost-effective AI inference systems in the Netherlands.

Relevance 85 · Audience 95

LLM Agents Perform Controlled Experiments Using Simulation Models

06:00 · August 26, 2026

LLM Agents Perform Controlled Experiments Using Simulation Models

This research is highly relevant for Dutch AI researchers and industrial R&D teams, particularly in the strong local chemical, pharmaceutical, and high-tech manufacturing sectors. It provides a novel, actionable framework for grounding LLM reasoning in scientific simulations, addressing the critical need for reliable and evidence-based AI decision support in enterprise environments.

Relevance 85 · Audience 95

How much of a measured AI preference is the model, and how much is the instrument?

06:00 · August 26, 2026

How much of a measured AI preference is the model, and how much is the instrument?

The Netherlands strongly emphasizes ethical, transparent, and safe AI development. For Dutch researchers focusing on AI alignment and ethics, this paper provides critical methodological insights into the unreliability of current techniques used to measure AI 'preferences' or welfare.

Relevance 75 · Audience 90

AI Agents Push Humans Out of the Loop

06:00 · August 26, 2026

AI Agents Push Humans Out of the Loop

Directly addresses ethical AI deployment and human oversight mandated by the EU AI Act, relevant to Dutch enterprises and regulators prioritizing transparent, human-centered AI. Offers actionable design and organizational recommendations for Dutch AI practitioners building or deploying agents.

Relevance 68 · Audience 82