Abstract
Classification with Costly Features (CwCF) involves a critical trade-off between prediction accuracy and the cost of feature acquisition. This paper frames CwCF as a sequential decision-making problem solved via Deep Reinforcement Learning (RL). By integrating a Lagrangian framework for average budget constraints and modified Markov Decision Processes (MDPs) for hard constraints, the proposed method provides a flexible and robust approach. Experimental results across diverse datasets, including medical and image data, demonstrate that this RL-based approach consistently outperforms existing state-of-the-art algorithms in cost-accuracy trade-offs.
Introduction
In many practical classification scenarios, data acquisition is associated with significant costs. For instance, medical diagnoses often require expensive tests, and malware detection involves computationally intensive feature extraction. The CwCF problem seeks to maximize classification accuracy while adhering to a strict budget. Unlike static feature selection, which applies the same subset of features to all instances, CwCF requires adaptive acquisition. The system must decide which feature to "buy" next for a specific sample based on previously gathered information, or determine when to stop and make a final prediction.
Methodology
The authors model CwCF as a Markov Decision Process (MDP) and employ Double Dueling DQN with Retrace, an off-policy reinforcement learning algorithm, to find the optimal policy.
State and Action Space
The agent's state is represented by a "masked" version of the sample, containing only the values of acquired features, alongside a binary mask indicating which features are known. The action space consists of:
- Feature Acquisition Actions ($a_f$): Choosing an unobserved feature $f$ at a cost $c(f)$.
- Classification Actions ($a_y$): Making a final prediction and terminating the episode.
Budget Constraints
Two types of budget constraints are addressed within this framework:
- Average Budget ($b$): To avoid the manual tuning of an unintuitive trade-off parameter $\lambda$, a Lagrangian framework is used. The algorithm dynamically adjusts $\lambda$ during training to ensure the average cost across the dataset converges to the user-specified target budget $b$.
- Hard Budget: For scenarios with strict per-sample limits, the MDP environment is modified to "block" any feature-acquisition actions that would exceed the remaining budget for that specific instance.
Handling Missing Data
To accommodate sparse training sets, the agent's actions during training are restricted to features actually present in the training sample. This allows the model to learn effectively even when the ground truth for certain features is unavailable.
Experimental Evaluation
The method was evaluated on seven datasets, ranging from tabular physics data (Miniboone, Forest) to medical records (Diabetes) and image recognition (MNIST, CIFAR). To ensure a fair comparison with non-image-specific algorithms, pixels were treated as individual features without the use of convolutional layers.
Key Results
The RL-based approach (referred to as rl-λ or rl-hard) consistently achieved higher Area Under the Cost-Accuracy Curve (AUCC) compared to prior art such as Adapt-Gbrt, Budget-Prune, and Oplearn.
- Robustness: In average budget settings, the RL approach proved more robust, particularly on complex datasets like CIFAR, where it outperformed baselines at low budgets by a large margin.
- Long-term Optimization: Unlike greedy heuristic methods that seek immediate information gain, the RL agent learns to value features that contribute to long-term accuracy, effectively capturing complex feature dependencies.
- Generalization: The Lagrangian optimization process was found to act as a regularizer, helping the model generalize better and resist overfitting compared to fixed-parameter methods.
Conclusion
Framing CwCF as an RL problem decouples the budget logic from the optimization process, offering high flexibility for real-world applications. While training can be computationally intensive—taking up to 300 hours for large datasets like MNIST—the resulting models provide near-instant evaluation and superior performance. Future work may involve integrating domain-specific architectures like CNNs or RNNs into the state representation to further enhance performance for structured data types.
Summary updated