arXiv:2609.31197cs.LGSep 2026

Manuscript Offprint

arXiv:2609.31197

ALF: An Active Learning Framework for Scientific Discovery

Shikha Surana, Alex Hawkins-Hooker, Olivia Gallup, Christoph Brunken, Jules Tilly, Paul Duckworth

Abstract

Machine learning for scientific discovery is almost systematically data bound. Producing relevant high quality data, under budget constraints, is amongst the most promising ways to advance the field. Active learning (AL) offers promise wherever labelling requires expensive experiment, measurement, or simulation. Most existing tools cover only part of the data acquisition loop, and typically focus on either offline benchmarking or online deployment, but not both. We present ALF, a modular AL Framework that runs the full data acquisition loop via five modular components. One clear API for both settings: offline, against an existing dataset for controlled and reproducible experimentation; and online, against an oracle for acquiring new candidates in real-world deployments. ALF is open-source and available at https://github.com/instadeepai/alf.

1 Introduction

Across many scientific domains, large combinatorial search-spaces mean that exhaustive data screening is rarely possible. Coupled with potentially high cost of acquiring new measurements, e.g. wet-lab assays or MD simulations, the practical problem becomes one of targeted data acquisition. That is, given budget constraints, what new data should we acquire to maximally learn about our objective?

Active learning (AL) [Settles, 2011] aims to address this question through an iterative campaign. In each round, a surrogate model is fit on the current (labelled) dataset. Next, an acquisition function uses the model's posterior predictive distribution to score how informative future candidates (unlabelled data) are expected to be on the objective. An oracle then labels those selected candidates, and they, along with their labels, are added to the training dataset for the next round. The oracle is the reference the campaign treats as ground truth. The goal of the campaign is to maximally utilise its constrained measurement budget to best serve the objective. Through careful treatment of acquisition strategies, the same data acquisition loop can support Bayesian optimisation (BO) objectives also [Rasmussen and Williams, 2006, Garnett, 2023], scoring unlabelled candidates under the posterior most likely to maximise an unknown function, rather than AL information gain strategies.

In practice, data acquisition is typically benchmarked offline against an available labelled dataset, then deployed online against an expensive oracle of interest. Yet, these two settings are usually served by different and incompatible tools. Offline, the possible search space is derived from a static

*Correspondence: s.surana@instadeep.com

†^{\dagger}Work completed during an internship at InstaDeep.

Preprint.

(labelled) dataset, and search is reduced to evaluating over the dataset and the oracle is a simple lookup table. Online however, a search function or generative model is required to propose new candidates each round, and the oracle is queried to score those selected by the acquisition function. We posit that the same data acquisition loop can be utilised for both settings. We present ALF, an ask/tell framework for scientific discovery and make the following technical contributions:

  1. Single offline and online API. ALF provides a single, clean API for offline campaigns (against a dataset), as for online campaigns (against an oracle). This allows for detailed benchmarking and rapid real-world deployment.

  2. Modular architecture. ALF provides five modular and interchangeable components: datasets, surrogates, acquisition functions, search functions, and oracle classes. Each with standard, lightweight interfaces, allowing for extensions and plug-and-play experimentation.

  3. Data type agnostic. ALF is build invariant to data modality, which means the same clean API can be utilised across multiple scientific domains as we show in section 4.

References (58)