Active Few-Shot Learning for Text Classification

Saeed Ahmadnia, Arash Yousefi Jordehi, Mahsa Hosseini Khasheh Heyran, Seyed Abolghasem Mirroshandel, Owen Rambow, Cornelia Caragea

Abstract

Few-Shot Learning (FSL) has become a cornerstone of modern NLP, yet its performance is notoriously sensitive to the specific examples chosen for training. This paper investigates an iterative active learning framework designed to strategically select the most informative samples for few-shot text classification. By integrating uncertainty and representativeness measures, the proposed method demonstrates that systematic "cherry-picking" of data for fine-tuning significantly outperforms random selection. Furthermore, the results show that smaller models fine-tuned through this active process can surpass the performance of much larger models utilizing In-Context Learning (ICL).

Introduction

Few-Shot Learning (FSL) aims to teach models new tasks using only a handful of examples. Currently, the field is divided between two dominant paradigms: In-Context Learning (ICL), where examples are provided within a prompt, and Fine-Tuning (FT), where model weights are updated on a small dataset.

A significant challenge in FSL is the high variance in performance caused by sample selection; a few noisy or redundant examples can drastically reduce accuracy. This research addresses this "dirty secret" of FSL by asking whether Active Learning (AL) can be used to systematically identify the most valuable unlabeled samples to include in a few-shot support set.

Methodology

The authors propose an iterative pipeline that moves away from the static, "one-and-done" approach typical of traditional few-shot learning.

The Iterative Loop

The framework follows a five-step cycle:

  1. Embed: A pre-trained model converts unlabeled text into vector representations (embeddings).
  2. Sample: A strategic sampling method selects $M$ instances from the unlabeled pool.
  3. Label & Augment: An oracle (human or automated) labels these instances, which are then added to the support set.
  4. Fine-Tune: The model is fine-tuned on the updated support set.
  5. Repeat: The fine-tuned model re-evaluates the remaining unlabeled pool to inform the next round of selection.

Novel Sampling Strategies

Beyond standard methods like Random and Uncertainty sampling, the paper introduces two hybrid strategies designed to balance informativeness with diversity:

  • Uncertainty Representative (UnRep): This method identifies a large batch of uncertain samples and then uses K-Means clustering to select a diverse subset from that batch.
  • Cluster Uncertainty (ClUn): This approach first clusters the entire unlabeled pool to ensure broad coverage of the data space, then selects the most uncertain sample from each cluster.

Experimental Setup

The approach was evaluated across five distinct classification tasks to ensure robustness:

  • MPQA Opinion Corpus: Three sentiment-related tasks focusing on Type (e.g., arguing vs. sentiment), Polarity (positive vs. negative), and Intensity (low to high).
  • AG News: A four-class news topic classification dataset.
  • Amazon Reviews: A 5-star rating classification task.

Key Insights and Results

The Synergy of Diversity and Uncertainty

The research highlights that uncertainty alone is insufficient for optimal learning. Selecting only samples where the model is confused often leads to the selection of redundant edge cases. By combining clustering (diversity) with uncertainty, the model more efficiently learns the boundaries of the entire data space.

Fine-Tuning vs. In-Context Learning

A primary finding is that fine-tuning smaller models (such as BART or FLAN-T5) using active selection often outperforms much larger decoder-only models (such as Llama 3.1 or Mistral) using ICL. While ICL performance tends to stagnate or even decline as more examples are added to a prompt, active fine-tuning continues to show performance gains as the support set grows.

Performance Gains

The best iterative method, FLAN-T5-Rep(En)-ClUn(En), consistently outperformed strong baselines. On the Amazon Reviews task, the method exceeded previous benchmarks by 12.4 percentage points. On AG News, it achieved a 4.5-point improvement. Even with a small support set of $K=100$, the iterative approach outperformed non-iterative methods by an average of 1.2% to 1.6% across all tasks.

Batch Efficiency

The authors found that smaller, more frequent updates (e.g., 5 samples over 10 iterations) yielded better results than larger, infrequent updates. This suggests that frequent "course-correction" allows the model to refine its selection strategy more effectively.

Conclusion and Future Work

This study demonstrates that active learning is a powerful tool for maximizing the efficiency of few-shot text classification. By strategically selecting samples that are both uncertain and representative, researchers can achieve high performance with minimal labeled data.

Future research directions include expanding the scope to generative tasks and non-English languages, as well as exploring semi-supervised learning to leverage the remaining unlabeled data in the pool more effectively. While iterative fine-tuning introduces computational overhead, the performance gains suggest it is a viable and often superior alternative to massive-scale In-Context Learning.

Summary updated

BibTeX
@inproceedings{ahmadnia2025active,
  author = {Saeed Ahmadnia and Arash Yousefi Jordehi and Mahsa Hosseini Khasheh Heyran and Seyed Abolghasem Mirroshandel and Owen Rambow and Cornelia Caragea},
  title = {{Active Few-Shot Learning for Text Classification}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.340},
}
Figure