FIRE: Flexible Integration of Data Quality Ratings for Effective Pretraining

Xu Liangyu, Xuemiao Zhang, Feiyu Duan, Sirui Wang, Rongxiang Weng, Jingang Wang, Xunliang Cai

TL;DR

Training large language models (LLMs) requires massive datasets, but simply using more data isn't enough – quality matters. This paper introduces FIRE, a novel framework that intelligently integrates multiple data quality raters to create a unified, comprehensive quality score for each data point. FIRE significantly boosts LLM performance while drastically reducing the amount of training data needed, making LLM training more efficient and effective.

What Problem Does This Paper Address?

The effectiveness of large language models (LLMs) is heavily influenced by the quality of their pretraining data. While existing methods for selecting high-quality data often rely on simple heuristics or single quality signals, they fail to capture the multifaceted nature of data quality. This can lead to suboptimal performance and inefficient training. The challenge is to develop a method that can comprehensively assess data quality across various dimensions and integrate these assessments effectively to guide data selection for LLM pretraining.

Methods

FIRE tackles this challenge through two main components:

  • Rating Alignment: This process standardizes ratings from different quality raters into a unified space. It involves calculating a "win rate" for data subsets within different rating intervals against a reference subset, effectively mapping diverse rating scales and thresholds onto a common ground. This step also quantifies the intrinsic reliability of each rater.
  • Rater Integration: FIRE then combines these aligned ratings by considering both the intrinsic reliability of each rater and their orthogonality (how independent their quality assessments are). It constructs an "orthogonality graph" and uses a PageRank-like iterative process to derive an overall orthogonality score for each rater. The final integrated quality score for a data point is a weighted combination of its aligned ratings, where weights are determined by the rater's reliability and orthogonality.

Additionally, FIRE introduces a Progressive Data Selection Scheme. This method iteratively refines the data selection process by calculating orthogonality within progressively smaller subsets of data, leading to a more nuanced and effective selection of high-quality data points.

Datasets

  • Training and Evaluation: The primary dataset used for experiments is SlimPajama, a large-scale dataset of 627 billion tokens.
  • Raters: The paper utilizes four single raters from QuRating (Writing Style, Facts and Trivia, Educational Value, and Required Expertise) as well as other baselines like DSIR and ASK-LLM.
  • Benchmarking: Downstream task performance is evaluated using the lm-evaluation-harness across eight tasks: ARC-E, ARC-C, SciQ, LogiQA, BoolQ, HellaSwag, PIQA, and WinoGrande.

Key Insights and Ideas

  • Multi-dimensional Quality is Key: The paper strongly suggests that data quality is not a single attribute but a combination of various factors. Relying on single-dimensional raters or simple aggregation methods misses crucial aspects of data quality.
  • Alignment is Crucial: Different raters use vastly different scales and thresholds. Without proper alignment, integrating these ratings directly leads to misleading results. FIRE's alignment step is essential for making ratings comparable.
  • Orthogonality Matters: Raters that provide independent assessments (orthogonal) contribute more unique information. FIRE's integration method leverages this by giving more weight to orthogonal raters, preventing redundancy and improving the overall quality signal.
  • Progressive Refinement Works: The progressive data selection scheme, which recalculates orthogonality on subsets, further enhances the selection of high-quality data, demonstrating that iterative refinement can lead to better outcomes.
  • GPT-4's Limitations: While GPT-4 is used as a powerful rater, the paper notes that its performance can degrade when asked to evaluate multiple criteria simultaneously in a single prompt, highlighting the need for structured integration methods like FIRE.

Key Results

  • Performance Boost: FIRE significantly improves LLM performance across various downstream tasks, achieving an average score increase of 2.9% compared to the random baseline.
  • Data Efficiency: FIRE requires less than 37.5% of the training data needed by the Random baseline to reach the same target performance, demonstrating substantial gains in training efficiency.
  • Superiority over Baselines: FIRE outperforms individual raters, simple integration methods (like averaging or max criteria), and other data selection methods like DSIR and ASK-LLM.
  • Scalability: The method shows promise with larger models and datasets, and adding more raters generally leads to better performance.
  • Ablation Studies: Rating alignment was found to be critical, with its removal causing a significant performance drop. Orthogonality also played a substantial role in improving performance.

Limitations and Future Work

  • Linear Assumption: The current integration assumes a linear relationship for orthogonality. Future work could explore non-linear systems to capture more complex interactions between dimensions.
  • Number of Raters: While tested with four raters, the paper suggests that including more raters from diverse dimensions could further enhance robustness and versatility.
  • Orthogonality Calculation: The paper explores linear, Gaussian, and symmetrically processed Gaussian functions for orthogonality. While the symmetrically processed Gaussian performed best, further research into optimal functions could be beneficial.
  • GPT-4 Prompting: The paper notes that GPT-4's performance can be inconsistent when evaluating multiple criteria in a single prompt, suggesting that more sophisticated prompting or fine-tuning might be needed for comprehensive evaluations.

Summary updated

BibTeX
@inproceedings{liangyu2025fire,
  author = {Xu Liangyu and Xuemiao Zhang and Feiyu Duan and Sirui Wang and Rongxiang Weng and Jingang Wang and Xunliang Cai},
  title = {{FIRE: Flexible Integration of Data Quality Ratings for Effective Pretraining}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}

Loading related content...

Figure