Language Model-Driven Data Pruning Enables Efficient Active Learning

Abdul Hameed Azeemi, Ihsan Ayyub Qazi, Agha Ali RazaarXiv 2024

TL;DR

Active Learning (AL) is highly effective for data-efficient model training but suffers from massive computational bottlenecks when evaluating large unlabeled data pools. ActivePrune solves this by introducing a fast, two-stage language model filter (combining n-gram perplexity and quantized LLMs) alongside a novel diversity-preserving reweighting scheme. This plug-and-play framework slashes end-to-end active learning time by up to 74% while maintaining or even improving downstream model performance.

What Problem Does This Paper Address?

Active Learning optimizes data labeling by using an acquisition function to select the most informative samples from an unlabeled pool for human annotation. However, as unlabeled pools grow into the hundreds of thousands or millions of samples, running complex acquisition functions over the entire dataset becomes prohibitively expensive.

This high acquisition latency creates a major roadblock: it destroys the interactivity required for human-in-the-loop expert labeling (forcing experts to wait between iterations) and wastes significant compute. While simple fixes like random subsampling or basic uncertainty filtering exist, they often degrade data selection quality or fail in early iterations when the acquisition model is undertrained. The authors set out to answer: Can we efficiently reduce the size of the unlabeled pool without compromising selection quality?

Methods

The authors propose ActivePrune, an AL-strategy-agnostic framework that prunes the unlabeled pool before the acquisition function processes it. The framework consists of three core components:

  1. Fast Perplexity Filtering: ActivePrune first runs the entire unlabeled pool through a lightweight KenLM 5-gram language model. It quickly filters out highly chaotic or noisy samples (high perplexity) and retains a candidate pool.
  2. LLM Quality Scoring: To achieve high-quality data selection without the massive compute cost of full LLM inference, ActivePrune evaluates the remaining candidates using a 4-bit quantized open-source LLM (Gemma-2B). The LLM is prompted to score the suitability of each sample for the target task based on its token probabilities for a simple "yes" or "no" response.
  3. Perplexity Reweighting: To prevent the system from repeatedly selecting from a narrow slice of the data distribution, ActivePrune dynamically adjusts the perplexity scores after each AL iteration. It calculates an adjustment factor based on the absolute difference in perplexity between unlabeled samples and newly labeled samples, effectively lowering the perplexity of underrepresented data to give it a higher priority in the next round.
Figure 1: Illustration of the proposed ActivePrune framework for data pruning in Active Learning. Perplexity scores are first computed for the entire unlabeled pool through the KenLM 5-gram model, followed by the computation of data quality scores on a subset of examples through a quantized LLM. Then, the data pruning strategy leverages both these scores to prune the unlabeled pool and send it as the input to the AL acquisition function. After each iteration, a reweighting algorithm adjusts the perplexity distribution based on the selected examples to enhance the diversity for the next iteration.

Datasets

The framework was evaluated across four distinct NLP tasks and datasets:

  • IMDB: Binary sentiment analysis using movie reviews (25,000 training samples).
  • AG News: Four-class topic classification spanning World, Sports, Business, and Sci/Tech (120,000 training samples).
  • IT Domain: English-to-German machine translation dataset (223,000 sentence pairs).
  • AESLC: Email threads used for abstractive text summarization (~14,400 training samples).

Key Insights and Ideas

  • The Two-Stage Pareto Win: Relying solely on LLMs for data filtering is too computationally expensive, while relying solely on n-gram models lacks semantic depth. ActivePrune's hierarchical approach achieves a Pareto-optimal trade-off between selection quality and computational efficiency.
  • Pruning as a Denoiser: Surprisingly, in several configurations, ActivePrune actually outperformed the baseline that used no pruning at all. The authors hypothesize that the initial perplexity and LLM filtering steps act as a data-cleaning mechanism, removing noisy or poorly formatted examples that would otherwise confuse the active learning model.
  • Decoupled Diversity: By handling diversity via perplexity reweighting outside of the core active learning loop, ActivePrune remains entirely modular and compatible with any standard active learning acquisition function (e.g., Coreset, Least Confidence, IDDS).

Key Results

  • 97.6% Pruning Time Reduction: On the largest dataset (IT Domain), ActivePrune reduced the unlabeled pool pruning time from 36,010 seconds (using full LLM scoring via ASK-LLM) to just 840 seconds.
  • 74.5% End-to-End Speedup: Compared to the standard active learning pipeline without any pool pruning, ActivePrune cut the total end-to-end time for 5 iterations from 166,275 seconds down to 42,240 seconds.
  • Consistently Superior Performance: ActivePrune consistently beat alternative pruning methods (Random, UPS, ASK-LLM, pure Perplexity) across all datasets. For example, on the IT Domain dataset using the IDDS strategy, ActivePrune achieved a SacreBLEU score of 28.97 by iteration 5, compared to the runner-up ASK-LLM score of 25.06.
Detailed performance comparison across iterations

Limitations and Future Work

  • Fairness and Subpopulation Bias: The authors acknowledge that aggressive data pruning can lead to the disproportionate removal of minority groups or specific subpopulations within a dataset. The downstream impact on model fairness and bias was not explicitly evaluated in this study.
  • Privacy Concerns: The privacy implications of filtering out specific data points or potentially exposing sensitive data characteristics via LLM evaluation remain unstudied.
  • Scalability to Web-Scale: While tested on datasets up to 223,000 samples, future work is required to validate ActivePrune's utility on massive, billion-scale datasets.

Summary updated

BibTeX
@misc{azeemi2024language,
  author = {Abdul Hameed Azeemi and Ihsan Ayyub Qazi and Agha Ali Raza},
  title = {{Language Model-Driven Data Pruning Enables Efficient Active Learning}},
  year = {2024},
  eprint = {2410.04275},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.04275},
}
Figure