Streaming Active Learning with Deep Neural Networks

Akanksha Saran, Safoora Yousefi, Akshay Krishnamurthy, John Langford, Jordan T. Ash

Abstract

Active learning (AL) aims to maximize model performance under a limited labeling budget by selecting the most informative data points. While traditional AL assumes a "pool-based" setting where the entire unlabeled dataset is accessible, real-world applications often require "streaming" active learning, where decisions must be made instantly as data arrives. This paper introduces VeSSAL (Volume Sampling for Streaming Active Learning), an algorithm designed for deep neural networks that operates in a single pass over the data. VeSSAL effectively balances uncertainty and diversity without requiring hand-tuned hyperparameters, achieving performance parity with state-of-the-art offline methods while offering significant computational speedups.

Introduction

Deep learning models are notoriously data-hungry, yet the cost of human labeling remains a primary bottleneck. Active learning mitigates this by identifying the most valuable samples to label. However, the standard "pool-based" paradigm—where an algorithm ranks an entire static dataset—is increasingly impractical for high-volume streams or memory-constrained environments, such as augmented reality (AR) devices or large-scale distributed databases.

Streaming active learning presents a more realistic but challenging alternative: the model must decide whether to query a label for a sample the moment it is encountered, without knowing what future samples look like. Previous attempts at streaming AL for deep learning often struggled with maintaining sample diversity or required manual tuning of query thresholds, making them brittle in the face of changing data distributions.

Methodology: The VeSSAL Framework

VeSSAL (Volume Sampling for Streaming Active Learning) addresses these challenges through three core technical innovations: Volume Sampling, an automated query tuner, and high-speed computational updates.

Volume Sampling and Diversity

Rather than selecting samples based solely on model uncertainty, VeSSAL utilizes a streaming approximation of a Determinantal Point Process (DPP). By calculating scores based on gradient embeddings—which represent how much a model's weights would change if trained on a specific point—VeSSAL identifies samples that are both informative (high uncertainty) and distinct from previously selected samples (high diversity). This prevents the common pitfall of wasting a labeling budget on redundant data points.

The Auto-Tuner

Setting a query threshold in a stream is traditionally difficult; a threshold that is too aggressive may exhaust the budget too early, while one that is too conservative may leave labels unused. VeSSAL introduces a mathematical auto-tuning mechanism that dynamically adjusts the sampling probability. This allows the algorithm to maintain a target query rate even when the data distribution shifts (non-I.I.D. data), ensuring the budget is distributed effectively across the entire stream.

Computational Efficiency

To remain viable for real-time applications, VeSSAL leverages the Woodbury matrix identity to update its internal state. This mathematical optimization allows the algorithm to process incoming data in constant time relative to the batch size. Consequently, VeSSAL is orders of magnitude faster than traditional offline methods like BADGE, which require expensive re-computations over the entire data pool.

Experimental Evaluation

The researchers evaluated VeSSAL against standard benchmarks (MNIST, SVHN, CIFAR-10) and the CLOW (Continual Learning Objects in the Wild) dataset. CLOW is particularly relevant as it consists of non-I.I.D. data collected from AR headsets in residential environments, where the data distribution shifts as users move between different rooms.

Key Results

  1. Performance Parity: Despite the constraint of seeing each data point only once, VeSSAL performed competitively with state-of-the-art offline algorithms. In head-to-head comparisons using a pairwise penalty matrix, VeSSAL outperformed all other streaming baselines and nearly matched the performance of BADGE, an offline method that requires full access to the data pool.
  2. Massive Speedups: VeSSAL demonstrated superior scalability. For a batch size of 50,000 samples, VeSSAL selected points in mere seconds, whereas offline methods like Coreset or BADGE required nearly two hours to complete the same task.
  3. Label Efficiency: The study measured "Label Amplification," or the ratio of random samples needed to match the accuracy of the AL method. VeSSAL consistently achieved high amplification, demonstrating that it extracts maximum utility from every human-provided label.
  4. Robustness to Drift: The auto-tuning mechanism proved highly effective at handling "feature drift." As the data stream shifted (e.g., from kitchen objects to bedroom objects in the CLOW dataset), VeSSAL automatically adapted its sampling threshold to maintain the desired query rate.

Discussion and Limitations

VeSSAL demonstrates that streaming is not a handicap for active learning; rather, with the right diversity and thresholding mechanisms, streaming algorithms can be as effective as their offline counterparts while being significantly more efficient.

However, some limitations remain for future research. The current framework assumes the total number of classes is known beforehand, which may not hold in open-ended environments where new categories appear over time. Additionally, the model assumes a uniform cost for all labels, whereas in practice, some samples may be more difficult or time-consuming for humans to annotate than others. Future work may also explore the use of penultimate layer embeddings as a faster alternative to full gradient embeddings.

Conclusion

VeSSAL represents a significant step forward in making active learning practical for real-world, high-velocity data streams. By combining volume sampling with an automated tuning mechanism, it provides a robust, hyperparameter-free solution that bridges the gap between theoretical active learning and the practical constraints of modern deep learning deployments.

Summary updated

BibTeX
@inproceedings{saran2023streaming,
  author = {Akanksha Saran and Safoora Yousefi and Akshay Krishnamurthy and John Langford and Jordan T. Ash},
  title = {{Streaming Active Learning with Deep Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=SWdcYAZap9},
}
Figure