Purifying Noisy Datasets with Large Language Models

53 concepts38 papers1 proposal

Machine learning models are fundamentally constrained by the quality of their training data. Whether scraped from the web, generated synthetically, or compiled via crowdsourcing, large-scale datasets are invariably riddled with noise—misaligned labels, irrelevant text, and factual inconsistencies.

Historically, automated data cleaning relied on statistical heuristics or dataset-wide outlier detection. However, these traditional methods suffer from a fatal flaw: they lack semantic comprehension. They struggle to distinguish between an outright annotation error and a valid, nuanced human disagreement.

A rapidly growing body of research shifts this paradigm by leveraging Large Language Models (LLMs) as automated data auditors and label purifiers. Because LLMs possess deep semantic priors and advanced reasoning capabilities, they can evaluate data points individually based on context rather than global dataset statistics. This approach allows them to identify, explain, and rectify errors at a scale and cost that human experts cannot match.

Why LLMs Can Audit Data: Semantic Alignment

To understand why LLMs excel at data purification, consider how a human expert spots a bad label. The expert does not look at how many times a word appears across a million rows; instead, they read the sentence, comprehend its meaning, and evaluate whether the assigned label logically fits.

LLMs replicate this capability by using their internal world knowledge as a sanity check. As demonstrated by Leon Weber et al. in VariErr NLI: Separating Annotation Error from Human Label Variation, advanced language models can successfully differentiate between genuine human label variation (valid disagreements) and outright annotation errors. Traditional statistical methods often mistake complex but valid human perspectives for "noise," whereas an LLM's reasoning capabilities allow for a more nuanced judgment of label validity.

Furthermore, in highly complex or fine-grained taxonomies, human crowd-workers frequently suffer from fatigue and inconsistency. The authors of Improving Occupational ISCO Classification of Multilingual Swiss Job Postings with LLM-Refined Training Data found that LLMs can actually exhibit higher internal consistency than human experts when resolving ambiguous classification cases. By filtering for high-confidence matches and correcting misalignments, LLMs can rehabilitate legacy datasets that were previously considered too corrupted to use.

Mechanisms of Label Purification

How do researchers practically deploy an LLM to clean a dataset? The literature reveals three primary operational patterns:

1. Direct Re-Labeling and Regeneration

When legacy labels are fundamentally broken or misaligned with the source text, LLMs can be prompted to regenerate them entirely from context. For instance, Md. Tahmid Rahman Laskar et al. in Can Large Language Models Fix Data Annotation Errors? An Empirical Study Using Debatepedia for Query-Focused Text Summarization showed that prompting an LLM to regenerate queries from document-summary pairs restores the semantic alignment necessary to train specialized downstream models. Similarly, Juhwan Choi et al. in Multi-News+: Cost-efficient Dataset Cleansing via LLM-based Data Annotation used LLMs to strip away irrelevant text from web-crawled datasets, creating a high-quality alternative to manual human annotation.

2. Prompt-Based Discrimination

Instead of generating open-ended text, error detection can be framed as a targeted, cloze-style task. In Self-Cleaning: Improving a Named Entity Recognizer Trained on Noisy Data with a Few Clean Instances, Zhendong Chu et al. framed entity error detection as a fill-in-the-blank task. By using specific prompts for entity boundaries and categories, an auxiliary model leverages its pre-trained linguistic knowledge to flag likely errors, breaking the "confirmation bias" loop common in standard self-training pipelines.

3. Context Synthesis

Sometimes, a label is not wrong, but the input text itself is too ambiguous to justify it. Rather than changing the label, the LLM can be used to enhance the input. Aditya Kommineni et al. explored this in Context Unlocks Emotions: Text-based Emotion Classification Dataset Auditing with Large Language Models, where they used LLMs to synthesize missing background context for ambiguous text snippets, effectively bridging the gap between literal text content and human-annotated emotional labels.

The Collaborative Pipeline: Small Filters, Large Correctors

Querying a massive commercial LLM for every single row in a multi-million-sample dataset is financially and computationally prohibitive. To resolve this, modern frameworks adopt a hybrid, collaborative architecture.

The intuition relies on the "memory effect" of neural networks: smaller models tend to learn simple, clean patterns early in training before eventually memorizing noisy labels. By exploiting this property, a small, inexpensive model (like BERT) can act as a sieve to flag suspicious data points. The heavy, expensive LLM is then brought in exclusively to perform targeted surgery on those flagged samples.

[ Noisy Dataset ] ---> ( Small Filter Model ) 
                             |
                             v (Identifies Suspicious Labels)
                       [ LLM Purifier ] <--- (In-Context Demonstrations)
                             |
                             v (Chain-of-Thought Correction)
                       [ Cleaned Dataset ] ---> Train Specialized Model

This strategy is deployed by Bo Yuan et al. in Hide and Seek in Noise Labels: Noise-Robust Collaborative Active Learning with LLMs-Powered Assistance. Their framework, NoiseAL, uses a small model to filter potential errors and passes them to an LLM. The LLM corrects the ambiguous or corrupted labels using in-context learning and chain-of-thought reasoning, guided by high-confidence clean samples. This collaborative pipeline achieves performance nearly identical to training on perfectly clean datasets while drastically reducing API costs.

Once purified, these datasets can serve as high-fidelity training data for smaller, specialized downstream models, as outlined by Md Zakir Hossain et al. in Thesis Proposal: Detecting Empathy Using Multimodal Language Model.

Explainable Auditing and Human Verification

Fully autonomous data cleaning risks introducing the model's own systematic biases. To mitigate this, LLMs can be used to generate natural language explanations alongside their label corrections, shifting the human role from manual annotator to high-level verifier.

In Human-in-the-Loop Synthetic Text Data Data Inspection with Provenance Tracking, Hong Jin Kang et al. introduced INSPECTOR, a tool that presents human reviewers with both a predicted label and an LLM-generated rationale. By explaining why a transformation caused a semantic shift, the system reduces cognitive load and helps reviewers catch subtle errors. Similarly, Philippe Laban et al. in SummEdits: Measuring LLM Ability at Factual Reasoning Through The Lens of Summarization demonstrated that utilizing LLMs to generate explanations for consistency judgments helps human auditors rapidly identify mislabeled samples in existing benchmarks.

Current Limitations

Despite its promise, LLM-guided data curation is not a flawless solution. Researchers have identified two primary caveats:

Ultimately, the power of LLM-based data cleaning lies not in replacing human judgment, but in scaling semantic scrutiny. By acting as an automated first line of defense, LLMs allow machine learning practitioners to transform massive, uncurated web dumps into highly refined training corpora.

Key Foundational Work

Thesis Proposal: Detecting Empathy Using Multimodal Language Model (2024) — contributed 2 concept elements to this direction.
Open Event Causality Extraction by the Assistance of LLM in Task Annotation, Dataset, and Method (2024) — contributed 2 concept elements to this direction.
Multi-News+: Cost-efficient Dataset Cleansing via LLM-based Data Annotation (2024) — contributed 2 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_llm_based_data_cleaning_143c81b1,
  title = {LLM-based data cleaning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/llm-based-data-cleaning/rdr_143c81b16fbb47158ee41f22d0a37366},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_llm_based_data_cleaning_143c81b1_v1,
  title = {LLM-based data cleaning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/llm-based-data-cleaning/rdr_143c81b16fbb47158ee41f22d0a37366/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake