Noise Contrastive Alignment of Language Models with Explicit Rewards
Huayu Chen, Guande He, Lifan Yuan, Ganqu Cui, Hang Su, Jun Zhu

TL;DR
This paper introduces a novel framework using Noise Contrastive Estimation for aligning language models with explicit reward data, improving over existing methods like DPO especially in complex reasoning tasks.
Contribution
The paper presents NCA and InfoNCA algorithms that directly extract language model policies from explicit reward data, extending and unifying current alignment approaches.
Findings
InfoNCA/NCA outperform preference baselines with reward data
NCA prevents likelihood decrease by optimizing absolute likelihood
NCA significantly improves complex reasoning tasks like math and coding
Abstract
User intentions are typically formalized as evaluation rewards to be maximized when fine-tuning language models (LMs). Existing alignment methods, such as Direct Preference Optimization (DPO), are mainly tailored for pairwise preference data where rewards are implicitly defined rather than explicitly given. In this paper, we introduce a general framework for LM alignment, leveraging Noise Contrastive Estimation (NCE) to bridge the gap in handling reward datasets explicitly annotated with scalar evaluations. Our framework comprises two parallel algorithms, NCA and InfoNCA, both enabling the direct extraction of an LM policy from reward data as well as preference data. Notably, we show that the DPO loss is a special case of our proposed InfoNCA objective under pairwise preference settings, thereby integrating and extending current alignment theories. By comparing NCA and InfoNCA, we…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗openbmb/Eurus-70b-ncamodel· 94 dl· ♡ 1294 dl♡ 12
- 🤗pharaouk/Eurus-70b-ncamodel· 4 dl4 dl
- 🤗openbmb/Eurux-8x22b-ncamodel· 28 dl· ♡ 2828 dl♡ 28
- 🤗ChenDRAG/CCA_LlamaGenmodel
- 🤗ChenDRAG/CCA_VARmodel
- 🤗RichardErkhov/openbmb_-_Eurus-70b-nca-ggufmodel· 62 dl62 dl
- 🤗achernarwang/SPY_Qwen2-VL-7B-Instruct_NCA-Pmodel
- 🤗achernarwang/SPY_Qwen2-VL-7B-Instruct_NCAmodel
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Speech Recognition and Synthesis
MethodsAttention Is All You Need · Direct Preference Optimization · Focus · Dense Connections · Position-Wise Feed-Forward Layer · Label Smoothing · Softmax · Absolute Position Encodings · Linear Layer · Byte Pair Encoding
