A Scalable Algorithm for Active Learning

Youguang Chen, Zheyu Wen, George Biros · DOI

Abstract

Active learning aims to select the most informative data points for labeling to minimize human effort while maximizing model performance. While Fisher Information Ratio Active Learning (FIRAL) provides strong theoretical guarantees for generalization error, its cubic complexity relative to classes and dimensions has historically prevented its application to large-scale datasets. This paper introduces Approx-FIRAL, a scalable approximation that utilizes randomized linear algebra and matrix-free computations. By achieving up to a 177x speedup over the original method, Approx-FIRAL enables active learning on benchmarks as large as ImageNet-1k without sacrificing classification accuracy.

Introduction

In the modern machine learning landscape, unlabeled data is often abundant, but high-quality human expertise for labeling remains a significant bottleneck. Active learning addresses this by identifying the most valuable samples to label. However, a persistent gap exists between theoretically grounded algorithms and those capable of handling million-point datasets. Researchers at the University of Texas at Austin have bridged this gap with Approx-FIRAL, a high-performance approximation of the state-of-the-art FIRAL algorithm.

The Computational Challenge of FIRAL

The original FIRAL algorithm, introduced in 2023, is considered a "gold standard" for active learning in multiclass logistic regression due to its rare theoretical bounds. However, its reliance on the Fisher Information Matrix (the Hessian of the loss function) creates a massive computational bottleneck. For a dataset with $n$ points, $d$ dimensions, and $c$ classes, FIRAL’s complexity is $O(c^3(nd^2 + bd^3 + bn))$, where $b$ is the labeling budget. As the number of classes or dimensions grows, the memory and time requirements explode, making it unusable for modern benchmarks like ImageNet-1k, which features 1,000 classes and over a million images.

Methodology: The Approx-FIRAL Framework

Approx-FIRAL transforms the original algorithm through several mathematical and engineering optimizations designed to reduce memory overhead and increase throughput:

1. The RELAX Step (Continuous Optimization)

Instead of solving a hard combinatorial selection problem, the authors relax it into a continuous optimization task. To avoid constructing the massive Hessian matrix, they employ the Hutchinson trace estimator—a randomized method—and a matrix-free Conjugate Gradient (CG) solver. This allows the algorithm to compute gradients using only matrix-vector multiplications, reducing memory overhead from $O(c^2d^2)$ to $O(cd)$.

2. The ROUND Step (Point Selection)

To select the actual $b$ points for labeling from the continuous solution, the authors introduce a block-diagonal approximation. By assuming the Hessian retains only its block-diagonal components, they can utilize Sherman-Morrison-like formulas for rapid updates during the selection process. Surprisingly, this approximation results in virtually no loss in classification accuracy compared to the exact version.

3. High-Performance Implementation

The algorithm is built using Python, CuPy, and MPI, allowing it to leverage GPU acceleration and distribute workloads across multiple nodes. This implementation facilitates the distribution of eigenvalue computations and matrix inversions across a cluster, enabling "strong scaling" on up to 12 GPUs.

Experimental Evaluation

The authors evaluated Approx-FIRAL across a spectrum of datasets, including MNIST, CIFAR-10, Caltech-101, and ImageNet (both ImageNet-50 and ImageNet-1k). Key findings include:

  • Significant Speedups: On the Caltech-101 dataset, Approx-FIRAL was 177x faster than the exact FIRAL. On ImageNet-50, it achieved a 29x speedup.
  • Superior Accuracy: The algorithm consistently outperformed common baselines such as Random Sampling, K-Means clustering, and Entropy-based sampling. These gains were particularly pronounced in non-i.i.d. (imbalanced) scenarios.
  • Unprecedented Scalability: Approx-FIRAL successfully handled ImageNet-1k, a feat previously impossible for FIRAL-based methods.

Discussion and Limitations

While Approx-FIRAL represents a major leap forward, some constraints remain. The current implementation is optimized specifically for NVIDIA hardware via CuPy. Furthermore, the algorithm assumes static feature embeddings (e.g., from DINOv2 or SimCLR). In pipelines where the model is fine-tuned as new labels arrive, the underlying geometry would change, potentially requiring re-computation. Finally, certain parts of the selection step still rely on direct eigenvalue solvers, which could become a bottleneck if feature dimensions $d$ scale into the tens of thousands.

Conclusion

Approx-FIRAL demonstrates that theoretical rigor in active learning does not have to come at the cost of scalability. By replacing exact matrix operations with randomized, matrix-free approximations, the authors have provided a tool capable of performing sophisticated data selection on the world's largest image benchmarks. Future work may further refine these methods using sparse iterative solvers to push the boundaries of feature dimensionality even further.

Summary updated

BibTeX
@inproceedings{chen2024scalable,
  author = {Youguang Chen and Zheyu Wen and George Biros},
  title = {{A Scalable Algorithm for Active Learning}},
  booktitle = {SC},
  year = {2024},
  url = {https://openreview.net/forum?id=DZnFkQdndR},
}
Figure