NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hierarchical sampling for active learning

Sanjoy Dasgupta, Daniel J. Hsu

TL;DR

This paper introduces a novel active learning framework that uses hierarchical clustering to guide label queries. By intelligently "pruning" a cluster tree based on statistical confidence intervals, the algorithm achieves significant reductions in label complexity while remaining "statistically consistent." This means it is guaranteed to converge to the correct classifier, successfully avoiding the common pitfall of sampling bias that plagues many active learning heuristics.

What Problem Does This Paper Address?

Active learning (AL) is the art of choosing which data points to label in order to train a classifier most efficiently. Traditionally, AL falls into two camps: searching the hypothesis space (e.g., querying points near a decision boundary) or exploiting cluster structure (e.g., assuming points in the same cluster share a label).

The authors highlight a major challenge in the field: sampling bias. Most AL heuristics query points that are "interesting" to the current model. However, this makes the training set unrepresentative of the true data distribution. If the initial model is slightly wrong, it might focus all its queries on the wrong region, completely missing "hidden" groups of data and failing to converge to the true optimal classifier even with infinite labels. This paper seeks a method that exploits data structure for speed but maintains the safety and consistency of supervised learning.

Methods

The authors propose a Cluster-Adaptive Active Learning algorithm. The process works as follows:

  1. Hierarchical Clustering: First, perform an unsupervised hierarchical clustering of all unlabeled data to create a tree.
  2. Pruning and Labeling: At any time, the algorithm maintains a "pruning" of the tree—a partition of the data into disjoint clusters.
  3. Selective Sampling: Instead of querying points near a boundary, the algorithm samples points from the current clusters.
  4. Statistical Safety (Admissibility): The core innovation is the use of generalization bounds. For each cluster, the algorithm maintains confidence intervals for the labels. A label is considered "admissible" if it is statistically likely to be the majority label.
  5. Refinement: If a cluster is "mixed" (no clear majority label), the algorithm "descends" the tree, splitting that cluster into its children and sampling more deeply. If a cluster is "pure," it stops querying from that region and moves its budget to more ambiguous areas.
Hierarchical clustering tree illustrating data partitioning and pruning.

This approach ensures that the algorithm doesn't get "stuck" in one region; it only stops sampling a region when it is statistically confident about the labels there.

Datasets

The authors evaluated their approach on three distinct types of data:

  • OCR Digit Images: The MNIST dataset (10,000 training, 2,000 test images).
  • Newsgroup Text: The "20 Newsgroups" dataset, using four pairwise binary classification tasks (e.g., atheism vs. religion). They tested various text representations like TF-IDF and Latent Dirichlet Allocation (LDA).
  • Rare Category Detection: The Statlog Shuttle dataset, which contains 43,500 examples where the smallest class is only 0.014% of the total data.

Key Insights and Ideas

  • The "Two Faces" of AL: The paper beautifully bridges the gap between "version space" active learning (shrinking the set of possible classifiers) and "cluster-based" active learning (exploiting data geometry).
  • Consistency is King: Unlike many heuristics (like simple margin-based sampling), this method is provably consistent. It will never perform worse than standard supervised learning in the long run, but it can be exponentially faster if the data has a helpful cluster structure.
  • The Zoom-Lens Analogy: The algorithm acts like a zoom lens. It starts with a coarse view of the data (the root of the tree) and only zooms in (splits clusters) on regions where the labels are complex or confusing.
  • Handling "Impure" Clusters: The framework doesn't require clusters to be perfectly pure. It uses a parameter ($\beta$) to allow for a controlled amount of error, making it robust to real-world, "messy" data.

Key Results

  • MNIST: The algorithm found a pruning of 50 nodes with ~12% error using only 400 labels. It significantly outperformed random sampling and was more robust than margin-based sampling, which can sometimes suffer from "fortunate" or "unfortunate" bias.
Error rates compared across Random, Margin, and Cluster sampling methods.
  • Rare Category Detection: This was a standout result. To find at least one example of a tiny class (0.014% of the data), random sampling required over 8,000 queries. The hierarchical sampling method found it in just 880 queries by quickly identifying and ignoring large, pure clusters of the majority class.
  • Text Classification: The performance was highly dependent on the quality of the initial clustering. Using LDA or TF-IDF to build the tree led to much better active learning performance than using raw word counts.

Limitations and Future Work

  • Reliance on the Tree: The efficiency of the algorithm is bounded by the quality of the initial hierarchical clustering. If the tree doesn't align well with the actual labels (e.g., a "dog" cluster and a "cat" cluster are mixed together at the bottom of the tree), the speedup will be minimal.
  • Computational Overhead: Maintaining the tree and performing bottom-up passes to update scores adds computational complexity compared to simple random sampling, though the authors note these updates are linear in the size of the tree.
  • Future Directions: The authors suggest that using a small amount of labeled data to guide the construction of the initial hierarchy (rather than doing it purely unsupervised) could further improve performance.

Summary updated

BibTeX
@inproceedings{dasgupta2008hierarchical,
  author = {Sanjoy Dasgupta and Daniel J. Hsu},
  title = {{Hierarchical sampling for active learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2008},
  doi = {10.1145/1390156.1390183},
}
Figure