Abstract
Batch active learning is a popular approach for efficiently training machine learning models on large, initially unlabelled datasets by repeatedly acquiring labels for batches of data points. However, many recent batch active learning methods are white-box approaches and are often limited to differentiable parametric models: they score unlabeled points using acquisition functions based on model embeddings or first- and second-order derivatives. In this paper, we propose black-box batch active learning for regression tasks as an extension of white-box approaches. Crucially, our method only relies on model predictions. This approach is compatible with a wide range of machine learning models, including regular and Bayesian deep learning models and non-differentiable models such as random forests. It is rooted in Bayesian principles and utilizes recent kernel-based approaches. This allows us to extend a wide range of existing state-of-the-art white-box batch active learning methods (BADGE, BAIT, LCMD) to black-box models. We demonstrate the effectiveness of our approach through extensive experimental evaluations on regression datasets, achieving surprisingly strong performance compared to white-box approaches for deep learning models.
Introduction
Active learning (AL) aims to minimize labeling costs by selecting the most informative data points for annotation. In modern deep learning, batch active learning is the standard, where groups of points are selected simultaneously. However, state-of-the-art batch AL methods like BADGE or BAIT are typically "white-box," requiring access to model internals such as gradients or embeddings. This limits their use with third-party APIs or non-differentiable models like Random Forests.
We introduce B³AL (Black-Box Batch Active Learning), a framework that achieves high performance using only model predictions. By bypassing the need for internal model access, B³AL democratizes advanced active learning for a broader range of architectures and deployment scenarios.
Methodology: The Predictive Covariance Kernel
The core of B³AL is the Predictive Covariance Kernel. Instead of analyzing parameter changes in weight space, we examine how predictions vary across a small ensemble of models.
- Ensemble Construction: We use a small bootstrapped ensemble (typically 10 members) to represent the model's uncertainty.
- Empirical Kernel: We calculate the covariance of predictions across these ensemble members to build a similarity matrix (kernel).
- Black-Box Bridge: We demonstrate that traditional gradient-based kernels are essentially first-order Taylor approximations of this predictive covariance kernel. B³AL provides a more direct measurement of uncertainty in the prediction space.
This framework allows us to "black-box-ify" existing algorithms like BADGE, BAIT, and LCMD by simply replacing their internal gradient kernels with our prediction-based kernel.
Experimental Evaluation
We evaluated B³AL across 15 large tabular regression datasets from the UCI and OpenML repositories, covering domains from robotics (SARCOS) to physics (SGEMM). We compared B³AL against standard white-box implementations using both Deep Neural Networks (DNNs) and Random Forests.
Results and Discussion
Our experiments reveal that B³AL is not just a viable alternative to white-box methods, but often superior, particularly in low-data regimes.
Key Findings:
- Deep Learning Parity: On DNNs, B³AL matched or outperformed white-box methods. As shown in the figure, B³AL (solid lines) often maintains lower RMSE than white-box counterparts (dashed lines) as the acquisition batch size increases.
- Enabling AL for Random Forests: B³AL successfully extends high-performance batch AL to non-differentiable models. In our tests, B³AL strategies significantly outperformed uniform random sampling for Random Forests.
- Robustness to Batch Size: While many AL methods degrade as the batch size ($N_{batch}$) grows, B³AL strategies like BALD and BADGE remain more competitive against the uniform baseline compared to their white-box versions.
Conclusion
B³AL proves that gradients are not a prerequisite for state-of-the-art active learning. By utilizing predictive covariance from ensembles, we can apply sophisticated batch AL strategies to any model that provides predictions. Future work will focus on extending this framework to classification tasks and optimizing the computational overhead of ensemble training.
Summary updated