Classification with Costly Features as a Sequential Decision-Making Problem

Jaromír Janisch, Tomás Pevný, Viliam Lisý · DOI

Abstract

This work focuses on a specific classification problem, where the information about a sample is not readily available, but has to be acquired for a cost, and there is a per-sample budget. Inspired by real-world use-cases, we analyze average and hard variations of a directly specified budget. We postulate the problem in its explicit formulation and then convert it into an equivalent MDP, that can be solved with deep reinforcement learning. Also, we evaluate a real-world inspired setting with sparse training dataset with missing features. The presented method performs robustly well in all settings across several distinct datasets, outperforming other prior-art algorithms. The method is flexible, as showcased with all mentioned modifications and can be improved with any domain independent advancement in RL.

Introduction

In standard machine learning, the assumption is that all features are readily available at test time. However, in many real-world scenarios—such as medical diagnosis or industrial monitoring—acquiring information is costly in terms of time, money, or risk. This challenge is known as Classification with Costly Features (CwCF). The goal is to maximize classification accuracy while adhering to a specific budget constraint.

Existing CwCF methods often rely on rigid tree-based algorithms or linear programming, which struggle to adapt to varying constraints like strict per-sample ("hard") budgets versus average budgets across a population. Furthermore, handling historical datasets with missing features often requires complex imputation. This paper proposes a unified, flexible framework that models CwCF as a sequential decision-making problem, solvable via Deep Reinforcement Learning (RL).

Methodology

MDP Formulation

The authors model the CwCF problem as a Markov Decision Process (MDP). In this environment, an RL agent observes the currently acquired features and must decide at each step whether to purchase an additional feature or terminate the process and provide a classification.

The sequential process of feature acquisition and classification.

To solve this MDP, the framework utilizes a Double Dueling Deep Q-Network (DQN) with Retrace. This architecture allows the agent to efficiently learn from long sequences of experience. The core innovation lies in the environment's flexibility to handle different budget types:

  • Average Budget: Controlled by a penalty parameter $\lambda$ that trades off accuracy for cost. To avoid manual tuning, a Lagrangian framework is employed to automatically adjust $\lambda$ during training to meet a target budget $b$.
  • Hard Budget: The MDP is modified to mask actions (features) that would exceed a strict per-sample budget, ensuring the agent never overspends.
  • Missing Features: The agent is trained directly on sparse data by masking unavailable features, allowing it to learn robustly without the need for prior data imputation.

Dynamic Feature Selection

Unlike static feature selection methods that choose the same $N$ features for every instance, this RL approach is dynamic. The agent can choose to buy expensive, high-information tests for complex cases while stopping early for simpler ones, thereby optimizing the global budget more effectively.

Experimental Results

The method was evaluated across diverse datasets, including Miniboone (physics), Forest Covertype (tabular), and real-world medical data (Diabetes).

Performance and Trade-offs

The RL approach consistently outperformed state-of-the-art baselines like Adapt-Gbrt and Budget-Prune. For example, on the Diabetes dataset—which features variable costs assigned by experts—the RL method achieved a normalized area under the trade-off curve of 0.829, significantly higher than the 0.748 achieved by the strongest baseline.

The Pareto front (black line) representing the optimal trade-off between accuracy and cost across multiple runs.

Robustness to Missing Data

In scenarios with sparse training data, the RL method proved remarkably resilient. When 90% of features were missing, the RL agent trained on sparse data (0.874 accuracy) outperformed standard MICE imputation techniques (0.854). This suggests that learning to navigate missingness directly is more effective than attempting to fill in the gaps before learning.

Discussion and Future Work

While the framework is highly effective and robust—using the same hyperparameters across most datasets—it is computationally intensive. Training on complex datasets like MNIST can take several days on high-end GPUs. Additionally, because the current model treats features as independent tabular entries, it does not yet leverage spatial relationships in image data as effectively as convolutional architectures might.

Because the framework is modular, it can be easily updated with future advancements in RL algorithms. Future research will focus on incorporating convolutional layers for image-specific CwCF tasks and further optimizing training efficiency.

Summary updated

BibTeX
@article{janisch2020classification,
  author = {Jaromír Janisch and Tomás Pevný and Viliam Lisý},
  title = {{Classification with Costly Features as a Sequential Decision-Making Problem}},
  journal = {Machine Learning},
  year = {2020},
  doi = {10.1007/s10994-020-05874-8},
}
Figure