Reasons to Reject? Aligning Language Models with Judgments

Weiwen Xu, Deng Cai, Zhisong Zhang, Wai Lam, Shuming Shi
12/22/2023
23 citations
cs.CL

Official code: wwxu21/CUT (58 stars, Python, Apache-2.0, last commit 2024-02-29).

Abstract

As humans, we consistently interact with our peers and receive feedback in the form of natural language. This language feedback allows us to maintain appropriate behavior, and rectify potential errors.

Show full abstract

The question arises naturally: can we use language feedback to align large language models (LLMs)? In contrast to previous research that aligns LLMs with scalar rewards, we present the first systematic exploration of alignment through the lens of language feedback (i.e., judgment). We start with an in-depth investigation of potential methods that can be adapted for aligning LLMs with judgments, revealing that these methods cannot fully capitalize on judgments. To facilitate more effective utilization of judgments, we propose a novel framework, Contrastive Unlikelihood Training (CUT), that allows for fine-grained inappropriate content detection and correction based on judgments. Our results show that, with merely 1317 off-the-shelf judgment data, CUT (LLaMA2-13b) can beat the 175B DaVinci003 and surpass the best baseline by 50.84 points on AlpacaEval. CUT (LLaMA2-chat-13b) can also align LLMs in an iterative fashion using up-to-date model-specific judgments, improving performance from 81.09 to 91.68 points on AlpacaEval. Further analysis suggests that judgments hold greater potential than rewards in LLM alignment.

View on arXivView PDF

Code Implementations(1)

wwxu21/CUTOfficial100%
Apache-2.0

Source code of "Reasons to Reject? Aligning Language Models with Judgments"

585Python, ShellDec 22, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{xu2023reasons,
  title  = {Reasons to Reject? Aligning Language Models with Judgments},
  author = {Weiwen Xu and Deng Cai and Zhisong Zhang and Wai Lam and Shuming Shi},
  year   = {2023},
  eprint = {2312.14591},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.14591v4}
}

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/2312.14591.svg)](https://codeofpaper.com/paper/2312.14591)

Discussion