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

Instance-wise Feature Grouping

Aria Masoomi, Chieh Wu, Tingting Zhao, Zifeng Wang, Peter J. Castaldi, Jennifer G. DyNeurIPS 2020

Introduction

Traditional feature selection typically identifies a single set of "important" variables for an entire dataset. However, what matters often changes from one sample to the next. In this paper, the authors introduce Instance-wise Feature Grouping (gI), a framework that dynamically clusters redundant features and selects the most relevant groups for each specific data point, improving both predictive accuracy and model interpretability.

The Problem with Global Selection

In machine learning, feature selection identifies which input variables—such as specific pixels in an image or genes in a DNA sequence—actually drive a prediction. Most classic methods, like LASSO, are global: they decide once and for all which features are important for the whole population.

The authors point out two major flaws in this approach:

  1. Instance-wise Variation: The features that define an image of a "shoe" (e.g., the sole) differ entirely from those defining a "shirt" (e.g., the collar). A global selector struggles to highlight both effectively.
  2. The Redundancy Trap: Many features are redundant, providing the same underlying information. Standard selectors often pick just one representative from a redundant set and discard the rest. In fields like genomics, this is a significant loss; scientists want to see the entire group of interacting genes, not just a single "winner."

The challenge lies in creating a system that can group redundant features together and then select the most important groups on a case-by-case (instance-wise) basis.

Methods: The Group Interpreter (gI)

To address these challenges, the authors propose a novel method called the Group Interpreter (gI).

Group Interpreter Architecture

The framework is built on several key technical pillars:

  • Information-Theoretic Definitions: The authors formally define two types of redundancy using Mutual Information (MI): Representation Redundancy (features highly dependent on each other) and Relevant Redundancy (features providing the same information about the target label).
  • The gI Architecture: As shown above, the model utilizes a specialized autoencoder structure. It learns a Group Membership Matrix ($G$) to assign features to clusters and a Group Selector ($s$) to pick the best clusters for a given instance.
  • Differentiable Selection: To train the model via backpropagation, they employ the Gumbel-Softmax trick. This allows the model to make "hard" discrete choices (e.g., assigning a feature to a specific group) while remaining mathematically smooth enough for gradient descent.
  • Variational Bounds: Because calculating exact Mutual Information is computationally intractable for complex data, the model optimizes a variational lower bound as a proxy.
  • Theoretical Guideline for $k$: The paper provides a theoretical proof establishing a lower bound for the number of groups ($k$) needed to ensure no critical information is lost during compression.

Datasets and Validation

The authors validated their approach across three distinct types of data:

  • Synthetic Data: Nine datasets with pre-defined redundancy patterns tested the model's ability to recover known feature relationships.
  • Image Benchmarks: MNIST (handwritten digits) and Fashion MNIST (clothing items) were used to visualize which "pixel groups" the model deemed important.
  • Real-world Genomics: The COPDGene Study dataset, containing gene expression data from 1,907 patients, tested the model's ability to find biological markers for chronic obstructive pulmonary disease.

Key Insights

  • Redundancy as a Feature, Not a Bug: Instead of eliminating redundancy to simplify the model, gI embraces it. Grouping redundant features provides a more honest look at the data's structure, which is vital for domain experts.
  • The "Aha" on $k$: While practitioners usually guess the number of clusters ($k$), this paper's theoretical guideline shows that $k$ should be at least as large as the number of features that have a non-zero correlation with the label.
  • Visual Coherence: Unlike other instance-wise selectors (like L2X or SHAP) that often produce noisy importance maps, gI produces clean, segmented shapes on images because it understands that neighboring, redundant pixels should be treated as a single group.

Key Results

The gI framework demonstrated strong empirical performance across multiple domains.

Classification Accuracy on Image Datasets
  • Superior Accuracy: On the MNIST-10 dataset, gI achieved 91.6% accuracy, significantly outperforming other instance-wise methods like L2X (80.5%) and INV (77.9%), as detailed in the results table above.
  • Biological Discovery: When applied to the COPDGene data, gI discovered that smokers and non-smokers have entirely different "important" gene groups. A global selector would have averaged these differences away, potentially missing key disease pathways.
  • Theoretical Validation: Experiments on synthetic data confirmed that the model's accuracy remains stable as long as the number of groups ($k$) stays above the authors' calculated theoretical lower bound.

Limitations and Future Work

The authors note a few limitations. First, their current focus is on building a model that performs its own feature selection, rather than explaining existing "black-box" models (though it could potentially be adapted for this). Second, the computational complexity is $O(nkd^2)$, where $d$ is the number of features. While efficient for many tasks, extremely high-dimensional data might require further optimization. Finally, they caution that identifying a group of features as "important" indicates strong predictive power, but does not inherently prove causation.

Summary updated

BibTeX
@inproceedings{masoomi2020instance,
  author = {Aria Masoomi and Chieh Wu and Tingting Zhao and Zifeng Wang and Peter J. Castaldi and Jennifer G. Dy},
  title = {{Instance-wise Feature Grouping}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=igwb_La_Mox},
}
Figure