NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

INVASE: Instance-wise Variable Selection using Neural Networks

Jinsung Yoon, James Jordon, Mihaela van der SchaarICLR 2019

TL;DR

INVASE is a novel framework for "instance-wise" variable selection that identifies the most relevant features for each specific data point rather than the dataset as a whole. By leveraging an actor-critic reinforcement learning architecture, it flexibly discovers feature subsets of varying sizes, significantly outperforming global selection methods and existing benchmarks in both interpretability and predictive accuracy.

What Problem Does This Paper Address?

In the era of high-dimensional "big data," feature selection is crucial for preventing overfitting and making models interpretable. Traditionally, researchers use global feature selection, which identifies a single subset of features that works best on average for the entire population.

However, real-world data is often highly heterogeneous. For example, in medicine, the clinical markers that predict heart failure for a 20-year-old athlete might be entirely different from those for an 80-year-old sedentary patient. Global methods fail to capture these nuances. While some "instance-wise" methods exist (like L2X), they often require the user to specify a fixed number of features ($k$) to select for every sample. The gap INVASE fills is the ability to flexibly and automatically determine which—and how many—features are relevant for each individual instance.

Methods

The core of INVASE is a trio of neural networks trained using an actor-critic methodology:

INVASE Architecture
  1. The Selector Network (The Actor): This network takes an instance as input and outputs a probability distribution for each feature. It then samples a binary "selection vector" (a mask) that decides which features to keep.
  2. The Predictor Network (The Critic): This network receives only the features chosen by the Selector and attempts to predict the target label. Its performance provides the "reward" signal.
  3. The Baseline Network: This network sees all features and provides a benchmark prediction. By comparing the Predictor’s performance to this baseline, the system can reduce variance during training.

The Innovation: Because the selection process (sampling a binary mask) is non-differentiable, standard backpropagation doesn't work. The authors use the REINFORCE algorithm (policy gradient) to train the Selector. This allows them to optimize a loss function that includes a direct $l_0$ penalty—a mathematical way of saying "use as few features as possible"—which is usually too computationally difficult to use in standard deep learning.

Datasets

The authors evaluated INVASE across a diverse range of environments:

  • Synthetic Datasets (Syn1–Syn6): These were designed with known ground truths. Syn1–Syn3 have global relevance, while Syn4–Syn6 introduce "switch" variables where the relevant features change based on the value of other variables.
  • MAGGIC Dataset: A real-world clinical dataset of ~40,000 heart failure patients with 31 features, used to predict mortality.
  • PLCO Dataset: A cancer screening trial dataset with 106 features, used to predict prostate cancer mortality.
  • Computer Vision: The Kaggle "Dogs vs. Cats" and Oxford Pet datasets, where 16x16 image patches were treated as individual features to see if the model could "select" the most informative parts of an image (e.g., the animal's face).

Key Insights and Ideas

  • Flexibility is Key: Unlike previous state-of-the-art methods like L2X, INVASE does not need to be told how many features to pick. It learns the optimal subset size for each sample. If an instance only needs two features to be explained, INVASE only picks two.
  • Handling Heterogeneity: The paper demonstrates that in clinical data, different subgroups (e.g., patients with vs. without diabetes) rely on different features. INVASE naturally discovers these subgroups without being explicitly told they exist.
  • The Power of RL for Sparsity: By framing feature selection as a reinforcement learning problem, the authors bypassed the need for "differentiable approximations" of sparsity (like the Gumbel-softmax trick), allowing for a more robust and scalable selection process.

Key Results

Performance on Synthetic Datasets
  • Superior Discovery: On synthetic data (Syn4), INVASE achieved a True Positive Rate (TPR) of 99.8% with a False Discovery Rate (FDR) of only 10.3%. In contrast, L2X (forced to pick a fixed $k$) had a much higher FDR of 21.8%. INVASE consistently outperformed other baselines like LIME and Shapley across various synthetic configurations.
  • Better Predictions: In real-world mortality prediction (MAGGIC), INVASE improved the Area Under the ROC Curve (AUROC) from 0.720 (without feature selection) to 0.722, and significantly boosted the Area Under the Precision-Recall Curve (AUPRC).
  • Scalability: When the number of features was increased to 100 (adding 89 noisy signals), INVASE maintained near-perfect discovery, while L2X’s performance plummeted (dropping to ~6% TPR in some cases).
  • Visual Interpretability: In the computer vision tasks, INVASE consistently selected patches corresponding to the eyes, nose, and ears of the animals, proving it can identify "human-understandable" relevant features.

Limitations and Future Work

  • Static Focus: The current model is designed for static data. The authors suggest that extending this to temporal data (using RNNs or Transformers as the underlying networks) is a logical next step.
  • Hyperparameter Tuning: The model relies on a penalty parameter ($\lambda$) to control sparsity. While the paper uses cross-validation to find this, the optimal $\lambda$ can vary between datasets.
  • Computational Cost: Training three networks simultaneously is more computationally expensive than training a single predictor, though the authors note that INVASE is still significantly faster than perturbation-based methods like LIME or Shapley values during the testing phase.

Summary updated

BibTeX
@inproceedings{yoon2019invase,
  author = {Jinsung Yoon and James Jordon and Mihaela van der Schaar},
  title = {{INVASE: Instance-wise Variable Selection using Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=-wupai-d4nb},
}
Figure