Standard classification algorithms often exhibit sensitivity near decision boundaries, which can compound instability that already exists from overfitting to a subset of high-influence samples. Ensembling is commonly used to stabilize classifiers, but we show that it can destabilize those that are already stable. The well-established practice of subbagging can yield substantial improvements in stability, as we validate in the cause-of-death classification setting. However, its effect depends on the perturbation level, and for stable classifiers the finite number of bags introduces destabilizing Monte Carlo noise that shrinks only slowly as the number of bags grows. This instability can be mitigated, though, by the recently proposed inflated argmax, which allows for multi-class predictions in ambiguous cases. We further examine the extent to which the Rashomon set, the collection of distinct models that achieve near-optimal predictive performance, can reduce instability by leveraging predictive multiplicity rather than resampling. We find that the Rashomon ensemble can stabilize unstable classifiers, but requires sufficient predictive multiplicity, which is not guaranteed. It is a promising direction, but not currently a general substitute for subbagging. Our results are consistent with an influence equalization interpretation of why these ensemble approaches stabilize unstable classifiers, although their failures on stable classifiers appear to have distinct sources.
Figures & tables
Figure 1: Comparing the effects of subbagging on mean instability ( βmean-instability ). The dots show the mean instability of the base algorithm ( A ) and arrows point to the mean instability of the subbagged algorithm ( Am ).
Figure 2: Comparing the effects of subbagging on maximum instability ( βmax-instability ). The dots show the maximum instability of the base algorithm ( A ), solid arrows point to the maximum instability of the subbagged algorithm ( Am ), and dashed arrows point to the maximum instability of the ε -inflated subbagged algorithm ( Amε ).
Figure 3: Instability plots for jackknife-stable classifiers with bootstrap perturbations and B=500 . The curves show the proportion of samples in the test set with instability greater than δ for unbagged (dashed) and subbagged (solid) algorithms.
Figure 4: Subbagging fraction ( m/n ) and ε -inflated argmax sensitivity analysis. The results illustrate the parameter ranges over which the subbagging fraction and the ε -inflated argmax most significantly reduce instability.
Figure 5: Instability plots from leave- k -out perturbations with the Rashomon ensembles based on 5,000 trees. The curves show the proportion of samples in the test set with instability greater than δ .
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 6: Comparing the effects of subbagging on maximum instability ( βmax-instability ) with Jaccard instability. The dots show the maximum instability of the base algorithm ( A ), solid arrows point to the maximum instability of the subbagged algorithm ( Am ), and dashed arrows point to the maximum instability of the ε -inflated subbagged algorithm ( Amε ). Under the Jaccard definition of instability, the inflated argmax does not provide as significant a reduction in instability as it does with the disjoint or overlap definitions.
Figure 7: Empirical cumulative distribution function of influence as defined by EX∥p^(X)−p^∖i(X)∥ for unbagged (dashed) and subbagged (solid) algorithms. Influence equalization does not imply instability reduction since these are examples where the instability increases with subbagging.
Figure 8: Instability plots for jackknife-stable classifiers under leave- k -out perturbations with B=300 at increasing k . The curves show the proportion of samples in the test set with instability greater than δ for unbagged (dashed) and subbagged (solid) algorithms. This illustrates the different behaviors as the perturbation level grows, where the effect of subbagging can become negligible or flip to become beneficial.
Figure 9: Instability plots for jackknife-stable classifiers with bootstrap perturbations and B=300 . The curves show the proportion of samples in the test set with instability greater than δ for unbagged (dashed) and subbagged (solid) algorithms.
Figure 10: Instability plots with and without perturbations for the naive Bayes classifier and B=2500 . The curves show the proportion of samples in the test set with instability greater than δ . The increase in instability with subbagging is present even without any perturbation.
Figure 11: Instability plots from leave-one-out perturbations with the Rashomon ensembles. The curves show the proportion of samples in the test set with instability greater than δ .
Figure 12: Instability plots from bootstrap perturbations with the Rashomon ensembles. The curves show the proportion of samples in the test set with instability greater than δ .
Figure 13: Empirical cumulative distribution function of influence as defined by PX(f^(X)=f^∖i(X)) for unbagged (red dashed), subbagged (blue solid), and Rashomon ensemble (yellow solid) algorithms for leave-one-out perturbations. The Rashomon ensemble generates an equalization effect similar to that of subbagging. However, this does appear to break down for the HELOC example that is fully jackknife stable, though it may be that this jackknife definition of influence is simply a poor proxy in this scenario.
Figure 14: Instability plots with and without perturbations with the Rashomon ensembles on the HELOC dataset. The curves show the proportion of samples in the test set with instability greater than δ . The Rashomon ensemble is consistent without perturbation.
Figure 15: Subbagging fraction ( nm ) and ε -inflated argmax sensitivity analysis for additional metrics. The results illustrate how the subbagging fraction and the ε -inflated argmax can affect accuracy, coverage, and set size. As we increase the ε -inflated argmax, we always trade off accuracy for coverage and increase set size. Subbagging can moderate these effects and is known to have an effect on accuracy, either positive or negative depending on the classifier.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.581 (0.012)
0.581 (0.012)
0.156 (0.003)
0.155 (0.006)
0.986
1.000 (0.000)
argmax
Am
0.590 (0.012)
0.590 (0.012)
0.010 (0.000)
0.011 (0.002)
0.908
1.000 (0.000)
argmax ε
A
0.570 (0.012)
0.601 (0.012)
0.156 (0.003)
0.122 (0.005)
0.952
1.046 (0.005)
argmax ε
Am
0.570 (0.012)
0.610 (0.012)
0.010 (0.000)
0.000 (0.000)
0.022
1.064 (0.006)
Appendix
Table 1: Summary results from the verbal autopsy dataset and Multi-Layer Perceptron (MLP) classifier validated on Dar, Tanzania holdout data with inflated argmax ϵ=0.05 . Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.542 (0.012)
0.542 (0.012)
0.080 (0.001)
0.159 (0.008)
1.000
1.000 (0.000)
argmax
Am
0.568 (0.012)
0.568 (0.012)
0.002 (0.000)
0.003 (0.001)
0.826
1.000 (0.000)
argmax ε
A
0.483 (0.012)
0.594 (0.012)
0.080 (0.001)
0.068 (0.005)
1.000
1.203 (0.011)
argmax ε
Am
0.505 (0.012)
0.617 (0.012)
0.002 (0.000)
0.000 (0.000)
0.000
1.155 (0.009)
Appendix
Table 2: Summary results from the verbal autopsy dataset and gradient boosting classifier validated on Dar, Tanzania holdout data with inflated argmax ϵ=0.05 . Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.541 (0.012)
0.541 (0.012)
0.003 (0.000)
0.002 (0.000)
0.150
1.000 (0.000)
argmax
Am
0.548 (0.012)
0.548 (0.012)
0.018 (0.000)
0.013 (0.002)
1.000
1.000 (0.000)
argmax ε
A
0.525 (0.012)
0.552 (0.012)
0.003 (0.000)
0.001 (0.000)
0.150
1.040 (0.005)
argmax ε
Am
0.536 (0.012)
0.568 (0.012)
0.018 (0.000)
0.000 (0.000)
0.045
1.045 (0.005)
Appendix
Table 3: Summary results from the verbal autopsy dataset and InSilicoVA ( McCormick et al., 2016 ) classifier validated on Dar, Tanzania holdout data with inflated argmax ϵ=0.1 — a lower ϵ produced negligible inflation, because the model makes highly confident predictions, so we must increase ϵ to achieve a comparable effect. Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.568 (0.012)
0.568 (0.012)
0.004 (0.000)
0.002 (0.000)
0.158
1.000 (0.000)
argmax
Am
0.547 (0.012)
0.547 (0.012)
0.018 (0.000)
0.013 (0.002)
0.914
1.000 (0.000)
argmax ε
A
0.564 (0.012)
0.570 (0.012)
0.004 (0.000)
0.001 (0.000)
0.158
1.010 (0.003)
argmax ε
Am
0.535 (0.012)
0.565 (0.012)
0.018 (0.000)
0.000 (0.000)
0.190
1.035 (0.005)
Appendix
Table 4: Summary results from the verbal autopsy dataset and decision tree classifier validated on Dar, Tanzania holdout data with inflated argmax ϵ=0.05 . Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.517 (0.012)
0.517 (0.012)
0.001 (0.000)
0.000 (0.000)
0.082
1.000 (0.000)
argmax
Am
0.516 (0.012)
0.516 (0.012)
0.012 (0.000)
0.012 (0.002)
0.980
1.000 (0.000)
argmax ε
A
0.517 (0.012)
0.517 (0.012)
0.001 (0.000)
0.000 (0.000)
0.024
1.001 (0.001)
argmax ε
Am
0.509 (0.012)
0.523 (0.012)
0.012 (0.000)
0.000 (0.000)
0.182
1.027 (0.004)
Appendix
Table 5: Summary results from the verbal autopsy dataset and naive Bayes classifier validated on Dar, Tanzania holdout data with inflated argmax ϵ=0.05 . Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.385 (0.012)
0.385 (0.012)
0.000 (0.000)
0.000 (0.000)
0.284
1.000 (0.000)
argmax
Am
0.395 (0.012)
0.395 (0.012)
0.011 (0.000)
0.019 (0.002)
0.976
1.000 (0.000)
argmax ε
A
0.336 (0.011)
0.432 (0.012)
0.000 (0.000)
0.000 (0.000)
0.223
1.215 (0.011)
argmax ε
Am
0.368 (0.012)
0.421 (0.012)
0.011 (0.000)
0.000 (0.000)
0.028
1.114 (0.008)
Appendix
Table 6: Summary results from the verbal autopsy dataset and K-Nearest Neighbors (KNN) classifier validated on Dar, Tanzania holdout data with inflated argmax ϵ=0.05 . Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.645 (0.012)
0.645 (0.012)
0.001 (0.000)
0.001 (0.000)
0.280
1.000 (0.000)
argmax
Am
0.646 (0.012)
0.646 (0.012)
0.005 (0.000)
0.005 (0.001)
0.958
1.000 (0.000)
argmax ε
A
0.635 (0.012)
0.655 (0.011)
0.001 (0.000)
0.000 (0.000)
0.004
1.028 (0.004)
argmax ε
Am
0.638 (0.012)
0.657 (0.011)
0.005 (0.000)
0.000 (0.000)
0.005
1.030 (0.004)
Appendix
Table 7: Summary results from the verbal autopsy dataset and Linear Discriminant Analysis (LDA) classifier validated on Dar, Tanzania holdout data with inflated argmax ϵ=0.05 . Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.593 (0.012)
0.593 (0.012)
0.001 (0.000)
0.001 (0.000)
0.210
1.000 (0.000)
argmax
Am
0.604 (0.012)
0.604 (0.012)
0.006 (0.000)
0.005 (0.001)
0.720
1.000 (0.000)
argmax ε
A
0.584 (0.012)
0.609 (0.012)
0.001 (0.000)
0.000 (0.000)
0.004
1.044 (0.005)
argmax ε
Am
0.593 (0.012)
0.625 (0.012)
0.006 (0.000)
0.000 (0.000)
0.285
1.053 (0.006)
Appendix
Table 8: Summary results from the verbal autopsy dataset and logistic regression classifier validated on Dar, Tanzania holdout data with inflated argmax ϵ=0.05 . Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.414 (0.012)
0.414 (0.012)
0.000 (0.000)
0.000 (0.000)
0.004
1.000 (0.000)
argmax
Am
0.499 (0.012)
0.499 (0.012)
0.010 (0.000)
0.003 (0.001)
0.794
1.000 (0.000)
argmax ε
A
0.409 (0.012)
0.420 (0.012)
0.000 (0.000)
0.000 (0.000)
0.004
1.011 (0.003)
argmax ε
Am
0.496 (0.012)
0.509 (0.012)
0.010 (0.000)
0.000 (0.000)
0.000
1.016 (0.003)
Appendix
Table 9: Summary results from the verbal autopsy dataset and a heavily regularized decision tree classifier validated on Dar, Tanzania holdout data with inflated argmax ϵ=0.05 . Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.779 (0.018)
0.779 (0.018)
0.384 (0.013)
0.275 (0.011)
0.960
1.000 (0.000)
argmax
Am
0.975 (0.007)
0.975 (0.007)
0.064 (0.001)
0.033 (0.005)
0.860
1.000 (0.000)
argmax
AR
0.968 (0.007)
0.968 (0.007)
0.181 (0.004)
0.080 (0.005)
0.690
1.000 (0.000)
argmax ε
A
0.779 (0.018)
0.779 (0.018)
0.384 (0.013)
0.275 (0.011)
0.960
1.000 (0.000)
argmax ε
Am
0.966 (0.008)
0.979 (0.006)
0.064 (0.001)
0.008 (0.002)
0.500
1.012 (0.005)
argmax ε
AR
0.930 (0.011)
0.968 (0.007)
0.181 (0.004)
0.066 (0.004)
0.570
1.038 (0.008)
Appendix
Table 10: Summary results from the synthetic dataset and SORTeD decision tree classifier with inflated argmax ϵ=0.1 and leave-25-out perturbations. On the full training dataset the Rashomon set had 6,573 trees, of which 1,373 produced unique prediction vectors, and those were clustered down to 10. Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.858 (0.007)
0.858 (0.007)
0.063 (0.002)
0.041 (0.003)
0.590
1.000 (0.000)
argmax
Am
0.857 (0.007)
0.857 (0.007)
0.016 (0.000)
0.005 (0.001)
0.555
1.000 (0.000)
argmax
AR
0.858 (0.007)
0.858 (0.007)
0.020 (0.001)
0.005 (0.001)
0.615
1.000 (0.000)
argmax ε
A
0.858 (0.007)
0.858 (0.007)
0.063 (0.002)
0.041 (0.003)
0.590
1.000 (0.000)
argmax ε
Am
0.854 (0.007)
0.859 (0.007)
0.016 (0.000)
0.001 (0.000)
0.105
1.004 (0.001)
argmax ε
AR
0.857 (0.007)
0.860 (0.007)
0.020 (0.001)
0.002 (0.000)
0.400
1.003 (0.001)
Appendix
Table 11: Summary results from the FICO HELOC dataset and SORTeD decision tree classifier with inflated argmax ϵ=0.1 and leave-1000-out perturbations. On the full training set, the Rashomon set contained 5,497 trees of which 347 produced unique prediction vectors, and those were clustered down to 50. Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Sel. rule
Algo
βaccuracy↗
βcoverage↗
βeucl-instability↘
βmean-instability↘
βmax-instability↘
βsize↘
argmax
A
0.664 (0.013)
0.664 (0.013)
0.070 (0.002)
0.091 (0.004)
0.620
1.000 (0.000)
argmax
Am
0.669 (0.013)
0.669 (0.013)
0.042 (0.001)
0.067 (0.003)
0.570
1.000 (0.000)
argmax
AR
0.662 (0.013)
0.662 (0.013)
0.075 (0.002)
0.052 (0.004)
0.690
1.000 (0.000)
argmax ε
A
0.664 (0.013)
0.664 (0.013)
0.070 (0.002)
0.091 (0.004)
0.620
1.000 (0.000)
argmax ε
Am
0.660 (0.013)
0.676 (0.013)
0.042 (0.001)
0.035 (0.002)
0.270
1.016 (0.004)
argmax ε
AR
0.657 (0.014)
0.666 (0.013)
0.075 (0.002)
0.040 (0.003)
0.610
1.008 (0.003)
Appendix
Table 12: Summary results from the COMPAS Recidivism dataset ( Larson et al., 2016 ) and SORTeD decision tree classifier with inflated argmax ϵ=0.1 and bootstrap perturbations. On the full training dataset the Rashomon set had 3,660 trees, of which 340 produced unique prediction vectors, and those were clustered down to 50. Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired.
Mean Instability ↘
Max Instability ↘
Sel. rule
Algo
Disjoint
Overlap
Jaccard
Disjoint
Overlap
Jaccard
βsize↘
argmax
A
0.155 (0.006)
0.155 (0.006)
0.155 (0.006)
0.986
0.986
0.986
1.000 (0.000)
argmax
Am
0.011 (0.002)
0.011 (0.002)
0.011 (0.002)
0.908
0.908
0.908
1.000 (0.000)
argmax ε
A
0.122 (0.005)
0.122 (0.005)
0.156 (0.006)
0.952
0.952
0.960
1.046 (0.005)
argmax ε
Am
0.000 (0.000)
0.000 (0.000)
0.012 (0.001)
0.002
0.022
0.493
1.064 (0.006)
Appendix
Table 13: Summary results from the verbal autopsy dataset and Multi-Layer Perceptron (MLP) classifier validated on Dar, Tanzania holdout data with inflated argmax ϵ=0.05 . Standard errors are shown in parentheses and arrow direction denotes higher/lower values are desired. This example demonstrates how the chosen instability definition can alter the effect of the inflated argmax, with the Jaccard definition being noticeably more conservative.
HELOC
Synthetic
Pruning
Mean Instability
Max Instability
Mean Instability
Max Instability
No Pruning
0.029
0.568
0.191
0.938
No Clustering
0.025
0.722
0.135
0.870
500 Clusters
-
-
0.128
0.872
100 Clusters
0.018
0.690
0.136
0.886
50 Clusters
0.019
0.678
0.133
0.898
Appendix
Table 14: Sensitivity of Rashomon ensemble instability to the scheme of pruning trees in the Rashomon set with bootstrap perturbations. Lowest values are bolded.
Pruning
Mean Pairwise Disagreement
Mean Instability
Max Instability
No Pruning
0.2181
0.191
0.938
No Clustering
0.2346
0.135
0.870
500 Clusters
0.2625
0.128
0.872
100 Clusters
0.2520
0.136
0.886
50 Clusters
0.2495
0.133
0.898
25 Clusters
0.2366
0.138
0.878
Appendix
Table 15: Mean pairwise disagreement of prediction vectors in the Rashomon ensemble alongside mean and maximum instability, across pruning schemes, on the synthetic dataset with bootstrap perturbations. The highest mean pairwise disagreement and lowest instability measures are bolded.
Without Pruning
With Pruning
Cost Complexity
Mean PwD of Rashomon Set
Mean Instability
Max Instability
Mean Instability
Max Instability
0.005
0.2409
0.167
0.785
0.151
0.960
0.01
0.2181
0.144
0.825
0.080
0.690
Appendix
Table 16: Mean pairwise disagreement (PwD) of prediction vectors in the Rashomon set, alongside mean and maximum instability with and without pruning, across SORTeD parameters, on the synthetic dataset with leave-25-out perturbations.
Algorithmic stability refers to the property of an algorithm being insensitive to perturbations of the input data, where the type of perturbation may vary depending on the setting. In this work, we develop a general framework to quantify the extent to which any ensembling strategy defined via averaging can yield stability guarantees for any type of data perturbation. Our main theoretical result is a guarantee on the stability of this ensembled algorithm, given in terms of the norm of a certain covariance operator that describes the ensembling process. We show how our general framework yields interpretable and intuitive insights in several examples of perturbations of practical interest, and provides much sharper guarantees than those obtained from privacy considerations.
We study feature bagging through the lens of algorithmic stability. Feature bagging is an ensemble strategy that aggregates base learners trained on randomly subsampled feature subsets, possibly in a data-dependent manner. We introduce feature instability (FI), the feature-axis analogue of instance instability (II), which measures sensitivity to removing a single feature. Smaller values of II or FI correspond to stronger stability, and our experiments show that FI captures generalization-relevant information complementary to II. Within this framework, we analyze feature bagging in both a parametric linear model and a model-free setting inspired by recursive feature subsampling in random forests. In both settings, we establish formal guarantees showing that feature bagging improves the relevant stability relative to its non-bagged counterpart, with larger improvements under more aggressive subsampling. We further show that a modest number of bagging rounds is sufficient to approach the infinite-bagging stability level.
Yuheng Ma, Qiang Sun
School of Statistics, East China Normal University · University of Toronto · MBZUAI
The relationship between overparameterization, stability, and generalization remains incompletely understood in the setting of discontinuous classifiers. We address this gap by establishing a generalization bound for finite function classes that improves inversely with class stability, defined as the expected distance to the decision boundary in the input domain (margin). Interpreting class stability as a quantifiable notion of robustness, we derive as a corollary a law of robustness for classification that extends the results of Bubeck and Sellke beyond smoothness assumptions to discontinuous functions. In particular, any interpolating model with p≈n parameters on n data points must be unstable, implying that substantial overparameterization is necessary to achieve high stability. We obtain analogous results for parameterized infinite function classes by analyzing a stronger robustness measure derived from the margin in the codomain, which we refer to as the normalized co-stability. Experiments support our theory: stability increases with model size and correlates with test performance, while traditional norm-based measures remain largely uninformative.
Jonas von Berg, Adalbert Fono, Massimiliano Datres +2
Ludwig-Maximilians-Universität München Munich, Germany Munich Center for Machine Learning (MCML) · ∗now at Aleph Alpha Research · †University of Tromso, DLR-German Aerospace Center