- Rating
- 4
- Clarity
- 2
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
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
Paper formatting concerns
No
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.
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.
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.