Adaptive Batch Sizes for Active Learning: A Probabilistic Numerics Approach

Masaki Adachi, Satoshi Hayakawa, Martin Jørgensen, Xingchen Wan, Vu Nguyen, Harald Oberhauser, Michael A. Osborne

Abstract: Active learning parallelization is widely used, but typically relies on fixing the batch size throughout experimentation. This fixed approach is inefficient because of a dynamic trade-off between cost and speed—larger batches are more costly, smaller batches lead to slower wall-clock run-times—and the trade-off may change over the run (larger batches are often preferable earlier). To address this trade-off, we propose a novel Probabilistic Numerics framework that adaptively changes batch sizes. By framing batch selection as a quadrature task, our integration-error-aware algorithm facilitates the automatic tuning of batch sizes to meet predefined quadrature precision objectives, akin to how typical optimizers terminate based on convergence thresholds. This approach obviates the necessity for exhaustive searches across all potential batch sizes. We also extend this to scenarios with constrained active learning and constrained optimization, interpreting constraint violations as reductions in the precision requirement, to subsequently adapt batch construction. Through extensive experiments, we demonstrate that our approach significantly enhances learning efficiency and flexibility in diverse Bayesian batch active learning and Bayesian optimization applications.

Introduction

In Active Learning (AL) and Bayesian Optimization (BO), parallelizing data collection via batches is standard practice to leverage parallel computing resources. However, most existing frameworks rely on a fixed batch size throughout the entire experimental run. This static approach is inherently inefficient due to the dynamic trade-off between query cost and wall-clock speed. Early in a search, larger batches facilitate broad exploration, whereas later stages often benefit from smaller, more targeted batches. Furthermore, real-world applications frequently involve unknown constraints where a fixed, large batch size might lead to significant resource waste on infeasible points.

Methodology: AdaBatAL

The proposed framework, AdaBatAL (Adaptive Batch Active Learning), addresses these inefficiencies by re-framing batch selection as a Probabilistic Numerics (PN) task.

Batch Selection as Quadrature

Instead of selecting a fixed number of points, AdaBatAL treats the problem as a Kernel Quadrature (KQ) task. The goal is to determine the minimum number of points required to represent an acquisition function (the target distribution) within a predefined error tolerance $\epsilon$. This shifts the focus from quantity to precision, allowing the algorithm to be integration-error-aware, similar to how classical optimizers terminate based on convergence thresholds.

Efficient Optimization via LP

To implement this efficiently, the authors utilize the Nyström method for kernel approximation and formulate the selection process as a Linear Programming (LP) problem. The LP solver naturally favors sparse solutions, which in this context translates to finding the smallest possible batch size that satisfies the precision requirement.

Adaptive Constraints and Safety

When unknown constraints are present, AdaBatAL calculates an expected violation rate. By linking the tolerance parameter $\epsilon_{LP}$ to this rate, the algorithm automatically reduces the batch size in high-risk regions. This "risk-aware precision" ensures safety and budget conservation while allowing for aggressive exploration in safe zones.

Overview of the AdaBatAL framework for feasible region estimation and batch sampling under constraints.

Experimental Evaluation

The researchers evaluated AdaBatAL against 17 baseline methods across 14 diverse tasks, including synthetic benchmarks (e.g., Hartmann-6D, Ackley-23D) and real-world applications in materials science (ionic conductivity), drug discovery (anti-malarial drugs), and social network analysis.

Performance and Efficiency

AdaBatAL consistently outperformed established baselines such as Thompson Sampling, TurBO, and SOBER. As shown in the performance metrics, the method achieves lower regret with fewer total evaluations compared to fixed-batch methods.

Performance comparison showing log regret and adaptive batch size evolution over iterations.

Dynamic Adaptation

A key observation from the experiments is the algorithm's ability to adaptively "squeeze" batch sizes. It typically begins with larger batches for initial exploration and naturally transitions to smaller batches as it converges on optimal regions, optimizing the cost-speed trade-off in real-time without requiring a brute-force search for the optimal batch size.

Conclusion

AdaBatAL provides a flexible and efficient framework for adaptive batching in AL and BO. By leveraging Probabilistic Numerics, it moves beyond the limitations of fixed batch sizes, offering a principled way to balance exploration, exploitation, and safety. While the method shows promise across various domains, future work will address scalability in high-dimensional spaces with slow kernel eigenvalue decay and the extension to asynchronous batch settings.

Summary updated

BibTeX
@inproceedings{adachi2024adaptive,
  author = {Masaki Adachi and Satoshi Hayakawa and Martin Jørgensen and Xingchen Wan and Vu Nguyen and Harald Oberhauser and Michael A. Osborne},
  title = {{Adaptive Batch Sizes for Active Learning: A Probabilistic Numerics Approach}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=raS7WjL5f9},
}
Figure