Clean First, Align Later: Benchmarking Preference Data Cleaning for Reliable LLM Alignment

Samuel Yeh, Sharon Li

TL;DR

This paper introduces PrefCleanBench, the first comprehensive benchmark for evaluating data cleaning methods used to improve the alignment of Large Language Models (LLMs) with human preferences. By systematically testing 13 cleaning methods across various datasets and LLM architectures, they reveal that cleaning data before alignment is crucial and that removing noisy data is generally more effective than simply flipping labels.

What Problem Does This Paper Address?

Aligning LLMs with human preferences is critical for ensuring they are helpful and harmless. A common approach involves using human feedback, often in the form of pairwise preferences (e.g., "response A is better than response B"). However, this human feedback is notoriously noisy and inconsistent, which can significantly degrade the performance of the LLM's reward models and ultimately hinder effective alignment. While various methods exist to "clean" this noisy data, there's been a lack of systematic evaluation to understand which methods work best, how they generalize, and what factors contribute to their success. This paper aims to fill that gap by providing a standardized framework for benchmarking these data cleaning techniques.

Methods

The core of this work is the PrefCleanBench framework. It's designed to systematically evaluate data cleaning methods for LLM alignment. The framework encompasses:

  • Dataset Selection: Four widely used preference datasets (Anthropic-HH, UltraFeedback, PKU-SafeRLHF, and HelpSteer2) are used, covering both human-annotated and LLM-generated labels.
  • Evaluation Pipeline: A standardized pipeline is used, involving Supervised Fine-Tuning (SFT) of base LLMs on chosen responses, followed by preference optimization (e.g., DPO) on either the original or cleaned data.
  • Evaluation Criteria: Alignment is measured using "win-tie rate" (how often a model trained on cleaned data outperforms a model trained on original data) and "average gold reward" (evaluated by a separate reward model). Generalizability is assessed across different LLM architectures and preference optimization algorithms.

The paper categorizes 13 data cleaning methods into three main paradigms:

  1. LLM-as-a-Judge: Using LLMs to re-annotate or verify preferences.
  2. Reward Model-based: Using reward models to score preferences or identify discrepancies.
  3. Heuristic-based: Employing criteria related to prompt quality or instruction-following difficulty.

Datasets

The paper uses four established preference datasets for its benchmark:

  • Anthropic-HH: Conversations with LLMs, where crowdworkers select preferred responses.
  • UltraFeedback: A large-scale dataset derived from various QA and instruction-following tasks, with responses scored by GPT-4 on multiple aspects.
  • PKU-SafeRLHF: Prompts designed to elicit harmful behavior, with human+AI annotations for harm categories and preferences.
  • HelpSteer2: Similar to UltraFeedback, with responses annotated on five aspects and further labeled with 7 preference options.

No new datasets were introduced; instead, the focus is on creating a standardized evaluation protocol for existing ones.

Key Insights and Ideas

  • Clean First, Align Later: The paper strongly advocates for prioritizing data cleaning before the alignment process. This suggests that the quality of the data foundation is paramount for achieving reliable LLM alignment.
  • Removal Over Flipping: When dealing with noisy data, removing problematic data points generally leads to better alignment performance than simply flipping their labels. This highlights that not all unreliability can be fixed by correcting a label; sometimes the underlying data quality is too poor.
  • Diversity in Judges is Key: Methods that aggregate judgments from multiple sources (like VoteMaj-R, which uses a committee of reward models) tend to perform better than those relying on a single judge (like LLM-Judge or single reward models). This suggests that diverse perspectives are crucial for robustly identifying unreliable data.
  • Prompt Quality Matters: The paper observed that unreliable data often stems from low-quality prompts, leading to generic or hallucinated responses. Removing such data, rather than trying to correct labels, is more effective.
  • Data Quantity Trade-off: There's a sweet spot for data filtering. Mild filtering can improve alignment, but excessive filtering might remove valuable information. The optimal filtering rate appears to be around 20-30%.

Key Results

  • VoteMaj-R (a reward model-based method using majority voting from a committee) consistently achieved top scores in win-tie rate and average reward across most datasets and settings.
  • Tag-Cmp (a heuristic-based method using prompt quality tags) also showed strong performance, particularly in generalizability across different optimization algorithms.
  • LLM-Judge-R and RwGap-R (methods that remove data) generally outperformed their "F" (label flipping) counterparts.
  • The paper demonstrates that data cleaning methods can generalize well across different LLM architectures (Llama3, Qwen2.5, Mistral-7B, phi-2, Llama3.2-1B) and various preference optimization algorithms (DPO, CPO, SLIC, KTO, AOT, IPO, rDPO, ORPO).

Limitations and Future Work

  • No Ground Truth for Cleaning: A key limitation is the absence of a definitive "ground truth" for data quality. The effectiveness of cleaning methods is inferred from downstream alignment performance, not direct measurement of cleaning accuracy (recall/precision).
  • Cost of Evaluation: While the benchmark is comprehensive, evaluating all methods can be computationally intensive.
  • Future Work: The authors suggest exploring more cost-effective methods for identifying noisy data, potentially with human oversight. They also propose developing curated benchmarks with partially verified labels to directly evaluate data cleaning accuracy. Furthermore, they highlight the need for more versatile and robust data cleaning techniques.

Summary updated

BibTeX
@inproceedings{yeh2025clean,
  author = {Samuel Yeh and Sharon Li},
  title = {{Clean First, Align Later: Benchmarking Preference Data Cleaning for Reliable LLM Alignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Qa4ADWDTIY},
}
Figure