paper-with-me

홈 › Papers

Learning to Align Human Code Preferences

2025-07-27 · Xin Yin, Chao Ni, Xiaohu Yang arxiv

Large Language Models (LLMs) have demonstrated remarkable potential in automating software development tasks. While recent advances leverage Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO) to align models with human preferences, the optimal training strategy remains unclear across diverse code preference scenarios. This paper systematically investigates the roles of SFT and DPO in aligning LLMs with different code preferences. Through both theoretical analysis and empirical observation, we hypothesize that SFT excels in scenarios with objectively verifiable optimal solutions, while applying SFT followed by DPO (S&D) enables models to explore superior solutions in scenarios without objectively verifiable optimal solutions. Based on the analysis and experimental evidence, we propose Adaptive Preference Optimization (APO), a dynamic integration approach that adaptively amplifies preferred responses, suppresses dispreferred ones, and encourages exploration of potentially superior solutions during training. Extensive experiments across six representative code preference tasks validate our theoretical hypotheses and demonstrate that APO consistently matches or surpasses the performance of existing SFT and S&D strategies. Our work provides both theoretical foundations and practical guidance for selecting appropriate training strategies in different code preference alignment scenarios.

📄 PDF Abstract BibTeX arXiv:2507.20109

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Learning a Canonical Basis of Human Preferences from Binary Ratings

2025-03-31 · Kailas Vodrahalli, Wei Wei, James Zou

Recent advances in generative AI have been driven by alignment techniques such as reinforcement learning from human feedback (RLHF). RLHF and related techniques typically involve constructing a dataset of binary or ranke…

SpeechAlign: Aligning Speech Generation to Human Preferences

2024-04-08 · Dong Zhang, Zhaowei Li, ShiMin Li, Xin Zhang 외

Speech language models have significantly advanced in generating realistic speech, with neural codec language models standing out. However, the integration of human feedback to align speech outputs to human preferences i…

Language ModelingLanguage Modelling

Aligning language models with human preferences

2024-04-18 · Tomasz Korbak

Language models (LMs) trained on vast quantities of text data can acquire sophisticated skills such as generating summaries, answering questions or generating code. However, they also manifest behaviors that violate huma…

Bayesian Inference

MVReward: Better Aligning and Evaluating Multi-View Diffusion Models with Human Preferences

2024-12-09 · Weitao Wang, Haoran Xu, Yuxiao Yang, Zhifang Liu 외

Recent years have witnessed remarkable progress in 3D content generation. However, corresponding evaluation methods struggle to keep pace. Automatic approaches have proven challenging to align with human preferences, and…

16k

Personalized Language Modeling from Personalized Human Feedback

2024-02-06 · Xinyu Li, Ruiyang Zhou, Zachary C. Lipton, Liu Leqi

Personalized large language models (LLMs) are designed to tailor responses to individual user preferences. While Reinforcement Learning from Human Feedback (RLHF) is a commonly used framework for aligning LLMs with human…

Instruction FollowingLanguage ModelingLanguage ModellingPreference Mapping+1