TL;DR
Imagine diagnosing a patient one test at a time under a strict budget: your diagnostic model has to perform accurately on any combination of test results it happens to acquire. Instead of forcing one giant neural network to awkwardly handle all $2^M$ possible feature subsets, Hyper-DFS uses a hypernetwork to generate a custom, lightweight classifier on the fly for whatever features you currently have. By mapping discrete feature masks into a smooth geometric space, this approach beats state-of-the-art methods—and even works on feature combinations it has never seen before.
What Problem Does This Paper Address?
Standard machine learning assumes every data point arrives complete with all its features. In the real world—think medical diagnostics or sensor networks—acquiring features costs time and money. Dynamic Feature Selection (DFS) tackles this by sequentially querying the most useful features per individual sample using two components: a selector (deciding what to measure next) and a predictor (making the final call).
Here is the catch: with $M$ total features, there are $2^M$ possible subsets of observed features. You obviously cannot train and store $2^M$ separate predictors. Standard DFS gets around this by training a single, shared predictor, feeding it mean-imputed missing values alongside a binary mask ($0$s and $1$s) indicating which features are actually observed.
The authors point out a deep structural flaw here: forcing one static set of weights to handle exponentially many tasks creates a tug-of-war during training. Updates that help one feature subset actively degrade another, resulting in a model that is mediocre on average and terrible on rarely visited feature combinations. Furthermore, concatenating a binary mask to the input scales complexity poorly, requiring network capacity to grow with data and task dimensions simultaneously.
Methods
To bridge the gap between one compromised predictor and $2^M$ impossible ones, the authors introduce Hyper-DFS:
- On-Demand Classifiers via Hypernetworks (Novel): Instead of passing a binary mask into a shared classifier, Hyper-DFS feeds the mask representation into a hypernetwork—a neural network whose output is the actual weights for a separate, tiny primary classifier. A learned "compressor" network shrinks the input dimension first so the generated classifier stays small.
- Smooth Feature Set Encoding (Novel): Raw binary masks are geometrically blind: swapping a feature for a near-identical proxy looks just as distant (in Hamming space) as swapping it for pure noise. The authors encode observation states using a Set Transformer with distinct learned embeddings for both "present" and "absent" states. This creates a smooth conditioning space where functionally similar feature sets sit close together.
- Stabilized Training (Novel): Training hypernetworks across shifting tasks is notoriously unstable because gradients from different feature subsets cancel each other out. The authors fix this with a warm-up pre-training phase that restricts each mini-batch to a small, fixed number of masks (preventing gradient interference) paired with a linear learning-rate warmup.
- Differentiable Selector (Standard): Once warm-started, the predictor is jointly fine-tuned with a standard neural selector using Gumbel-softmax to pass gradients through discrete feature choices.
Datasets
The authors evaluate across 20 datasets spanning three domains:
- Synthetic: Standard benchmarks (Sim1–3, Cube) plus two newly introduced diagnostic benchmarks: Synergistic Pairs (individual features have zero marginal info alone, testing pure interaction) and Proxy Substitution (where the optimal decision boundary shifts depending on which proxy features are observed).
- Real-world Tabular: Nine datasets (Diabetes, Heart Disease, Cirrhosis, Wine, Yeast, Bank Marketing, California Housing, MiniBooNE, and METABRIC), ranging from 8 to 47 features.
- Images (Patch-based acquisition): MNIST, FashionMNIST, SVHN, Imagenette, and PCam (locating metastatic tissue in histopathology patches).
Key Insights and Ideas
- Why "absent" embeddings matter: If you only sum embeddings for present features, the vector norm scales with the number of acquired features, subtly biasing normalization statistics and gradient magnitudes. Giving absent features their own learned vector eliminates this cardinality drift.
- Turning Lipschitz constraints into a superpower: Neural networks naturally struggle to make abrupt jumps in output for nearby inputs. With raw binary masks, that smoothness is a liability. With Set Transformer encodings, functionally similar subsets map to nearby coordinates (achieving >0.97 Spearman correlation between encoding distance and functional output divergence), turning smoothness into effortless zero-shot generalization.
- Specialisation shines brightest under tight budgets: Hypernetworks provide the biggest boost when very few features have been acquired—precisely when missingness ambiguity is highest and tailored decision boundaries matter most.
Key Results
Evaluating average macro-F1 across budgets of 2 to 10 features (AUAC-F1):
- Synthetic & Tabular: An ensemble of 5 hypernetworks (HyperEns) takes first place overall on synthetic (71.37% avg AUAC-F1) and real-world tabular suites (71.61%). Even the single-model Hyper-DFS beats all single-model baselines on average (69.02% synthetic, 71.11% tabular).
- Images: Hyper-DFS variants win 4 out of 5 image benchmarks (e.g., 73.39% on PCam, beating dedicated multi-model baselines by >1 point, and 90.54% on MNIST).
- Zero-Shot Subsets: When tested on feature subsets completely withheld during training, standard single-model DFS (VIP) collapses on tabular data (46.55% AUAC-F1), whereas Hyper-DFS maintains 64.06% on tabular and leads on images at 87.57%.
Limitations and Future Work
- Parameter footprint: While the generated primary classifier is tiny (4.9k–11.3k parameters), the hypernetwork apparatus required to generate it is heavy (0.68M–6.70M parameters on tabular tasks), making training more expensive.
- Smoothness limits cheap ensembling: Perturbing the task encoding vector to get "free" diverse ensembles (hyperensembling) yielded no gains—the space is too smooth to produce diverse classifiers from small perturbations.
- Future directions: Developing tighter theoretical bounds on how approximation gaps distribute across individual subsets, and expanding the number of benchmark datasets to establish stronger statistical significance across methods.
Summary updated