Active Slice Discovery in Large Language Models

Minhui Zhang, Prahar Injer, Yoav Wald, Elliot Creager

TL;DR

This paper introduces "Active Slice Discovery," a novel approach to efficiently identify systematic errors (error slices) in Large Language Models (LLMs) by intelligently querying human annotators. The method significantly reduces the need for manual labeling, achieving competitive accuracy with as little as 2-10% of the data.

What Problem Does This Paper Address?

Large Language Models (LLMs) are powerful but can exhibit systematic errors on specific subsets of data, known as "error slices." For example, a model might perform poorly when classifying toxic comments related to a particular demographic. Identifying these error slices is crucial for understanding and improving LLM performance. However, manually annotating data to find these slices is time-consuming and expensive. This paper addresses the challenge of efficiently discovering these error slices by proposing an active learning-based approach that minimizes the need for human annotation.

Methods

The core of this paper is the formalization of Active Slice Discovery. This approach frames the problem as an active learning task where the goal is to identify data points belonging to an error slice. Instead of randomly sampling data, an "active learner" intelligently selects data points that are most informative for confirming or refuting the existence of a slice. The process involves:

  1. Feature Representation: Using internal representations from LLMs, such as raw layer embeddings or sparse activations from Sparse Auto-Encoders (SAEs), to capture the nuances of the data.
  2. Slice Classifier: Training a classifier (e.g., MLP or SVM) to predict slice membership based on these representations.
  3. Active Learning Query Strategy: Employing various strategies (e.g., Least Confidence, Prediction Entropy, Breaking Ties) to query an oracle (human annotator) for slice membership labels on the most uncertain or informative unlabeled data points.

This iterative process allows the model to progressively refine its understanding of the error slice with minimal human input.

Datasets

The experiments were conducted on the Jigsaw Toxicity dataset, a widely used benchmark for toxicity classification. The paper also utilizes Llama 3.1-8B as the LLM for generating internal representations.

Key Insights and Ideas

  • Active learning is highly effective for slice discovery: The paper demonstrates that active learning can drastically reduce the annotation burden for identifying error slices, making the process more practical.
  • SAE representations offer stability and efficiency: Sparse Auto-Encoder (SAE) representations, when used, lead to more stable active learning training curves and allow simple models to achieve competitive accuracy.
  • Uncertainty-based strategies are superior: Query strategies that focus on model uncertainty (e.g., Least Confidence, Prediction Entropy) consistently outperform random sampling and other strategies in identifying slices.
  • Slice characteristics matter: The ease of discovering a slice depends on its nature; identity-based slices (e.g., "female," "christian") are easier to detect than reaction-based slices (e.g., "disagree," "sad").

Key Results

The proposed Active Slice Discovery method achieved significant results:

  • High Sample Efficiency: Competitive accuracy was reached using as little as 2-10% of the available slice membership information, a substantial improvement over random sampling.
  • Top Performance: An MLP classifier with raw LLM embeddings achieved a 85.8% detection accuracy. Using SAE features with an SVM achieved 83.0% accuracy with significantly fewer labeled examples (1,460 vs. 3,500).
  • Outperforming Baselines: The active learning strategies consistently outperformed random subsampling baselines.

Limitations and Future Work

  • Hyperparameter Tuning: While effective, some configurations (like the MLP with raw embeddings) require careful hyperparameter tuning.
  • Slice Complexity: The paper notes that the effectiveness of discovery varies with slice characteristics, with more complex or heterogeneous slices being harder to identify.
  • Future Work: The authors suggest that their implemented pipeline, which allows for flexible combinations of LLMs, representations, classifiers, and active learning strategies, will be made publicly available to support future research in this area. Further exploration into more complex slice discovery scenarios and advanced active learning strategies is also implied.

Summary updated

BibTeX
@inproceedings{zhang2025active,
  author = {Minhui Zhang and Prahar Injer and Yoav Wald and Elliot Creager},
  title = {{Active Slice Discovery in Large Language Models}},
  booktitle = {Reliable ML @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=aCPGdwoz3Z},
}
Figure