Locally Sparse Neural Networks for Tabular Biomedical Data

Junchen Yang, Ofir Lindenbaum, Yuval Kluger

TL;DR

Yang et al. introduce LSPIN (Locally SParse Interpretable Network), a novel neural network architecture that learns to select a unique subset of relevant features for every individual sample in a dataset. By combining sample-specific "stochastic gates" with a stability-inducing kernel, the model prevents overfitting on small biomedical datasets while providing clear, instance-level explanations for its predictions.

What Problem Does This Paper Address?

Biomedical researchers often work with "High-Dimensional Low Sample Size" (HDLSS) tabular data—think of a study with thousands of gene expressions but only a few dozen patients. Standard deep learning models usually fail here; they are prone to overfitting and act as "black boxes" that clinicians find hard to trust.

While practitioners often revert to simpler linear models (like LASSO) or tree-based methods (like Random Forest), these models assume a "one size fits all" approach to feature selection. However, biomedical data is often heterogeneous: the biomarkers driving a disease in Patient A might be complete noise for Patient B. This paper tackles the challenge of building a model that is as expressive as a neural network but as interpretable as a local linear model, specifically designed for the messy, small-scale nature of clinical data.

Methods

The authors propose the Locally SParse Interpretable Network (LSPIN). The core innovation is a dual-network architecture:

  1. The Prediction Network ($f_\theta$): Performs the actual task (classification or regression).
  2. The Gating Network ($\Psi$): Learns to predict a vector of "stochastic gates" for each input. These gates act as a mask, zeroing out irrelevant features for that specific sample before they reach the prediction network.

To make this work, they use a differentiable relaxation of the $\ell_0$ norm (which counts non-zero elements). They also introduce a stability regularizer using an affinity kernel. This ensures that if two patients are clinically similar, the model selects a similar set of features for both, preventing the "explanation" from jumping around erratically due to noise.

Datasets

The model was evaluated across a diverse range of benchmarks:

  • Synthetic Datasets (E1-E5): Designed to test non-linear interactions and "moving" feature importance (where the relevant features change based on the value of other variables).
  • MNIST: Treated as a tabular dataset (784 features) to evaluate pixel-level interpretability.
  • Real-World LSS Datasets: Including BASEHOCK, RELATHE, PCMAC (text classification), and biological datasets like PBMC, COLON, and TOX-171.
  • Survival Analysis: The SEER breast cancer dataset (over 500k patients).
  • Single-cell Genomics: snRNA-seq data for identifying cell-type-specific marker genes.

Key Insights and Ideas

  • Local Sparsity is a Strong Regularizer: By forcing the model to look at only a few features per sample, the authors significantly reduced the "generalization gap"—the difference between training and test performance—which is the primary killer of NNs in small-data regimes.
  • Linearity can be a Feature, not a Bug: The authors found that a version of their model with a linear prediction network (LLSPIN) often outperformed fully non-linear models on real biomedical data. In high-dimensional spaces with few samples, learning several local linear relationships is often more robust than trying to fit a complex global non-linear surface.
  • Heterogeneity Matters: Standard models often fail when different subpopulations require different features. As shown in their motivating example, LSPIN is one of the few models that can correctly identify these shifting relationships.
LSPIN (Proposed) correctly fits the regression line in a heterogeneous dataset where other strong baselines fail.

Key Results

  • Superior Accuracy: On real-world LSS datasets, LLSPIN achieved the highest median rank across all baselines, outperforming state-of-the-art models like XGBoost and TabNet.
  • High-Fidelity Interpretability: On MNIST, the model achieved 98.45% accuracy while relying on a median of only 7 pixels per image. The selected pixels were visually "faithful" to the digit's unique structure.
  • Clinical Utility: In survival analysis on the SEER dataset, the model outperformed DeepSurv and Random Survival Forests when restricted to small feature sets, identifying that factors like "Age" and "Tumor Size" were critical for most, but not all, patients.

Limitations and Future Work

The authors note that tuning the sparsity ($\lambda_1$) and stability ($\lambda_2$) hyperparameters can be demanding, as they must be balanced against the primary loss function. Furthermore, while the model is robust, the impact of adversarial examples on these types of "locally sparse" hazard models remains an open question. Future work may involve exploring more flexible feature selection mechanisms, such as "concrete layers," to automate some of this tuning.

Summary updated

BibTeX
@inproceedings{yang2022locally,
  author = {Junchen Yang and Ofir Lindenbaum and Yuval Kluger},
  title = {{Locally Sparse Neural Networks for Tabular Biomedical Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=B6wr8M_TR1K},
}
Figure