What causes feature selection instability across different training data resamples?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
You run the same feature selection procedure on several bootstrap samples or cross-validation folds of one dataset and get noticeably different feature sets each time. What causes feature selection instability across different training data resamples?
```hint Near-equivalent answers
Ask how many different feature subsets would fit a given sample about equally well, and what decides between them.
```
```hint The procedure matters too
Some selection methods make hard, early or arbitrary choices. Trace how a small change in the rows travels through them.
```
### What a Strong Answer Covers
- A definition of instability and a way to measure it across bootstrap or CV resamples
- Causes in the data: correlated substitutes, many more features than rows, weak effects near the cutoff, and influential rows or class imbalance
- Causes in the procedure: Lasso's arbitrary pick within a correlated group, greedy wrappers, and noisy importance scores from high-variance models
- Mitigations such as stability selection, Elastic Net or feature grouping, and rank aggregation, with what each one costs
- The difference between an unstable feature set and unstable predictive performance
### Follow-up Questions
- How would you quantify the stability of a selection method, and why does raw Jaccard overlap need a correction for chance?
- How does stability selection choose its frequency threshold, and what does it promise about false selections?
- The selected features change across folds but the validation error does not. Is that a problem, and when does it matter?
- How do correlated features distort impurity-based and permutation importance in tree ensembles?
Overview: Explain why feature selection picks different features on different bootstrap samples or cross-validation folds of the same data. Tests your grasp of correlated features, high dimensionality, weak signals, high-variance selectors, stability measures and stability selection.