CoverICL: Selective Annotation for In-Context Learning via Active Graph Coverage

Costas Mavromatis, Balasubramaniam Srinivasan, Zhengyuan Shen, Jiani Zhang, Huzefa Rangwala, Christos Faloutsos, George Karypis

Abstract

In-Context Learning (ICL) allows Large Language Models (LLMs) to perform tasks using only a few examples in the prompt. However, performance is highly sensitive to the specific examples selected. This paper introduces CoverICL, a novel selective annotation algorithm that identifies the most informative examples by combining semantic diversity with model-specific uncertainty. By solving a Maximum Coverage problem on an active subgraph of "hard" examples, CoverICL consistently outperforms existing methods by up to 4.6% in accuracy and demonstrates significant budget efficiency, often achieving superior results with half the labels of state-of-the-art alternatives.

Introduction: The Challenge of Selective Annotation

Large Language Models (LLMs) have revolutionized natural language processing through In-Context Learning (ICL), where a model adapts to a task based on a few-shot prompt without weight updates. Despite its power, ICL is notoriously sensitive to example selection. In real-world scenarios where labeling budget is limited (e.g., only 20 examples), identifying the most informative data points is a critical Active Learning (AL) challenge.

Traditional strategies often fall short in this low-budget regime. Uncertainty sampling is unreliable when the model has seen no initial labels, while diversity sampling may select examples that are representative of the data distribution but "easy" for the specific LLM to solve. CoverICL addresses this gap by selecting examples that are both semantically diverse and specifically targeted at the model's weaknesses.

Methodology: The CoverICL Framework

CoverICL is an adaptive, graph-based selection algorithm that operates in three primary stages:

  1. Graph Construction: A nearest-neighbor graph of all unlabeled candidates is built using semantic similarity (e.g., SBERT embeddings) to capture relationships between data points in a model-agnostic way.
  2. Uncertainty Estimation: The target LLM predicts labels for the unlabeled pool. Examples with high Negative Log-Likelihood (NLL) are flagged as "hard examples," making the process model- and task-aware.
  3. Active Graph Coverage: This is the core innovation. CoverICL constructs an "active subgraph" consisting only of these hard examples. It then solves a Maximum Coverage (MAXCOVER) problem to select a budget $B$ of examples that "cover" (are neighbors to) the maximum number of hard examples in the graph.
Overview of the CoverICL and CoverICL+ selection process, utilizing graph coverage over model-identified hard examples.

The iterative version, CoverICL+, further enhances this by re-evaluating model uncertainty after each batch of annotations, allowing the selection process to evolve as the model's understanding improves.

Experimental Results: Performance and Efficiency

The researchers evaluated CoverICL across ten diverse datasets—including topic classification, sentiment analysis, NLI, and reasoning—and seven LLMs ranging from 1.3B to 65B parameters.

Key Findings

  • Accuracy Boost: CoverICL outperformed existing AL methods for ICL by 2.0% to 4.6% accuracy points on average. On challenging tasks like GSM8K (math), it improved accuracy by 4.04% over the previous best method (Votek) and 16.54% over zero-shot baselines.
  • Budget Efficiency: CoverICL+ demonstrated remarkable efficiency; for instance, using only 10 labels often outperformed state-of-the-art methods that required 20 labels.
  • Cross-Task Robustness: The method proved effective across various task categories, maintaining a performance lead as the annotation budget increased from 5 to 45 examples.
Performance of CoverICL+ compared to baselines across different task categories and annotation budgets.

Conclusion and Future Work

CoverICL represents a significant advancement in selective annotation for ICL by bridging the gap between model-agnostic diversity and model-aware uncertainty. By focusing diversity search on the "hard" regions of the data space, it ensures that limited annotation budgets are spent on the most informative examples. While highly effective, future work may explore reducing the computational cost of initial uncertainty estimation and improving robustness against adversarial data in the unlabeled pool.

Summary updated

BibTeX
@inproceedings{mavromatis2024covericl,
  author = {Costas Mavromatis and Balasubramaniam Srinivasan and Zhengyuan Shen and Jiani Zhang and Huzefa Rangwala and Christos Faloutsos and George Karypis},
  title = {{CoverICL: Selective Annotation for In-Context Learning via Active Graph Coverage}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.1185},
}
Figure