Tree-Ensemble Repair through Constrained Optimization
Lorenzo Cascioli, Chaahat Jain, Marcel Steinmetz, Jörg Hoffmann, Jesse Davis
NeurIPS 2026
TL;DR. A MILP-based algorithm to repair tree ensembles enforcing properties such as fairness or multistep safety
Abstract. It is widely recognized that in many applications, strong predictive performance is not enough to warrant use of a learned model. Additionally, it is required to ascertain whether the model conforms to certain properties such as fairness, robustness or safety. Unfortunately, most learning approaches are not guaranteed to produce a model that adheres to these properties. Model repair addresses this through a post-hoc debugging loop. Approaches such as verification are used to check if the desired property holds for a model; if not they return a counterexample which is used to modify or repair the ML model. We propose a novel repair method for tree ensembles. Our approach is based on a MILP encoding where the objective is to modify the leaf values in the tree ensemble such that the counterexamples are fixed while at the same time preserving predictive performance. The use of constrained optimization over the model parameters is compelling as it is guaranteed to fix a given set of counterexamples. We implement and evaluate our method in two use-case scenarios, classification requiring fairness and action policies in MDPs requiring safety. Results show that our MILP repair of tree ensembles is feasible computationally, and is often successful in improving the desired property while not degrading performance.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
In this paper, the authors tackle the problem of improving fairness, robustness, and safety of tree ensembles (without sacrificing accuracy, if possible). The idea is to "repair" the ensemble by modifying the values from counterexamples in a tree using a MILP encoding. The method is implemented and evaluated in two scenarios that focus on fairness and safety, respectively.
The reviewers appreciate the interesting, timely, and practically important topic. Moreover, they like the approach put forward in the paper and the clarity of presentation. That said, in their initial reviews, they also raised a couple of critical remarks and expressed concerns about certain parts of the paper: (i) There seemed to be some issues with the technical soundness (e.g., with the MILP encoding under ties, unstated assumptions in Theorem 2, etc.). (ii) Another concern was scalability, especially for exact verification (timeouts). (iii) Also, the finding of counterexamples appears to be problematic. (iv) The experiments could not be replicated and the results could bot be verified, because no implementation was provided. (v) Complaints have also raised regarding the choice of baselines.
During the rebuttal phase, the authors worked hard to address all these issues and answered all questions in a comprehensive way, which is very much appreciated. In particular, they also shared the code. The reviewers are largely satisfied with the clarifications, at least those who responded and explained their final judgment. The overall rating remains somewhat ambiguous, with two reviewers on the positive and two on the negative side. However, the latter either didn't react to the authors' rebuttal or did not explain which issues remain unresolved. Personally, I would say that their concerns have been adequately addressed. I also took a quick look at the paper myself and think it makes an interesting and solid contribution.
Final justification
See meta review.
- Final justification
- See meta review.
Read meta-review
Meta-review
In this paper, the authors tackle the problem of improving fairness, robustness, and safety of tree ensembles (without sacrificing accuracy, if possible). The idea is to "repair" the ensemble by modifying the values from counterexamples in a tree using a MILP encoding. The method is implemented and evaluated in two scenarios that focus on fairness and safety, respectively.
The reviewers appreciate the interesting, timely, and practically important topic. Moreover, they like the approach put forward in the paper and the clarity of presentation. That said, in their initial reviews, they also raised a couple of critical remarks and expressed concerns about certain parts of the paper: (i) There seemed to be some issues with the technical soundness (e.g., with the MILP encoding under ties, unstated assumptions in Theorem 2, etc.). (ii) Another concern was scalability, especially for exact verification (timeouts). (iii) Also, the finding of counterexamples appears to be problematic. (iv) The experiments could not be replicated and the results could bot be verified, because no implementation was provided. (v) Complaints have also raised regarding the choice of baselines.
During the rebuttal phase, the authors worked hard to address all these issues and answered all questions in a comprehensive way, which is very much appreciated. In particular, they also shared the code. The reviewers are largely satisfied with the clarifications, at least those who responded and explained their final judgment. The overall rating remains somewhat ambiguous, with two reviewers on the positive and two on the negative side. However, the latter either didn't react to the authors' rebuttal or did not explain which issues remain unresolved. Personally, I would say that their concerns have been adequately addressed. I also took a quick look at the paper myself and think it makes an interesting and solid contribution.
2 comments
Rebuttal summary
We addressed all points raised by the reviewers, but unfortunately we have not received any acknowledgement yet. In particular:
Technical Soundness. We applied a small fix to the MILP formulation, as the reviewers correctly noted that Eq. 3 needs a strict inequality to avoid ties. The updated formulation is sound and our implementation already used it, hence all results are correct.
Theorem 2 has no unstated assumptions, as constructing the separating tree is always feasible.
Scalability. MILP repair never timed out in the fairness experiment and only twice in the safety one. We nonetheless recognize its scalability as a limitation and additionally studied how MILP runtime scales with model size and #counterexamples, outlining a way to mitigate the dependency on the latter. All remaining scalability concerns pertain to counterexample generation.
Counterexample generation. In our experiments we used off-the-shelf verifiers to generate counterexamples, as this is not part of our contribution: we address the repair step, i.e., provably fixing a model for a given set of counterexamples. How to generate counterexamples is an active area of research whose improvements directly benefit model repair.
Code. We shared the code to reproduce all experiments through an anonymous git link.
Baselines. No existing repair method provably enforces these properties on tree ensembles. We added the safety-filter baseline suggested by rev. vaBX: our MILP repair method clearly outperforms this baseline.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a repair method for tree ensembles using mixed-integer linear programming. It starts from a trained tree ensemble and a set of counterexamples that violate a desired property. Rather than retraining the model or changing the existing tree splits, the method modifies the leaf values according to a MILP formulation so that the repaired model satisfies the desired constraints on the counterexamples. The objective also attempts to preserve performance and keep the leaf-value changes small. If the MILP is infeasible due to some indistinguishable conflicting samples, the method uses an IIS-based procedure to add a new tree that separates them. The method is evaluated on two cases, fairness and safety. Overall, their method outperforms the compared training-time or retraining-based baselines in improving constraint satisfaction, while usually preserving model performance better.
Strengths and weaknesses
Strengths:
(1) This is a post-hoc patching method for tree ensembles. It is useful when we already have a strong model and later find property violations.
(2) The leaf-value MILP formulation is simple and technically reasonable. It empircally ensures minimal change to incorporate explicit counter examples. After training, we can impose hard constraints on those discovered cases without retraining the whole model.
(3) The fairness experiment is fairly convincing under the adopted definition, with all repaired models verified fair.
(4) The IIS-based tree-addition mechanism is a reasonable fallback when leaf-value-only repair is infeasible.
Weaknesses:
(1) The method depends heavily on the counterexamples found by the verifier. If violations are rare, imbalanced, or concentrated in tail regions of the input/state distribution, the repair may miss important failure modes. Thus, the method can overfit to the discovered counterexamples: the model may stop failing on known tests while still violating the property elsewhere.
(2) This is especially concerning for the current safety experiments, where counterexamples are found by fuzzing rather than complete verification, i.e., the improvement in %Safe is an empirical result on sampled repair/evaluation states, not a proof of global policy safety.
(3) Scalability is not deeply studied, although it is not critical. It remains unclear how well the method scales to large uncompressed ensembles, more classes, or many counterexamples. The paper does not fully demonstrate IIS's scalability. Since it is rare in the experiments, we do not really know how efficient it would be when many infeasibilities occur.
(4) The baselines are a bit unsatisfying. For fairness, the comparison is mostly against training-time fairness methods rather than post-hoc repair methods with comparable guarantees. For safety, stronger comparisons to methods such as simple safety filter at decision time would better clarify the practical tradeoffs.
Minor issues:
Some formulas are correct but harder to read than necessary. For example, the definition of around line 125 is confusing. Is it just the set of correctly classified training examples that are not counterexamples, i.e., ?
Similarly, Definition 3 for safety could be stated more simply as . This directly says that in every safe state, the policy should choose a safe action.
Also, in Equation (2), using a max inside a MILP constraint is not ideal. It could be written directly as linear constraints: , $\forall y \in Y $. The idea of the paper is clear, but some notation and logical formulas make the method harder to follow than it needs to be. I would recommend revising and these definitions.
Questions
-
How does the method perform when counterexamples are rare, imbalanced, or concentrated in hard-to-find tail regions of the input/state space?
-
In the safety experiments, did the authors check whether the repaired policies still violate safety outside the discovered counterexamples?
-
How well does the method scale to large uncompressed tree ensembles, more classes, or many counterexamples? In particular, how efficient is the IIS-based tree addition when infeasibility occurs often?
Limitations
Yes
Formatting concerns
No
2 comments
Rebuttal
Counterexamples. Our key contribution is the repair step: given a set of counterexamples, our approach provably fixes all of them (Thm. 1). How to generate counterexamples - both completely and incompletely - is a different, active area of research: our approach will benefit from all improvements in this area. Counterexamples being rare, imbalanced or concentrated in tail regions of the input space only affect incomplete counterexample generation such as fuzzing: it does not affect counterexamples generated by verification.
Safety Results. Our safety experiment already tests whether repaired policies violate safety outside the discovered counterexamples: %Safe is measured on a set of evaluation states that is disjoint from the repair states used for counterexample generation (see lines 302-309). We still observe a median +97.8% improvement (Fig. 2), meaning that fixes generalize to unseen states, but in some cases %Safe remains below 100%, i.e., some violations still exist – however, this is purely due to counterexample generation being incomplete, not to a failed repair.
Scalability. We have studied how MILP repair runtime scales wrt model size (#leaves) and #counterexamples using all the instances from our fairness experiment. MILP runtime shows a moderate Spearman correlation with model size (0.45), and a stronger correlation with #counterexamples (0.95), which makes sense as each counterexample adds a hard constraint to the MILP while a larger model only adds some variables to the MILP. Specifically, our fairness experiments range from 1 to 130k counterexamples per instance, and from <10 to >250 leaves in the ensemble. We will add a scalability discussion in the paper with two figures (MILP runtime vs. model size, MILP runtime vs. #counterexamples). Our response to rev. XEGK outlines one way to counteract this dependency wrt #counterexamples should that become a bottleneck.
We used compressed ensembles in the fairness experiment to ensure complete counterexample generation following the work of Devos et al., who showed that compressing tree ensembles yields little to no loss in predictive performance [1] (our compressed models only lose an average 0.5% (XGB) and 0.02% (RF) balanced accuracy wrt the uncompressed ones). Our MILP repair applies unchanged to larger uncompressed ensembles, but counterexample generation would be incomplete just like in the safety experiment.
Finally, our safety experiments already span a wide range of class counts, from 2 to 15.
Feasibility Recovery Scalability. In our experiments infeasibility is rare: it is provably impossible for fairness (Thm. 4), and occurred only twice in safety repair. We studied the scalability of our IIS-based tree addition process by running an ad-hoc experiment. We considered the 21 safety benchmarks where counterexample generation does not fail and MILP takes <1h, and for each one we repaired 5 models of increasing size (keeping depth 5 and increasing #trees), tracking infeasibility hits.
Results from the table below show that (1) as models get bigger, we hit less infeasible MILPs and (2) the time to recover feasibility is usually well below 1 minute. Therefore we do not expect this to be a bottleneck at practical model sizes. We will add the experiment to the camera-ready version.
| # trees | # infeasible benchmarks | # tot. added trees | time to recover feasibility (s) |
|---|---|---|---|
| 2 | 6 | 44 | 15.45 ± 39.97 |
| 5 | 4 | 33 | 15.12 ± 37.80 |
| 10 | 3 | 26 | 9.19 ± 16.57 |
| 20 | 2 | 10 | 10.87 ± 8.91 |
| 50 | 1 | 2 | 33.86 ± 14.26 |
max depth 5; 21 benchmarks total; time to recover feasibility = detect IIS + add separating tree (avg ± stdev)
Baselines. Methods for post-hoc repair that provably guarantee these properties do not exist. For fairness, we could only find property-aware training techniques, and showed that our MILP repair is superior. If the reviewer could provide any cites we might have overlooked, we will be happy to add them to our experiments.
For safety, we experimented with a simple filter as suggested by the reviewer. For each counterexample we add a tree that isolates the example into a single leaf and assigns a large negative value to its disallowed classes, so that they can never be selected; this provably repairs every identified counterexample, matching the guarantee of Thm 1. However, it has two shortcomings. First, the ensemble grows by one tree per counterexample, which is prohibitive when we find thousands of counterexamples (which happens, see Table 8). Second, the fix only filters the exact counterexamples we find, hence by construction it can never generalize to unseen counterexamples (which MILP repair does, see our reply to rev. XEGK).
The table below reports repaired policy quality using MILP vs. safety filter for a subset of our benchmarks – we are running the experiment for the remaining ones and will add them later this week. Results show that the safety filter never outperforms MILP repair, while being worse in 9 instances out of 11. We will add this baseline to the camera ready version.
| Benchmark | %Goal Orig | %Goal MILP | %Goal Filter | %Safe Orig | %Safe MILP | %Safe Filter |
|---|---|---|---|---|---|---|
| Beluga (3 Jigs) | 66.67 | 81.33 | 78.3 | 0.0 | 16.7 | 16.7 |
| Beluga (4 Jigs) | 83.9 | 88.8 | 92.5 | 0.0 | 4.2 | 4.2 |
| Beluga (5 Jigs) | 75.6 | 97.2 | 95.6 | 0.0 | 64.2 | 25.0 |
| 8Blocks CA | 92.03 | 79.0 | 91.99 | 99.93 | 100.0 | 99.96 |
| 1 way line (15, 10) Icy + Park | 91.6 | 91.6 | 91.6 | 0.4 | 100.0 | 96.9 |
| 1 way line (17, 10) Icy + Park | 90.4 | 90.4 | 90.5 | 0.0 | 100.0 | 62.9 |
| 1 way line (20, 10) Icy + Park | 87.5 | 87.4 | 87.4 | 0.1 | 100.0 | 59.1 |
| 2 way line (17, 10) Icy + Park | 0.0 | 0.0 | 0.0 | 59.6 | 99.5 | 59.6 |
| 2 way line (20, 10) Icy + Park | 0.0 | 0.0 | 0.0 | 60.1 | 100.0 | 60.1 |
| Follow Car | 86.7 | 100.0 | 86.7 | 86.7 | 100.0 | 86.7 |
| Inverted Pendulum | 97.1 | 100.0 | 97.1 | 97.1 | 100.0 | 97.1 |
| Mean | 70.1 | 74.2 | 73.8 | 36.7 | 80.4 | 60.7 |
Minor issues. We will improve the clarity of the 3 mentioned formulas, and thank the reviewer for the suggestions!
[1] Devos, L., Martens, T., Oruc, D. C., Meert, W., Blockeel, H., and Davis, J. Compressing tree ensembles through level-wise optimization and pruning. In Proceedings of the 42nd International Conference on Machine Learning, 2025.
Complete results for safety filter baseline
Two more instances of the safety filter experiment have terminated (8Blocks CI, 1WL (17,10) Icy) with identical results to MILP repair; all other instances timed out or ran OOM after 12h. Therefore out of the 23 instances where fuzzing generates counterexamples:
- in 9 cases, MILP yields higher safety than the filter
- in 9 cases, MILP terminates while the filter runs out of resources
- in 5 cases, MILP and filter yield identical safety.
These results show the superiority of our MILP repair with respect to a simple safety filter and will be added to the paper.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes a post-hoc repair method for multiclass tree ensembles. Given counterexamples to a desired property, it modifies leaf values via a MILP while trying to preserve predictive performance. The method is instantiated for individual fairness and MDP policy safety, with an iterative counterexample-generation/repair loop. The paper reports strong fairness results in experiments.
Strengths and weaknesses
Strengths:
- The paper addresses an important and practical problem: post-hoc repair of tree ensembles to satisfy properties such as fairness and safety while preserving predictive performance.
- The MILP formulation is elegant and uses tree-ensemble structure well by modifying only leaf values involved in counterexamples.
- The framework is reasonably general: the allowed/disallowed class formulation naturally covers both individual fairness and policy safety.
- The fairness experiments are strong: the method produces provably fair models in all tested cases with modest balanced-accuracy loss.
- The paper is mostly clear and well organized, with useful ablations, runtime analysis, and additional random-forest experiments in the appendix.
Weaknesses
- The technical soundness of the MILP encoding needs clarification: the reverse implication for the indicator variables appears problematic under ties, which may affect the main guarantee.
- The feasibility-recovery theorem needs clearer assumptions about what the added separating tree guarantees, especially regarding counterexamples outside the IIS. 3, The safety evaluation is less conclusive than the fairness evaluation because counterexamples are generated mostly by incomplete testing rather than full verification.
- Scalability remains a concern: exact verification requires compression, and some MILP runs are expensive or time out.
- Some baselines are not fully matched to the target properties, e.g., FairGBM targets group fairness rather than the individual fairness notion evaluated here.
Questions
- Can the authors clarify the soundness of the MILP encoding, especially tie handling and the choice of big-M?
- What exact assumption is needed for the IIS-based tree-addition procedure to guarantee feasibility?
- Can the authors better quantify safety-repair reliability under incomplete counterexample generation and timeout/OOM cases?
Limitations
- The paper should more clearly distinguish between certified repair and empirical repair. In the fairness setting, the repaired models are verified fair, but in the safety setting the loop mostly relies on incomplete fuzzing/fault analysis, so the repaired policies are not generally proven safe.
- The authors should discuss scalability more concretely, especially the need to compress XGBoost models before fairness verification/repair and the cases where MILP or counterexample generation times out
- The limitations should mention numerical/modeling assumptions in the MILP formulation, including tie handling, big-M selection, and any bounds on modified leaf values, since these affect the formal guarantees.
Final justification
The rebuttal addresses some of my concerns, but I would still like to keep my original rating.
Formatting concerns
n/a
1 comment
Rebuttal
MILP tie handling. We thank the reviewer for pointing out the issue with tie breaking, which is a small mistake in our formulation in the paper. Our implementation uses the correct formulation (as given below), hence all results are correct. To ensure that an allowed class is always selected, Eq. 3 needs a strict inequality where is compared to all other disallowed classes:
Then, implies that class strictly outscores all other classes. We have also corrected Equation 6, Definition 4 and Theorem 1’s proof accordingly.
MILP big-M. The big-M used in Eq. 6 must upper-bound the largest possible difference in ensemble output between two classes. Therefore, at every MILP iteration we compute an overestimation of this quantity by summing for each tree the maximum inter-class difference across all its leaf values. We will add a formalization of this to the Appendix.
Feasibility Recovery. Infeasibility arises when counterexamples sharing an OC require conflicting predictions (see Appendix B). The separating tree is designed so that each counterexample in the IIS reaches a different leaf; consequently, adding the separating tree to the ensemble forces counterexamples in the IIS to not share the same OC anymore (see Appendix D.2). Constructing such a tree is always feasible as we can assign a fictitious label to each counterexample in the IIS and learn a decision tree with no depth constraint. No guarantee is needed outside the IIS: if the MILP becomes feasible after adding a separating tree, from Thm. 1 all counterexamples (inside and outside the IIS) are now fixed. If the MILP is still infeasible, another IIS exists: we therefore add another separating tree and repeat, which eventually terminates with a feasible MILP (Thm. 2).
Safety Results. Our key contribution is the repair step. The difference between fairness and safety is due to the counterexample generation techniques and not to repair quality: in both cases, MILP repair fixes all identified counterexamples.
If counterexample generation is complete (as in fairness) MILP repair provably enforces the property. If it is incomplete (as in safety) the property is enforced on all identified counterexamples but may not be globally certifiable due to the computational hardness of exact verification (PSPACE-complete for discrete state spaces [1], undecidable for continuous state spaces). If counterexample generation fails, no repair is possible. We will clarify the impact of the counterexample generation method in the paper, noting that scaling up exact verification tools is an active area of research whose improvements will benefit counterexample-guided repair.
Nonetheless, our empirical results demonstrate that 1. if exact verification terminates, our repaired policy is certified safe; 2. otherwise, we get large increases in %Safe, showing that we are still empirically improving safety which is the best one can do in this situation.
Scalability. We acknowledge the scalability of MILP repair as a limitation. However, MILP repair never timed out in the fairness experiments and only twice in the safety ones. Our reply to rev. vaBX highlights that MILP complexity is strongly correlated to the number of counterexamples as each one is encoded as a hard constraint. Hence capping the number of new counterexamples considered per iteration would yield improved scalability if needed. We see this as an interesting topic for future work.
The remaining scalability concerns all pertain to counterexample generation, for which we used off-the-shelf verifiers as this is not part of our contribution. In fairness, we followed the work of Devos et al who showed that compressing tree ensembles yields little to no loss in predictive performance [2] while enabling exhaustive counterexample generation [3]. Our MILP repair applies unchanged to uncompressed ensembles, but counterexample generation would be incomplete just like in the safety experiment.
Baselines. To our knowledge, no existing method provably enforces these properties on a tree ensemble either at training time or post hoc by repair. This explains why some baselines are not fully matched to the target properties. FairGBM was added to show that biasing the learning towards another definition of fairness does not work to enforce individual fairness. If the reviewer could provide cites we might have overlooked, we will be happy to add them to our experiments.
MILP leaf bound. We set a bound on the magnitude of each modified leaf value of 1e3 to avoid numerical instability in the MILP. We will add this to Appendix A.
[1] Vinzent, M., Steinmetz, M., and Hoffmann, J. Neural Network Action Policy Verification via Predicate Abstraction. Technical report, Saarland University, 2022. Published at the 29th International Conference on Automated Planning and Scheduling (ICAPS 2022).
[2] Devos, L., Martens, T., Oruc, D. C., Meert, W., Blockeel, H., and Davis, J. Compressing tree ensembles through level-wise optimization and pruning. In Proceedings of the 42nd International Conference on Machine Learning, 2025.
[3] Martens, T., Devos, L., Cascioli, L., Meert, W., Blockeel, H. and Davis, J. OC-space: a Unifying Perspective on Verification of Tree Ensembles. In: Proceedings of the 43rd International Conference on Machine Learning, 2026.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper focuses on improve properties like fairness, robustness, or safety of tree esembles, beyond the traditional focus on prediction accuracies. The proposed method is to repair the tree through modifying the values from counterexamples, returned by but beyond verification, based on a MILP encoding, but still preserve the predictive performance. The method was implemented and evaluated in two scenarios that respectively focus on fairness and safety, which demonstrates the computational feasibility and intended improvements in the target property.
Strengths and weaknesses
Strengths And Weaknesses
Strengths
The paper is well-motivated with a clearly defined but challenging objective of preserving the predictive performance of tree ensembles but improving other properties. The design of the proposed repair method is novel and intuitive that should be of interest and practical value to a lot of practitioners. The studies were well designed to exhibit its practical use direct to the motivation of the approach. The baselines were resonably chosen to compare the proposed method with alternative methods that tend to properties beyond predictive performances.
Weaknesses
No code script of implementation and evalution was provided to replicate the experiments and validate the results in the paper.
Questions
-
It will be helpful to provide the code to confirm the reproducibility of the results.
-
This paper already presents a novel approach of tree repairs beyond verification, and properly acknowledges the limitation of the computational expensiveness in the limitation. Therefore, would it be possible to investigate and discuss if partial repair based on a certain sampling scheme could improve properties like fairness and safety?
Limitations
yes
Final justification
After reviewing the code supplementary materials the authors provided, I maintain my positive thoughts of their work and maintain my score.
Formatting concerns
no
1 comment
Rebuttal
Code. We have uploaded the code at an anonymous GitHub repository. Following the instructions we received via email, we will send the anonymized link to the AC in an Official Comment as soon as the discussion phase opens.
Partial repair. First, our safety experiment already carries out a partial repair. As multistep policy safety verification is computationally hard (PSPACE-complete for discrete state spaces [1], undecidable for continuous state spaces), we only generate counterexamples on a subset of the input space – however, Figure 2 shows that the repaired policy is substantially safer on a disjoint set of start states, which have not been used to generate counterexamples!
Second, we investigated this with an additional experiment. We collected the full set of counterexamples for all our fairness models (excluding instances with <10 counterexamples or where MILP takes > 10 min. to run, which left 29/50 instances). We then randomly split the counterexamples into a repair set and a held-out validation set, and we ran MILP repair fixing the repair set only, checking whether the repair also fixes unseen counterexamples from the validation set. We repeated the experiment for various repair set sizes. The table below reports the fraction of fixed evaluation counterexamples as a function of the repair set size. Results show that on average, repairing just 10% of the counterexamples already fixes over 67% of the unseen ones, which grows to 78% using 25% of the counterexamples. Thus MILP repair exhibits high generalization which could be exploited to reduce computational cost, e.g. by capping the number of counterexamples considered in each iteration. We will add this study to the paper and thank the reviewer for the interesting suggestion!
| Dataset | 10% | 25% | 50% | 75% |
|---|---|---|---|---|
| ACSEmploy | 42.7±36.2 | 61.7±37.0 | 75.9±29.7 | 92.2±10.7 |
| ACSIncome | 92.9±8.0 | 98.9±2.0 | 99.5±1.0 | 99.5±0.8 |
| ACSPublic | 94.2±0.0 | 97.7±0.0 | 99.7±0.0 | 99.9±0.0 |
| ACSTravel | 84.0±13.7 | 94.2±10.5 | 97.4±3.8 | 98.4±2.9 |
| Bank | 57.9±54.4 | 70.0±42.4 | 94.9±6.9 | 100.0±0.0 |
| Compas | 55.4±0.0 | 72.0±0.0 | 84.6±0.0 | 89.0±0.0 |
| DutchCensus | 34.1±13.1 | 49.2±19.4 | 71.6±13.7 | 83.6±6.7 |
| LawSchool | 54.4±36.3 | 62.2±38.7 | 72.8±36.7 | 86.3±13.9 |
| MEPS | 92.1±10.0 | 99.5±0.1 | 99.8±0.3 | 100.0±0.0 |
| AVERAGE | 67.5 | 78.4 | 88.5 | 94.3 |
[1] Vinzent, M., Steinmetz, M., and Hoffmann, J. Neural Network Action Policy Verification via Predicate Abstraction. Technical report, Saarland University, 2022. Published at the 29th International Conference on Automated Planning and Scheduling (ICAPS 2022).
- Rating
- 2/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a post-hoc MILP framework for repairing multiclass tree ensembles. It fixes couterexamples to fairness or safety properties by modifying relevant leaf scores. If score modification is infeasible, it adds a tree to separate conflicting inputs. This procedure is carried on an iterative verification and repair loop. Based on the datasets, this approach improves property satisfaction while maintaining accuracy.
Strengths and weaknesses
Strength:
- The paper studies a meaningful problem for fixing counterexamples and provides a useful tree specific formulation.
- The authors proposed a method that doesn’t require retraining from scratch.
- The method is evaluated on both fairness and safety tasks, and all 50 fairness models are eventually verified as fair.
Weakness:
- Equation (3) and (6) allow an allowed and disallowed class to receive the same score. The constraints may therefore be satisfied through argmax selects the disallowed class, leaving the couterexample unfixed.
- Theorem 2 has unstated assumptions. The proof of Theorem 2 assumes every conflicting input can be separated into a distinct leaf and all class requirements are jointly consistent. The usage of “finitely bounded” in Theorem 3 is ambiguous.
- Exact verification proved only 4 MILP-repaired policies safe and verification times out for all remaining cases. The sampled %Safe metric can’t cerfity global safety.
Questions
Please see weakness.
Limitations
yes
Formatting concerns
n/a
1 comment
Rebuttal
Equation 3. We thank the reviewer for pointing out the issue with tie breaking, which is a small mistake in our formulation in the paper. Our implementation uses the correct formulation (as given below), hence all results are correct. To ensure that an allowed class is always selected, Eq. 3 needs a strict inequality where is compared to all other disallowed classes:
Then, implies that class strictly outscores all other classes. We have also corrected Equation 6, Definition 4 and Theorem 1’s proof accordingly.
Theorem 2. The newly constructed tree is designed so that each counterexample in the IIS reaches a different leaf. This is always feasible as we can simply assign a fictitious label to each point in the IIS and learn a decision tree with no depth constraints. Consequently, adding this tree to the ensemble forces counterexamples in the IIS to not share the OC anymore, therefore all class requirements become jointly consistent. No other assumptions are needed. We will revise the text accordingly.
Theorem 3. We mean that the input space is finite, i.e., every feature can only take a finite number of values. We will state this more clearly.
Safety Results. Exact multistep policy safety verification is outside our contribution. As we say in the paper, it has limited scalability. This is because the problem is PSPACE-complete [1] for discrete state spaces and undecidable for continuous state spaces (we will make this clearer in the paper).
In contrast, our MILP repair provably fixes all identified counterexamples (Thm 1) in all experiments. Empirical results demonstrate that 1. where exact verification terminates, our repaired policy is certified safe; 2. otherwise, we get large increases in %Safe, showing that we are still empirically improving safety which is the best one can do in this situation.
[1] Vinzent, M., Steinmetz, M., and Hoffmann, J. Neural Network Action Policy Verification via Predicate Abstraction. Technical report, Saarland University, 2022. Published at the 29th International Conference on Automated Planning and Scheduling (ICAPS 2022).
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Link to anonymised code
As requested by reviewer XEGK, we have anonymised the code to reproduce our experiments at this anonymous GitHub link, and will release it publicly upon acceptance.