FiNE: Filtering and Improving Noisy Data Elaborately with Large Language Models

Junliang He, Ziyue Fan, Shaohui Kuang, Li Xiaoqing, Kai Song, Yaqian Zhou, Xipeng QiuNAACL 2025

Introduction

Supervised Fine-Tuning (SFT) is a pivotal stage in the development of Large Language Models (LLMs), transforming raw base models into capable conversational assistants. While open-source SFT datasets like Alpaca and Firefly are abundant, they often suffer from an "integrity gap"—a lack of consistent quality, factual accuracy, and structural diversity. The FiNE (Filtering and Improving Noisy data Elaborately) framework addresses these deficiencies through a multi-stage pipeline designed to refine noisy datasets into high-integrity training corpora.

The Integrity Gap in SFT Data

Current LLM-based data cleaning methods often fall short due to three primary issues identified by the researchers:

  1. Simplicity Bias: Automated judges frequently penalize complex instructions if the accompanying answer is poor, leading to the loss of valuable, challenging data.
  2. Opaque Knowledge Awareness: LLMs struggle to evaluate factual correctness without a "gold standard" reference, often missing subtle hallucinations in the data they are meant to clean.
  3. Diversity Loss: Aggressive filtering can remove niche but critical data points, while naive augmentation often introduces repetitive patterns that do not improve model robustness.

The FiNE Framework

To overcome these challenges, FiNE employs a three-stage strategy that transitions from "filter-then-augment" to "augment-then-filter."

The FiNE framework consists of three main stages: Multi-factor-based Filtering, Reference-based Quality Improvement, and Domain-based Diversity Improvement and Filtering.

1. Multi-factor-based Filtering

Rather than relying on a monolithic quality score, FiNE prompts an LLM to evaluate three distinct dimensions: Instruction Reasonableness, Instruction Complexity, and Answer Accuracy. This granular approach allows the system to retain complex instructions even if the initial answer is weak, ensuring that difficult tasks are preserved for subsequent improvement rather than being discarded prematurely.

2. Reference-based Quality Improvement

To solve the "opaque knowledge" problem, the framework introduces a reference-based judging mechanism. Before scoring an existing answer, a strong "teacher" LLM generates a high-quality "3H" (Helpful, Harmless, Honest) reference answer. The judge then compares the original data point against this reference, selecting or merging the best components to create a superior final response.

3. Domain-based Diversity Improvement and Filtering

Data is categorized into specific domains such as Mathematical Ability, Question Answering, and Text Generation. FiNE uses a Domain-aware K-Center clustering approach to identify sparse regions in the data space. These regions are then targeted for expansion using techniques like Evol-Instruct. Finally, a second round of K-Center filtering is applied to prune redundant or highly similar examples, ensuring a diverse and efficient dataset.

Experimental Setup and Results

The authors applied FiNE to several prominent Chinese SFT datasets, including Alpaca-GPT4 (refined from 49k to 15k examples) and Firefly (refined from 1.5M to 120k examples). Performance was evaluated using AlignBench, a multi-dimensional alignment benchmark, and HalluQA, which measures hallucination rates.

Performance comparison of various models on the AlignBench benchmark across multiple categories. FiNE-tuned models consistently outperform their original open-source counterparts.

As shown in the results, the FiNE-refined datasets consistently narrowed the gap between open-source models and their proprietary chat counterparts. For instance, the Yi-1.5-9B-FiNE model achieved an AlignBench score of 4.85, significantly higher than the 4.12 achieved by the standard Alpaca-GPT4 version. On the HalluQA benchmark, FiNE-Alpaca outperformed the original version by 7.56 points and even surpassed the official Yi-1.5-9B-Chat version in hallucination resistance.

Key Insights: Quality Over Quantity

A core finding of the FiNE research is the "Less is More" paradox. By reducing the Alpaca-GPT4 dataset from 49,000 to just 15,000 high-integrity examples, the researchers observed significant performance gains. This suggests that for SFT, the integrity and diversity of data are far more important than raw volume. Furthermore, the study highlights that LLMs are significantly more effective judges when provided with a reference answer, as it provides a concrete baseline for factual verification.

Conclusion

The FiNE framework demonstrates that a surgical, multi-factor approach to data cleaning can significantly enhance the performance of LLMs. By focusing on instruction complexity, reference-based improvement, and domain-aware diversity, FiNE effectively bridges the performance gap between open-source and proprietary models. Future work will focus on reducing the computational cost of the pipeline and automating the selection of filtering thresholds.

Summary updated

BibTeX
@inproceedings{he2025fine,
  author = {Junliang He and Ziyue Fan and Shaohui Kuang and Li Xiaoqing and Kai Song and Yaqian Zhou and Xipeng Qiu},
  title = {{FiNE: Filtering and Improving Noisy Data Elaborately with Large Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.437},
}
Figure