Extensive Self-Contrast Enables Feedback-Free Language Model Alignment

Xiao Liu, Xixuan Song, Yuxiao Dong, Jie Tang
3/31/2024
cs.CLcs.AIcs.LG

Official code: THUDM/Self-Contrast (20 stars, Apache-2.0, last commit 2024-04-02). 1 more implementation below.

Abstract

Reinforcement learning from human feedback (RLHF) has been a central technique for recent large language model (LLM) alignment. However, its heavy dependence on costly human or LLM-as-Judge preference feedback could stymie its wider applications. In this work, we introduce Self-Contrast, a feedback-free large language model alignment method via exploiting extensive self-generated negatives. With only supervised fine-tuning (SFT) targets, Self-Contrast leverages the LLM itself to generate massive diverse candidates, and harnesses a pre-trained embedding model to filter multiple negatives according to text similarity. Theoretically, we illustrate that in this setting, merely scaling negative responses can still effectively approximate situations with more balanced positive and negative preference annotations. Our experiments with direct preference optimization (DPO) on three datasets show that, Self-Contrast could consistently outperform SFT and standard DPO training by large margins. And as the number of self-generated negatives increases, the performance of Self-Contrast continues to grow. Code and data are available at https://github.com/THUDM/Self-Contrast.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Extensive Self-Contrast Enables Feedback-Free Language Model Alignment

203Shell, PythonApr 1, 20242 years agoApache-2.0
Apache-2.0

Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

72,8418,898Python, MakefileMay 28, 20235 months agoApache-2.0
agentaideepseekfine-tuninggemma+15 more

Similar Papers

Cite this paper

@article{liu2024extensive,
  title  = {Extensive Self-Contrast Enables Feedback-Free Language Model Alignment},
  author = {Xiao Liu and Xixuan Song and Yuxiao Dong and Jie Tang},
  year   = {2024},
  eprint = {2404.00604},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.00604v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.00604.svg)](https://codeofpaper.com/paper/2404.00604)

Discussion