paper-with-me

홈 › Papers

Reward-Free Code Alignment from Pretrained or Fine-Tuned LLM: Unpacking the Trade-offs for Code Generation

2026-06-27 · Sanjeepan Sivapiran, Gias Uddin arxiv

Large Language Model (LLM) alignment trains an LLM using preference data to produce outputs that better meet established quality standards. While LLM alignment techniques are studied for non-coding tasks, we know little about their usefulness for coding tasks. It is unclear whether LLM code alignment could support both functional requirements (producing executable, correct code) and non-functional requirements (code readability, style, maintainability). It is also unknown whether alignment for a code LLM should begin with base pretrained version or the finetuned (i.e., instruction-tuned) version of the LLM. In this paper, we offer insights on the above two research questions by conducting an empirical study. We studied five state-of-the-art (SOTA) LLMs using two widely used LLM alignment techniques: Direct Preference Optimization (DPO) and BoNBoN. For each training record, we created a preference pair as accepted and rejected instances by using the SelfCodeAlign pipeline. DPO and BoNBoN are reward-free models, i.e., they eliminate the need for multiple reward scores for output preferences. We tuned each LLM using the two alignment techniques in two settings: pretrained and finetuned versions of an LLM. We evaluated functional requirements using four SOTA benchmarks (HumanEval+, MBPP+, EvalPerf, EvoEval) and non-functional requirements using the CODAL benchmark, which evaluates code quality across five dimensions derived from software engineering practices. We find that pretrained-to-aligned pathways achieve larger improvements in the aligned variant over its pretrained variant. But the pretrained variant is generally less accurate than its finetuned variant. However, finetuned- to-aligned offers smaller performance improvements or, in some cases, degradation in the aligned variant than its finetuned variant.

📄 PDF Abstract BibTeX arXiv:2606.28998

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

RewardFlow: Generate Images by Optimizing What You Reward

2026-04-09 · Onkar Susladkar, Dong-Hwan Jang, Tushar Prakash, Adheesh Juvekar 외 arxiv

We introduce RewardFlow, an inversion-free framework that steers pretrained diffusion and flow-matching models at inference time through multi-reward Langevin dynamics. RewardFlow unifies complementary differentiable rew…

Image Editing

Preference Score Distillation: Leveraging 2D Rewards to Align Text-to-3D Generation with Human Preference

2026-03-02 · Jiaqi Leng, Shuyuan Tu, Haidong Cao, Sicheng Xie 외 arxiv

Human preference alignment presents a critical yet underexplored challenge for diffusion models in text-to-3D generation. Existing solutions typically require task-specific fine-tuning, posing significant hurdles in data…

3D Generation

Read It Back: Pretrained MLLMs Are Zero-Shot Reward Models for Text-to-Image Generation

2026-07-13 · Runhui Huang, Qihui Zhang, Zhe Liu, Yu Gao 외 hf

In this paper, we propose SpectraReward, a training-free reward function that turns pretrained MLLMs into off-the-shelf reward models for image-generation reinforcement learning. Instead of asking the MLLM to judge a gen…

Text-to-Image GenerationReinforcement Learning

Reward Score Matching: Unifying Reward-based Fine-tuning for Flow and Diffusion Models

2026-04-19 · Jeongjae Lee, Jinho Chang, Jeongsol Kim, Jong Chul Ye arxiv

Reward-based fine-tuning steers a pretrained diffusion or flow-based generative model toward higher-reward samples while remaining close to the pretrained model. Although existing methods are derived from different persp…

Natural Emergent Misalignment from Reward Hacking in Production RL

2025-11-23 · Monte MacDiarmid, Benjamin Wright, Jonathan Uesato, Joe Benton 외 arxiv

We show that when large language models learn to reward hack on production RL environments, this can result in egregious emergent misalignment. We start with a pretrained model, impart knowledge of reward hacking strateg…