Joint Active Feature Acquisition and Classification with Variable-Size Set Encoding

Hajin Shim, Sung Ju Hwang, Eunho YangNeurIPS 2018

Introduction

In standard machine learning paradigms, we typically assume that all features (data points) are readily available at no cost during test time. However, in many real-world domains like medicine, acquiring every possible "feature"—such as a blood test, an MRI, or a biopsy—incurs significant costs, time delays, or physical risks to the patient.

Active Feature Acquisition (AFA) addresses this challenge by sequentially deciding which feature to acquire next. The goal is to maximize prediction confidence while minimizing the total cost of data collection. Previous approaches to AFA often suffered from two main limitations: they relied on fixed, pre-trained classifiers that were sub-optimal for the specific, partial subsets of features an agent might choose; and they struggled to represent incomplete data in a way that was independent of the order in which features were acquired.

This paper introduces a novel framework that jointly learns how to classify data and which features to "buy." By utilizing an order-invariant set encoding alongside reinforcement learning, the model achieves high prediction accuracy while significantly reducing the cost and number of features required at test time.

Methodology

The proposed framework consists of two main components trained together: a Classifier and a Reinforcement Learning (RL) Agent.

  • Joint Optimization: Instead of training the classifier and the feature-selection agent separately, the authors optimize a single objective function. This joint training balances the classification loss (cross-entropy) with the acquisition cost, ensuring the classifier is specifically tuned to the "incomplete" data states the agent is likely to produce.
  • Variable-Size Set Encoding: To handle the dynamic nature of feature acquisition (e.g., having 2 features at one step and 5 at the next), the authors introduce an order-invariant encoding scheme. Acquired features are treated as a set of (index, value) pairs. This set passes through a "reading block" (a Multi-Layer Perceptron) and a "process block" (an LSTM with attention) to create a fixed-size representation. This ensures the model only cares that a feature is available, not when it was acquired, dramatically reducing the search space for the RL agent.
  • RL for Policy: The agent uses n-step Double Q-learning to decide between two actions at each step: "acquire feature $j$" or "stop and predict." If the agent chooses to stop, the classifier makes its final prediction based on the currently acquired set of features.

Datasets and Key Results

The model was evaluated across synthetic and real-world medical datasets, demonstrating strong performance in both accuracy and cost-efficiency.

1. Synthetic Data: CUBE-σ

To test the model's ability to ignore irrelevant data, the authors used CUBE-σ, a synthetic dataset designed specifically for AFA. It contains 10 informative features that carry class information, alongside varying amounts of "dummy" (noise) features.

Structure of the synthetic CUBE dataset showing informative and dummy features.

On a CUBE dataset configured with 100 total features (90 of which were noise), the model successfully identified the 10 informative ones. It consumed only ~4.2 features on average while maintaining a high accuracy of 96.4%.

2. Real-World EHR: Physionet Challenge 2012

This dataset involves predicting clinical outcomes such as mortality, length of stay, and cardiac conditions.

Performance on the Physionet Mortality task comparing joint training and set encoding against baselines.

In the mortality prediction task, the model demonstrated clinical relevance that aligns with human medical practice. Its first feature choice was almost always the Glasgow Coma Scale (GCS), a primary clinical indicator of a patient's level of consciousness and immediate risk. Furthermore, the joint model with set encoding achieved a higher Area Under the Curve (AUC) using fewer features compared to pre-trained or naively encoded baselines.

3. Cost Savings: Medical Check-up Data

Using a private dataset from a major hospital to predict Fatty Liver and Intima-Media Thickness (IMT), the authors incorporated actual USD costs for each medical test. While a baseline MLP using all available features cost $577.70 per patient, the proposed AFA model achieved comparable AUC while spending only $13.80—a massive cost reduction of over 97%.

Limitations and Future Work

While highly effective, the framework has a few notable limitations:

  • Overestimation in Q-Learning: The agent occasionally "over-acquires" features. This stems from a known bias in Q-learning where non-terminal actions (buying more features) are sometimes overvalued compared to the "stop" action due to noise in value estimation.
  • Model Uncertainty: The current setup does not explicitly account for the model's internal uncertainty. Incorporating Bayesian uncertainty could help the agent make better decisions about when it truly "knows enough" to stop acquiring features.
  • Scalability of Search Space: Although set encoding significantly helps, the action space still grows linearly with the total number of available features. Scaling this approach to datasets with thousands of possible features (like genomics) remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{shim2018joint,
  author = {Hajin Shim and Sung Ju Hwang and Eunho Yang},
  title = {{Joint Active Feature Acquisition and Classification with Variable-Size Set Encoding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=S1W4m_WubS},
}
Figure