Causally-Guided Diffusion for Stable Feature Selection
Organizations: Arizona State University Tempe, Arizona, USA · Clemson University Clemson, South Carolina, USA · Stevens Institute of Technology Hoboken, New Jersey, USA
Abstract
Feature selection is fundamental to robust data-centric AI, but most existing methods optimize predictive performance under a single data distribution. This often selects spurious features that fail under distribution shifts. Motivated by principles from causal invariance, we study feature selection from a stability perspective and introduce Causally-Guided Diffusion for Stable Feature Selection (CGDFS). In CGDFS, we formalized feature selection as approximate posterior inference over feature subsets, whose posterior mass favors low prediction error and low cross-environment variance. Our framework combines three key insights: First, we formulate feature selection as stability-aware posterior sampling. Here, causal invariance serves as a soft inductive bias rather than explicit causal discovery. Second, we train a diffusion model as a learned prior over plausible continuous selection masks, combined with a stability-aware likelihood that rewards invariance across environments. This diffusion prior captures structural dependencies among features and enables scalable exploration of the combinatorially large selection space. Third, we perform guided annealed Langevin sampling that combines the diffusion prior with the stability objective, which yields a tractable, uncertainty-aware posterior inference that avoids discrete optimization and produces robust feature selections. We evaluate CGDFS on open-source real-world datasets exhibiting distribution shifts. Across both classification and regression tasks, CGDFS consistently selects more stable and transferable feature subsets, which leads to improved out-of-distribution performance and greater selection robustness compared to sparsity-based, tree-based, and stability-selection baselines.
Figures & tables
| Dataset | #Samples | #Features | Feature Selection Method | |||||||
| LASSO | MI | RF | StabSel | Greedy | Grad-Stab | ICP | CGDFS | |||
| Classification (F1-Macro ) | ||||||||||
| German Credit | 1001 | 24 | 0.680 | 0.665 | 0.695 | 0.692 | 0.705 | 0.688 | 0.712 | 0.725 |
| Ionosphere | 351 | 34 | 0.825 | 0.810 | 0.838 | 0.835 | 0.842 | 0.830 | 0.848 | 0.985 |
| Pima Indian | 768 | 9 | 0.655 | 0.642 | 0.668 | 0.665 | 0.672 | 0.660 | 0.680 | 0.712 |
| Spam Base | 4601 | 58 | 0.885 | 0.878 | 0.892 | 0.890 | 0.896 | 0.888 | 0.902 | 0.915 |
| Uncertainty Metric | Activity | Spam Base | Boston Housing |
| Central Tendency | |||
| Mean Uncertainty | 0.1847 | 0.0832 | 0.2761 |
| Median Uncertainty | 0.1693 | 0.0654 | 0.2453 |
| Std. Dev. Uncertainty | 0.1214 | 0.1456 | 0.2422 |
| Extreme Values | |||
| Minimum Uncertainty | 0.0008 | 0.0001 | 0.0001 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Default | Sweep range |
| 0.1 | {0.0, 0.01, 0.05, 0.1, 0.2, 0.5} | |
| Guidance | 0.5 | {0.0, 0.25, 0.5, 0.75, 1.0} |
| Langevin steps | 100 | {20, 50, 100, 200} |
| Chains | 10 | {1, 3, 5, 10} |
| Mask pool size | 500 | {100, 300, 500} |
| Diffusion steps | 100 | {50, 100} |
| Method | UCI Credit (C) | Pima Indian (C) | Boston Housing (R) | OpenML-618 (R) | ||||
| F1 | Std | F1 | Std | MSE | Std | MSE | Std | |
| Full CGDFSS | 0.725 | 0.051 | 0.712 | 0.034 | 15.1 | 1.60 | 22.9 | 1.13 |
| W/O ICP | 0.713 | 0.088 | 0.709 | 0.055 | 17.6 | 2.10 | 20.3 | 1.73 |
| W/O Diffusion | 0.643 | 0.058 | 0.680 | 0.039 | 36.3 | 1.67 | 24.1 | 1.42 |
| W/O Posterior Sampling | 0.691 | 0.079 | 0.695 | 0.061 | 29.8 | 3.14 | 24.5 | 1.45 |
| Dataset | Stability Sel. | Grad-Stab | ICP | CGDFS |
| UCI Credit (C) | 0.735 0.058 | 0.742 0.072 | 0.748 0.045 | 0.763 0.051 |
| Activity (C) | 0.820 0.081 | 0.815 0.090 | 0.835 0.065 | 0.984 0.063 |
| OpenML-618 (R) | 25.82 6.22 | 26.45 4.01 | 24.22 4.62 | 22.85 4.13 |
| OpenML-637 (R) | 17.23 3.05 | 17.64 2.07 | 15.84 2.06 | 14.82 2.08 |
Feature Selection
Feature selection identifies compact, informative variables or input dimensions to improve prediction, efficiency, interpretability, and statistical inference.
See all 196 papers