Data Advisor: Dynamic Data Curation for Safety Alignment of Large Language Models

Fei Wang, Ninareh Mehrabi, Palash Goyal, Rahul Gupta, Kai-Wei Chang +1 more
10/7/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: FeiWang96/Data-Advisor (8 stars, last commit 2024-10-13).

Abstract

Data is a crucial element in large language model (LLM) alignment. Recent studies have explored using LLMs for efficient data collection. However, LLM-generated data often suffers from quality issues, with underrepresented or absent aspects and low-quality datapoints. To address these problems, we propose Data Advisor, an enhanced LLM-based method for generating data that takes into account the characteristics of the desired dataset. Starting from a set of pre-defined principles in hand, Data Advisor monitors the status of the generated data, identifies weaknesses in the current dataset, and advises the next iteration of data generation accordingly. Data Advisor can be easily integrated into existing data generation methods to enhance data quality and coverage. Experiments on safety alignment of three representative LLMs (i.e., Mistral, Llama2, and Falcon) demonstrate the effectiveness of Data Advisor in enhancing model safety against various fine-grained safety issues without sacrificing model utility.

View on arXivView PDF

Code Implementations(1)

[EMNLP 2024] Data Advisor: Dynamic Data Curation for Safety Alignment of Large Language Models

80Shell, PythonOct 4, 20242 years ago

Similar Papers

Cite this paper

@article{wang2024data,
  title  = {Data Advisor: Dynamic Data Curation for Safety Alignment of Large Language Models},
  author = {Fei Wang and Ninareh Mehrabi and Palash Goyal and Rahul Gupta and Kai-Wei Chang and Aram Galstyan},
  year   = {2024},
  eprint = {2410.05269},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.05269v1}
}

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

Discussion