REAL: Response Embedding-based Alignment for LLMs

Honggen Zhang, Xufeng Zhao, Igor Molybog, June Zhang
9/17/2024
5 citations
cs.CLcs.AI
rlhf-rlvr-dpo

Official code: honggen-zhang/REAL-Alignment (5 stars, Python, Apache-2.0, last commit 2024-09-20).

Abstract

Aligning large language models (LLMs) to human preferences is a crucial step in building helpful and safe AI tools, which usually involve training on supervised datasets. Popular algorithms such as Direct Preference Optimization (DPO) rely on pairs of AI-generated responses ranked according to human annotation.

Show full abstract

The response pair annotation process might bring human bias. Building a correct preference dataset is the costly part of the alignment pipeline. To improve annotation efficiency and quality in the LLMs alignment, we propose REAL: Response Embedding-based Alignment for LLMs, a strategy for constructing a high-quality training dataset that focuses on acquiring the less ambiguous preference pairs for labeling out of a set of response candidates. Our selection process is based on the similarity of embedding responses independently of prompts, which guarantees the selection process in an off-policy setting, avoiding adaptively measuring the similarity during the training. Experimental results on real-world dataset SHP2 and synthetic HH-RLHF benchmarks indicate that choosing dissimilar response pairs enhances the direct alignment of LLMs while reducing inherited labeling errors. The model aligned with dissimilar response pairs obtained a better margin and win rate on the dialogue task. Our findings suggest that focusing on distinct pairs can reduce the label error and improve LLM alignment efficiency, saving up to $65\%$ of annotators' work.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
50PythonSep 17, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2024real,
  title  = {REAL: Response Embedding-based Alignment for LLMs},
  author = {Honggen Zhang and Xufeng Zhao and Igor Molybog and June Zhang},
  year   = {2024},
  eprint = {2409.17169},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.17169v4}
}

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

Discussion