Verifying Glitches in Decision Tree Ensembles
Organizations: Indian Institute of Technology Bombay, Mumbai · IMDEA Software Institute Madrid, Spain
Abstract
Decision tree ensembles are widely used for tabular prediction tasks in judiciary, healthcare, banking, etc. We show that the piecewise-constant structure of these models can create narrow local oscillations, leading the ensemble score to sharply drop and then rise (a downward spike), or sharply rise and then drop (an upward spike), over a small change in a single feature. We call such patterns glitches. A glitch is not, by definition, an error. Rather, it is a formally checkable audit target requiring inspection. Formally, glitches are witnessed by ordered input triples in which a small monotonic change in a single input feature causes the output to first change in one direction and then revert in the opposite direction. Through a substantial experimental study, we show that glitches have widespread existence in even the state-of-the-art models performing various critical tasks. Our findings also indicate that glitches enrich and extend existing notions like robustness and monotonicity, providing us a more refined tool to isolate anomalies for inspection. On the theoretical side, we prove that deciding whether a decision tree ensemble contains a glitch is NP-complete, even for bounded-depth trees. We then present a mixed-integer linear programming encoding for the global and local glitch verification problems, and implement our algorithm in a verifier for gradient-boosted decision trees. Experiments show our verifier can scale to realistic model sizes from the literature.
Figures & tables
| Benchmarks | ||||
|---|---|---|---|---|
| SNO | ModelName | #Trees | Dep. | #Feat. |
| 1 | breastCancerR | 4 | 4 | 10 |
| 2 | breastCancerU | 4 | 5 | 10 |
| 3 | diabetesR | 20 | 4 | 8 |
| 4 | diabetesU | 20 | 5 | 8 |
| 5 | ijcnnR | 60 | 8 | 22 |
| Config | Adult | Churn | Pima | German | Breast | Spambase |
|---|---|---|---|---|---|---|
| Diabetes | Credit | Cancer | ||||
| t200_d4 | 85.71 | 42.86 | 100.00 | 38.89 | 33.33 | 92.00 |
| t200_d5 | 78.57 | 26.67 | 100.00 | 29.41 | 41.38 | 91.49 |
| t500_d4 | 57.14 | 26.67 | 100.00 | 33.33 | 31.03 | 92.00 |
| t500_d5 | 57.14 | 26.67 | 100.00 | 23.53 | 41.38 | 93.75 |
| t800_d4 | 78.57 | 26.67 | 100.00 | 22.22 | 31.03 | 90.00 |
| Config | Adult | Churn | Pima Diabetes | German Credit | Breast Cancer | Spambase |
|---|---|---|---|---|---|---|
| t200_d5 | 533.70 | 134.52 | 33.80 | 67.31 | 5.37 | 6399.41 |
| t200_d6 | 474.30 | 151.22 | 68.24 | 26.36 | 17.85 | 2013.30 |
| t500_d5 | 337.26 | 32.96 | 138.80 | 124.87 | 10.72 | TO |
| t500_d6 | 343.34 | 24.43 | 14.10 | 84.86 | 16.40 | 0.27 |
| t800_d5 | 129.40 | 10.72 | 109.95 | 7.22 | 10.72 | TO |
| t800_d6 | 0.84 | TO | 48.08 | 33.82 | 16.40 | TO |
Ensemble Learning
Ensemble learning combines multiple predictors to improve accuracy, robustness, calibration, or uncertainty estimates.
See all 278 papers