Feature Bagging Provides Stability

Yuheng Ma, Qiang Sun

Feature bagging—the practice of training ensemble models on random subsets of features—is a foundational technique in machine learning, famously powering algorithms like Random Forests. Despite its widespread empirical success, the theoretical mechanisms behind why it works so well have remained somewhat elusive. This paper bridges that gap by demonstrating that feature bagging acts as a powerful algorithmic stabilizer, providing formal guarantees that more aggressive feature subsampling leads to more robust models and better generalization.

The Missing Metric: Feature Instability

In machine learning, algorithmic stability is a reliable proxy for trust and generalization. A stable algorithm is one where a small change in the input data does not lead to a wild swing in the model's predictions. Traditionally, stability is measured via Instance Instability (II): how much does a model's prediction change if a single data point (a row) is removed from the training set?

However, this ignores the "feature axis" utilized by algorithms that subsample columns rather than just rows. To address this, the authors introduce Feature Instability (FI), the leave-one-feature-out analogue to II. FI measures the average squared difference in a model's prediction when a single feature is removed from the input.

Crucially, the authors discover that FI and II are complementary. Feature Instability captures vital information about the generalization gap—the difference between training and test error—that Instance Instability entirely misses. To get a complete picture of model performance, both metrics are necessary.

Theoretical Insights: Linear Models and Recursive Trees

The researchers analyze feature bagging through two distinct theoretical frameworks:

  1. Asymptotic Linear Analysis: By examining bagged least-squares estimators in high-dimensional settings (where both features and samples grow to infinity), the authors derive exact formulas for how bagging mitigates overfitting. Notably, feature bagging "smooths out" the double descent phenomenon—the massive spike in instability that occurs at the interpolation threshold, where the number of parameters roughly equals the number of data points. Bagging effectively averages away this divergence, flattening the peak and making the model significantly more robust.
  2. Model-Free Recursive Theory: Moving beyond simple linear models, the paper develops a stochastic framework for recursive algorithms like Random Forests and Random Forward Selection. They identify an "inflation factor" that describes the price of recursion: how a small discrepancy in an early decision tree split can propagate and accumulate into much larger differences at the final leaf nodes.

Empirical Validation and the "Infinite Bagging" Limit

The theoretical claims are validated across synthetic benchmarks (such as the MARSadd setting, which controls signal-to-noise ratios) and classic real-world tabular datasets (Abalone, CPU Act, Diabetes, and House Prices).

Across 96 synthetic and 64 real-data experimental groups, FI consistently proved its worth. Even after accounting for traditional instance stability, measuring feature stability significantly improves the prediction of a model's generalization capability.

Furthermore, the authors show that you do not need an infinite number of trees to reap these benefits. A modest number of bagging rounds—roughly proportional to the number of dimensions ($d$)—is sufficient to approach the maximum possible stability level. Often, these stability gains come without a significant hit to estimation accuracy, offering a "free lunch" for model robustness in many regimes.

Limitations and Future Directions

While the exact asymptotic theory relies on linear models and Gaussian distributions, the authors suggest these results exhibit "universality" across many distributions. However, extending the sharpest proofs to non-linear neural networks remains an open challenge. Additionally, the recursive bounds are most effective for shallow trees; in very deep trees, the quadratic accumulation of instability might eventually outweigh the stabilizing benefits of bagging.

Looking forward, this "feature-axis" lens opens new avenues for research. Future work will likely apply Feature Instability to adversarial robustness—evaluating how models handle intentional feature perturbations—and feature selection, using FI to identify which features are truly essential for stable, reliable predictions.

Summary updated

BibTeX
@inproceedings{ma2026feature,
  author = {Yuheng Ma and Qiang Sun},
  title = {{Feature Bagging Provides Stability}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=XztZIs3k61},
}
Figure