Cost-Minimising Strategies for Data Labelling: Optimal Stopping and Active Learning

Christos Dimitrakakis, Christian Savu-Krohn

TL;DR

This paper introduces a cost-minimizing framework for data labeling, treating it as an optimal stopping problem. They propose a Bayesian stopping algorithm (OBSV) that balances labeling cost with model performance, demonstrating its effectiveness in reducing costs compared to ad-hoc methods.

What Problem Does This Paper Address?

In many machine learning applications, acquiring raw data is cheap, but obtaining labels is expensive and time-consuming. While active learning aims to select informative data points, it often doesn't explicitly address when to stop labeling. This paper tackles this gap by framing data labeling as an optimal stopping problem, where the goal is to minimize a total cost function that includes both the cost of acquiring labels and the expected generalization error of the resulting model. This allows for principled decision-making on when to halt the labeling process.

Methods

The core of the paper is the development of a Bayesian framework for optimal stopping. They define a cost function $C_y = E[R|f(t)] + \gamma t$, where $E[R|f(t)]$ is the expected generalization error of a model trained on $t$ labeled examples, and $\gamma$ is the cost per label. This cost function is then used to derive stopping rules.

The proposed algorithm, OBSV (Optimal Bayesian Stopping with Validation), is a one-step bounded stopping algorithm. It maintains a belief distribution over possible model convergence behaviors and uses independent validation data to estimate the current error. The algorithm decides to stop when the expected cost of acquiring additional labels outweighs the expected reduction in generalization error. They also explore different theoretical convergence curves (e.g., $O(1/t)$, $O(1/\sqrt{t})$, exponential) as models for how the error decreases.

Datasets

The paper uses two publicly available datasets for evaluation:

  • Wisconsin breast cancer data set (wdbc): A dataset with 569 examples.
  • Spambase database (spam): A dataset with 4601 examples.

These datasets were used in conjunction with a 10-class classification problem with equivariant Gaussian distributions in an 8-dimensional space for illustrative purposes in Figure 1.

Key Insights and Ideas

  • Cost-aware stopping is crucial: Explicitly modeling the cost of labeling allows for more efficient data acquisition than simply stopping based on arbitrary criteria or when a certain accuracy is reached.
  • Bayesian inference for stopping: A Bayesian approach provides a principled way to maintain uncertainty about model performance and make informed decisions about continuing or stopping the labeling process.
  • OBSV algorithm balances cost and performance: The proposed OBSV algorithm effectively balances the cost of labeling with the expected improvement in model performance, leading to more cost-effective labeling strategies.
  • Mixed sampling can be beneficial: When combined with a cost-aware stopping criterion like OBSV, mixed sampling strategies (which strategically select points) can offer advantages over purely random sampling, though the benefits might be marginal in some cases.
  • Evaluation metrics matter: The paper highlights the need for evaluation metrics that directly incorporate labeling costs, moving beyond traditional accuracy-based comparisons.

Key Results

  • The OBSV algorithm, when compared to an "oracle" (which knows the optimal stopping time), shows stopping times that are relatively close and often stop earlier, indicating cost savings.
  • The extra cost incurred by using OBSV instead of the oracle is bounded, typically by factors of 2-5 for the wdbc dataset and around 0.5 for the spam dataset.
  • For mixed sampling strategies, OBSV stops earlier or around the same time as the oracle compared to random sampling, suggesting that OBSV effectively leverages faster convergence from mixed sampling.
  • The paper demonstrates that OBSV works as intended by stopping earlier when convergence is faster, and mixed sampling is often equal to or better than random sampling when using OBSV.

Limitations and Future Work

  • Hyperparameter selection: The paper acknowledges that selecting hyperparameters for classifiers can be challenging, especially in the context of active learning and optimal stopping. They suggest maintaining a set of models with different hyperparameter choices as a potential avenue.
  • Model-specific stopping: The current OBSV algorithm is somewhat model-independent. Future work could explore model-specific stopping methods, particularly for probabilistic classifiers, to potentially achieve more optimal example selection and stopping simultaneously.
  • Computational complexity: The Bayesian approach, while principled, can be computationally intensive, especially with a large number of models or a wide horizon for lookahead.
  • Active vs. Uniform Sampling Balance: The optimal balance between active and uniform sampling remains a hyperparameter that is not explicitly addressed in this work.

Summary updated

BibTeX
@inproceedings{dimitrakakis2008cost,
  author = {Christos Dimitrakakis and Christian Savu-Krohn},
  title = {{Cost-Minimising Strategies for Data Labelling: Optimal Stopping and Active Learning}},
  booktitle = {FoIKS},
  year = {2008},
  doi = {10.1007/978-3-540-77684-0\_9},
}
Figure