Online Budgeted Learning for Classifier Induction

Eran Fainman, Bracha Shapira, Lior Rokach, Yisroel MirskyarXiv 2019

Abstract

In real-world machine learning applications, there is a cost associated with sampling of different features. Budgeted learning can be used to select which feature-values to acquire from each instance in a dataset, such that the best model is induced under a given constraint. However, this approach is not possible in the domain of online learning since one may not retroactively acquire feature-values from past instances. In online learning, the challenge is to find the optimum set of features to be acquired from each instance upon arrival from a data stream. In this paper we introduce the issue of online budgeted learning and describe a general framework for addressing this challenge. We propose two types of feature value acquisition policies based on the multi-armed bandit problem: random and adaptive. Adaptive policies perform online adjustments according to new information coming from a data stream, while random policies are not sensitive to the information that arrives from the data stream. Our comparative study on five real-world datasets indicates that adaptive policies outperform random policies for most budget limitations and datasets. Furthermore, we found that in some cases adaptive policies achieve near-optimal results.

Introduction

In many practical machine learning scenarios, data acquisition is not free. Whether it involves running expensive medical tests, activating power-hungry sensors on a mobile device, or querying a paid API, each feature value comes with an associated cost. Budgeted learning aims to build the most accurate predictive model possible while adhering to a strict total cost constraint.

While budgeted learning has been explored in offline settings, this paper focuses on the more challenging online setting. In a data stream, instances arrive sequentially. Once an instance has passed, its features can no longer be acquired retroactively. The learner must decide in real-time which features of the current instance to "buy" to maximize the incremental improvement of the classifier.

The Online Budgeted Learning Framework

The authors propose a general framework that treats feature acquisition as a variation of the multi-armed bandit problem. The core of the system is an Adaptive Acquisition Policy that interacts with the incoming data stream to decide which features to acquire for the current "Active Instance."

The general framework for online budgeted learning, showing the cycle of feature acquisition and policy updating.

Four primary acquisition policies were evaluated:

  1. Pure Random: Features are selected with uniform probability, serving as a baseline.
  2. Cost-Sensitive Random: Features are selected randomly, but cheaper features have a higher probability of being chosen.
  3. Variance Cost-Sensitive (Adaptive): This policy prioritizes features with high variance relative to their cost, assuming high-variance features are more likely to be informative.
  4. Tree Classifier Based (Adaptive): This uses a cost-sensitive decision tree to guide selection. As an instance arrives, the policy "walks" the tree to determine which features are necessary for classification.

Adaptive policies include a "warm-up" phase where initial instances are fully acquired to establish a baseline for variance and tree induction. Performance is measured against an Oracle policy—a theoretical upper bound that knows the information gain of every feature in advance.

Experimental Evaluation

The framework was tested on five real-world datasets, ranging from high-dimensional sensor data to lower-dimensional medical records:

  • HAPT: Human activity recognition via smartphone sensors (561 attributes).
  • SMS Leakage (SMSL): A new benchmark for detecting malware via smartphone motion sensors (149 attributes).
  • Cardiotocography (CTG3 & CTG10): Medical data for fetal heart rate analysis.
  • Thyroid: Medical data for thyroid disease diagnosis.

Key Results and Insights

In almost all scenarios, adaptive policies significantly outperformed random ones, particularly when the budget was tight. A standout result occurred in the Thyroid dataset, where adaptive policies achieved results nearly identical to the theoretical Oracle.

AUC vs. Budget for the Thyroid dataset, demonstrating adaptive policies achieving near-optimal performance.

The Cost-Information Trade-off

Adaptive policies succeed by identifying "bargain" features—those providing high information at low cost. Interestingly, the simple Variance Cost-Sensitive policy often outperformed the more complex Tree-Based policy on sensor data, suggesting that statistical variance is a robust proxy for feature utility in high-dimensional streams.

Exploration vs. Exploitation

Adaptive policies face a classic dilemma: only buying known "good" features (exploitation) versus trying unknown features (exploration). On the high-dimensional HAPT dataset, random policies occasionally outperformed adaptive ones at higher budgets. This suggests that the adaptive policies may have "over-exploited" a small set of features, failing to explore the massive 561-feature space effectively.

Conclusion and Future Work

This research demonstrates that online budgeted learning is a viable approach for resource-constrained environments, such as mobile security and medical diagnostics. Adaptive policies, particularly those leveraging variance and cost, provide a significant advantage over random selection.

Future work will address limitations such as the requirement of knowing the stream length in advance. Potential improvements include dynamic exploration techniques like simulated annealing and methods for adjusting budgets on-the-fly for infinite data streams.

Summary updated

BibTeX
@misc{fainman2019online,
  author = {Eran Fainman and Bracha Shapira and Lior Rokach and Yisroel Mirsky},
  title = {{Online Budgeted Learning for Classifier Induction}},
  year = {2019},
  eprint = {1903.05382},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.05382},
}
Figure