DPO-F+: Aligning Code Repair Feedback with Developers' Preferences

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, extended

Summary

The DPO-f+ framework enhances Large Language Model (LLM) generated code repair feedback by aligning it with developer preferences, addressing challenges in human-AI teaming. This novel approach formalizes developer-profiled, domain-specific metrics for feedback alignment, automatically constructs pairwise preference datasets from code-repair tasks, and fine-tunes LLMs using Direct Preference Optimization (DPO) augmented with a lightweight margin signal. It also includes an automated feedback evaluation protocol. Empirically, DPO-f+ significantly outperforms both baseline models and standard DPO. On novice programming tasks, it boosts Pass@1 by 5.71 percentage points (pp) over the baseline and 3.30 pp over DPO. For the more complex SWE-bench Lite benchmark, it increases the issue-resolution rate by 1.67 pp over DPO and 4.67 pp over the baseline, while also achieving superior feedback alignment.

Key takeaway

For Machine Learning Engineers developing code repair LLMs, you should integrate preference-based alignment frameworks like DPO-f+ to improve both code accuracy and developer comprehension. By tailoring feedback to specific developer profiles and task contexts, your models can foster more effective human-AI collaboration, reducing clarification cycles and enhancing overall workflow efficiency in software development. Consider implementing a reward-augmented DPO approach to achieve superior alignment.

Key insights

DPO-f+ aligns LLM code repair feedback to developer profiles, improving comprehension and human-AI teaming.

Principles

Method

DPO-f+ constructs preference datasets using developer-profiled metrics, then fine-tunes LLMs with a reward-augmented DPO loss, and evaluates using an automated protocol.

In practice

Topics

Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, Software Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.