arXiv:2610.23477stat.MLOct 2026

Manuscript Offprint

arXiv:2610.23477

Towards optimal selection schedules for online active learning

Hugo Cui, Francesca Mignacco, Francesco Mori

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We consider the problem of online linear classification, where a stream of unlabeled samples is available, and annotation is costly. We investigate the optimal query policy, that prescribes whether and when a sample should be labeled and used for a training step, or instead discarded, so as to minimize a given objective. We focus on the realizable case, under Gaussian design, in the high-dimensional regime where data dimension and number of unlabeled samples grow proportionally. We consider two objectives: 1) the generalization error under a labeling budget, and 2) a cumulative cost function where mistakes have unit cost and queries cost Δ\Delta. We first show that the myopic policies that greedily minimize at all times the increment in the objective correspond to either small or intermediate-margin policies, that prescribe the selection of samples whose margins fall within certain intervals that shrink with time. Within this class, we numerically ascertain the optimal schedules for the selection thresholds that minimize the final values of the objectives. Taking inspiration from the myopic policy for the cumulative cost, we design a very simple query policy schedule that we compare to other proposed heuristics, on synthetic data and real medical image datasets. Finally, we discuss myopic policies for two-layer neural networks, and exemplify how naive margin-based policies can cease to be optimal.

Introduction

Many breakthroughs in modern deep learning were achieved by training models on ever-accruing volumes of data. Yet, there exist important domains of application where labeled data is scarce. Examples include medical diagnosis (Liu, 2004), rare languages (Kholodna et al., 2024) or molecular modeling (Felis and Dononelli, 2025), where data annotation requires either a human expert, or expensive ab-initio simulations, resulting in prohibitive labeling costs. In such scenarios, it is thus essential to carefully select which samples, among a stream of unlabeled data, should be labeled.

In the present manuscript, we consider the online setting, where unlabeled data points are viewed sequentially. For each sample, the model can decide either to output a prediction, and incur a cost in case of mistake, or to query the label from a (e.g., human) expert, paying the associated annotation cost, and use the thus labeled instance to perform a gradient step, furthering its training. For example, in medical applications, a diagnosis must be issued by the model to every patient, unless it is determined further examinations need to be performed first by an expert. Querying such additional examinations is however typically costly, and thus must be done sparingly. If performed however, such examinations provide an additional data point that can improve the model accuracy, thereby reducing the frequency of future expert queries. How then to choose which labels to query, and when?

Many selection policies were proposed in the literature on online active learning (Dasgupta et al., 2005; Hanneke, 2014) and selective sampling (Réveillard et al., 2025; Hanneke and Yang, 2021; Cesa-Bianchi et al., 2004, 2009), some of which were shown to achieve the optimal rates of mistakes, queries or accuracy. These works, however, typically fix the form of the query policy in advance and analyze its performance. Here, we take a complementary approach and ask what the optimal policy schedule is. We consider the classical problem of online binary linear classification in the realizable case with the Adatron learning rule (Anlauf and Biehl, 1989; Motzkin and Schoenberg, 1954), under Gaussian design, in the high-dimensional limit where the dimension d of the samples is comparable to the total number n of unlabeled data (Seung et al., 1992a; Kinzel and Rujan, 1990; Watkin and Rau, 1992; Engel and van den Broeck, 2001; Rattray and Saad, 1997). Using techniques from statistical physics and control theory, we precisely ascertain the optimal query policy schedule among a class of margin-based policies that minimizes, down to the constant, a given cost objective — either the generalization error under a labeling budget, or the cumulative number of mistakes and queries.

More precisely, we distinguish between myopic policies, which greedily minimize at all times the instantaneous increment in the objective, and horizon-optimized schedules, obtained by numerically optimizing the selection policies across all training times to minimize the objective at the end of training. Two classes of margin-based policies will prove of particular interest: inner-margin policies, which query only samples within a threshold distance of the decision boundary, and intermediate-margin policies, which query samples whose distance lies between two thresholds, thus discarding both the closest and the farthest samples. Our main contributions are:

  • We first study policies that minimize the generalization error given nn unlabeled samples, under a total query budget γn\gamma n, with γ∈(0,1]\gamma \in (0,1]. We show that the myopic strategy is of the intermediate-margin type. Within this class, we then compute the horizon-optimized threshold schedules, which achieve a lower final generalization error than random, myopic, and inner-margin strategies.

  • We then consider the setting where mistakes have unit cost and queries cost Δ>0\Delta > 0. We derive an exact expression for the myopic policy, showing that it is an inner-margin rule with shrinking threshold. We propose a simple selection heuristic inspired therefrom, and compare its performance with other baselines on synthetic data and real medical image datasets. In the same setting, the horizon-optimized schedule is again an inner-margin rule, with higher query rate early in training, outperforming both the myopic and the random policies, with gains that grow with Δ\Delta.

  • Finally, we study myopic policies for cumulative-cost minimization in two-layer neural networks, allowing them to take as an argument the full vector of preactivations. We exemplify how inner-margin policies naively applied to the network readout are suboptimal.

The code used in the manuscript can be found in the following repository.

References (99)