Extensive Self-Contrast Enables Feedback-Free Language Model Alignment
Xiao Liu, Xixuan Song, Yuxiao Dong, Jie Tang
TL;DR
This work tackles the cost of RLHF by proposing Self-Contrast, a feedback-free LLM alignment method that exploits large volumes of self-generated negatives filtered by embeddings. The approach uses SFT targets, self-generated candidates, and Direct Preference Optimization to align models without explicit preference data, supported by a theoretical result showing that many negatives can approximate balanced annotations. Empirically, Self-Contrast outperforms SFT and standard DPO across Nectar, UltraChat, and HH-RLHF benchmarks, with performance steadily improving as the number of negatives increases. The work demonstrates practical data-efficiency gains and provides code to enable scalable, cost-effective LLM alignment.
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.
