When a researcher runs a sparse model on thousands of genes and reports twenty biomarkers, that list usually comes from a chain of steps: impute missing values, normalize, screen out low-variance columns, run a selector such as the Lasso (a regression penalized so that most coefficients become exactly zero), then pick a cutoff. Small changes to the data can already make sparse selectors return very different lists. Each upstream step can also be swapped for an equally defensible alternative, and those swaps change the list too. Current tools for stable feature selection resample the data around a single fixed pipeline. Current modular software makes steps easy to swap, but it tells you nothing about how much swapping them moves the answer. This note proposes to measure, for any modular selection pipeline, how much of the variability in the selected feature set is caused by each module, by the data resampling, and by interactions between modules.
The central, falsifiable question is whether instability composes. Suppose each module's contribution to instability can be measured in isolation and the pieces add up to the whole-pipeline instability. Then each module can carry a "stability contract" (a reported sensitivity under a standard perturbation protocol), and pipelines can be audited one piece at a time. If instead the interactions between, say, the imputer and the selector dominate, then auditing modules one at a time is misleading, and published stability numbers that hold preprocessing fixed understate how fragile a biomarker list really is. Both outcomes are useful. The experiments below are designed to tell them apart and to test whether knowing where instability comes from lets us reduce it more cheaply than generic bagging.
Core Claim
Treat a selection pipeline as a set of factors. The discrete factors are module choices: which imputer, which scaler, which selector, which cutoff rule. The stochastic factors are the bootstrap sample, the cross-validation split and the random seed. For feature $j$, let $Z_j$ be the 0/1 indicator that $j$ is selected. Its variance over the joint distribution of factors can be split with a standard variance (Sobol) decomposition:
$$ \mathrm{Var}(Z_j) = \sum_{s} V_{j,s} + \sum_{s<t} V_{j,st} + \dots $$
Here $V_{j,s}$ is the variance explained by factor $s$ alone, and $V_{j,st}$ is the extra variance explained only by factors $s$ and $t$ jointly. Summing over features gives a pipeline-level instability budget. We claim three things. First, in realistic biomedical pipelines, module-choice factors carry a share of the budget comparable to or larger than data resampling, which is the only factor stability selection varies. Second, the preprocessing-by-selector interaction terms are large enough that one-module-at-a-time audits misestimate total instability. Third, putting stabilization effort into the module with the largest share reduces whole-pipeline instability more per unit of compute than bagging the selector alone.
Relation to Prior Work
Several papers motivate the gap. An integrated machine learning approach to stroke prediction builds an impute-select-regress pipeline on the Cardiovascular Health Study. It scores features by mean-minus-standard-deviation of AUC across folds, and the research file notes that its choice of imputer changed downstream rankings and AUC. That is anecdotal evidence that module choice matters, but the paper never quantifies it. The Relative Instability of Model Comparison with Cross-validation shows that individually stable models can yield unstable comparisons. This is a theoretical warning that stability does not trivially compose, and it is exactly the property we test empirically for selection pipelines.
Four lines of work stabilize selection within a fixed pipeline, and all four hold the preprocessing fixed:
- iterative Random Forests wraps reweighted forests and decision-path intersection in an outer bootstrap.
- Ensembling improves stability and power of feature selection for deep learning models averages importances across epochs and hyperparameters and then applies knockoffs.
- ADAGES aggregates binary selections across independent nodes with an adaptive count threshold.
- Feature Bagging Provides Stability defines leave-one-feature-out instability and shows feature bagging smooths it.
We reuse these as selector modules and as perturbation types. Our proposal does not add another stabilizer. It asks how much of the problem such stabilizers even reach.
Other papers supply methods we borrow. Approximate Leave-one-out Cross Validation for Regression with ℓ1 Regularizers gives a cheap approximation of how the Lasso's selected set shifts when one sample is dropped. We use it to estimate the instance-resampling factor without refitting, which matters because the factorial design is expensive. Marginal Contribution Feature Importance shows Shapley-style scores split importance across collinear copies. We borrow its synthetic collinearity design ($Y = 3A + 2B + C$ plus redundant copies) as a ground-truth testbed where selector-level instability is known to be large.
On the software side, MURANO structures experiments as ordered steps with explicit input-output contracts and a shared results store. DeepDIVA enforces seeding and commit tracking. Both contracts check shapes and provenance, not statistical behavior. We extend the step contract with a declared perturbation protocol, so the factor design can be generated automatically from the pipeline definition.
One paper appears to contradict us. Modular Neural Networks for Time Series Forecasting (FocusLearn) uses modularity inside the model to gain interpretability, with attention-based selection of the top features. It never evaluates whether that selection is stable. We treat it as one more selector module whose share of instability we can measure, not as evidence that modularity already solves instability.
Research Program
The build is modest. It is a scikit-learn-style pipeline wrapper in which every step declares two things: its discrete alternatives, and its stochastic inputs (seed, subsample, fold). A results store logs the selected-feature indicator vector for every run. Module alternatives are chosen to be ones a careful analyst might pick:
- imputers: median, regression, and EM-style;
- scalers: z-score, rank, and none;
- variance screens at two thresholds;
- selectors: Lasso-CV, elastic net, Gaussian Mirrors (Controlling False Discovery Rate Using Gaussian Mirrors), knockoff-filtered ensembles, iRF, and the Conservative Mean score;
- cutoff rules: fixed $k$, CV-optimal, and FDR at 0.1.
Because a full factorial design is too large, Sobol indices are estimated with randomized sampling designs that give first-order and total-effect indices at a cost linear in the number of factors. Instance resampling for Lasso-family selectors uses the approximate leave-one-out shortcut where it applies.
The analysis has three parts. The first is the instability budget per dataset: the share carried by resampling, by each module choice, and by interactions. The second is a composition test. We measure each module's instability contract in isolation, with the other modules fixed at defaults, predict whole-pipeline instability by summing the contracts, and report the prediction error against the measured total. The third is an intervention study. We spend a fixed compute budget stabilizing either the selector (bagging, as the literature recommends) or the module with the largest total-effect index (for example, averaging over imputers or committing to a principled imputer), then compare the resulting instability and accuracy.
A secondary audit addresses FDR, the false discovery rate or expected fraction of selected features that are null. On synthetic data with known nulls, we check whether FDR control by mirrors and knockoffs survives preprocessing swaps, particularly preprocessing fitted on pooled data before the knockoff or mirror construction. This tests whether the "swap freely" premise of modular design violates the symmetry those methods need.
Baselines
The naive reference point is a single run of the default pipeline (median imputation, z-scoring, Lasso with cross-validated penalty) that reports its selected set. Its instability is whatever the factor design reveals, and the question for it is simply how much a reader would be misled by trusting one run.
The strongest existing competitor for producing a stable list is resampling-based stabilization of a fixed pipeline. We use two concrete instances. The first is the knockoff-filtered ensembling of Ensembling improves stability and power of feature selection for deep learning models. In its simulations (setting $A=20$) it raised discovery power from about 0.52 to about 0.60 at FDR 0.2, and on Alzheimer's proteomics ($n=675$, $p=7596$) it found 60 to 61 biomarkers versus 46 for the best single model. The second is iRF bootstrap stability scoring. These baselines win on their own terms, which is stability under data resampling. Our comparison asks whether their output list is still stable when the upstream modules vary. To be fair, they get the same datasets and the same total number of model fits as our attribution-guided intervention, with hyperparameter grids taken from their papers.
For predictive quality on clinical data, the reference is the Conservative Mean plus censored regression pipeline, which reports AUC 0.777 and concordance 0.770 versus Cox at 0.734 and 0.730 on CHS (An integrated machine learning approach to stroke prediction). Attribution-guided stabilization "beats" these baselines if it achieves lower whole-pipeline instability (measured over both resampling and module choice) at equal compute, while downstream accuracy stays within noise of the baseline.
The key ablation isolates the ingredient that is new here: joint variation of modules. It is one-factor-at-a-time sensitivity, where each module is varied with the others held at defaults and the results are summed. If this ablation predicts total instability as well as the full decomposition does, the interaction claim fails.
Why not just…?
Why not just wrap the whole pipeline in a bootstrap, as stability selection does? Bootstrapping the rows says nothing about the variance caused by choosing a different imputer or cutoff rule, because those choices are fixed inside every replicate. It is still a real threat. If the budget experiment shows that resampling carries most of the variance on most datasets, the attribution machinery adds little, and we will report that plainly. The intervention study settles it: bootstrap-stabilized lists either stay stable across module swaps or they do not.
Why not just run a multiverse analysis, varying one module at a time and reporting the spread? That approach is cheaper and needs no variance decomposition. It is exactly right if interactions are small, which is why it is our main ablation rather than a straw man. The composition test measures how badly summed one-at-a-time contracts mispredict whole-pipeline instability. The theory in The Relative Instability of Model Comparison with Cross-validation gives some reason to expect non-additivity, but we treat that as a hypothesis, not a result.
Why not just use a principled selector such as MCI or knockoffs and stop worrying? These methods fix problems inside the selector. Marginal Contribution Feature Importance handles collinear splitting, and knockoffs and mirrors control false discoveries. They take the preprocessed matrix as given. Our FDR audit tests directly whether swapping or pooling preprocessing breaks their guarantees. If it does not, that is a useful positive finding and narrows the problem to non-FDR selectors.
Proposed Experiments
Ground truth comes from synthetic data: the MCI collinearity design and Gaussian designs of the kind used in the approximate leave-one-out analysis, with missingness injected at controlled rates so that imputer choice genuinely matters. On these data we measure the instability budget, true- and false-positive rates, and realized FDR under each preprocessing variant.
Real high-dimensional data come from the BRCA expression set (571 patients, about 17,800 genes, with ten literature cancer genes as partial ground truth, where MCI reports NDCG@3 of 1.00 versus 0.77 for Shapley methods), the microarray and oncology suites (Colon, Leukemia, GLIOMA, Prostate_GE, SMK_CAN_187, arcene), and Mice Protein. We use the tabular regression sets from Feature Bagging Provides Stability (Abalone, CPU Act, Diabetes, House Prices) as a low-dimensional control where we expect resampling to dominate. CHS and the Alzheimer's proteomics data are used if access permits. Otherwise we report only the published numbers above as context. For the BRCA pipeline-level stability there is no reported result found on Lacuna, and the same holds for any prior measure of module-choice instability on these datasets.
Metrics are mean pairwise Jaccard similarity of selected sets over the full factor distribution, the Sobol shares, the composition prediction error, and downstream held-out accuracy or AUC.
Three results decide the question. First, on real data with missingness, does the combined share of module choices and interactions exceed 30% of selection variance? This is a pre-registered threshold for "module choice matters." Second, does one-at-a-time composition mispredict whole-pipeline instability by more than the bootstrap standard error on at least half the datasets? Third, under equal compute, does attribution-guided stabilization raise cross-configuration Jaccard more than bagging the selector while keeping accuracy? If the first check fails, the right conclusion is that existing resampling-based stabilizers already address the dominant source of instability, and the contract machinery is unnecessary.
References
- An integrated machine learning approach to stroke prediction
- The Relative Instability of Model Comparison with Cross-validation
- Iterative random forests to discover predictive and stable high-order interactions
- Ensembling improves stability and power of feature selection for deep learning models
- ADAGES: Adaptive Aggregation with Stability for Distributed Feature Selection
- Feature Bagging Provides Stability
- Approximate Leave-one-out Cross Validation for Regression with ℓ1 Regularizers
- Marginal Contribution Feature Importance - an Axiomatic Approach for Explaining Data
- MURANO: Design, Run, and Reproduce Mechanistic Interpretability Experiments as Composable Pipelines
- DeepDIVA: A Highly-Functional Python Framework for Reproducible Experiments
- Modular Neural Networks for Time Series Forecasting: Interpretability and Feature Selection using Attention
- Controlling False Discovery Rate Using Gaussian Mirrors