# Tree-Ensemble Repair through Constrained Optimization

*Lorenzo Cascioli, Chaahat Jain, Marcel Steinmetz, Jörg Hoffmann, Jesse Davis*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153244) · [Open on the map](../papers.html#p153244)

Category: [Causality, Privacy & Learning Theory](../pcat/11.md) › [Tree Ensemble Interpretability and Inference](../pgroup/330.md) · Type: new method · Keywords: tree ensemble repair, constrained optimization, mixed-integer linear programming, fairness, safety, model debugging

## Summary
Tree-Ensemble Repair through Constrained Optimization proposes a MILP-based method that modifies leaf values of tree ensembles to fix fairness and safety counterexamples while preserving predictive performance.

## Explained to a 5-year-old
Some computer programs use many decision trees to make predictions. Sometimes these trees make choices that are unfair or unsafe. We adjust the numbers inside the trees so they make better, fairer choices. This fixing is done by solving a puzzle that makes sure the trees follow the rules. After fixing, the trees still predict well and are safer to use.

## Explained to a 5-year-old, longer
Many computer programs use lots of little decision trees to guess answers. These trees can sometimes give answers that are not fair, like treating some people differently. They can also give answers that are unsafe, which could cause problems. To help them, we change the numbers inside the trees so they make nicer choices. We think of this fixing as solving a puzzle that follows certain rules. The puzzle makes sure the trees obey the rules for fairness and safety. After we adjust the trees, they still know how to predict correctly. This means the trees stay useful for their original job. The fixing process can be done on many trees at once. It works for different kinds of problems, like deciding what to do in games or in real-world systems. The result is a set of trees that are both accurate and more just or safer to use.

## For a technical reader
The paper presents a MILP formulation that adjusts leaf values of tree ensembles to satisfy fairness or safety constraints while preserving original performance. Counterexamples from verification drive the constraints, and the optimization yields a repaired model. Experiments on classification and MDP policies show the method is computationally feasible and improves the targeted property without degrading accuracy.

## Problem
Learned models often fail to satisfy desired properties such as fairness, robustness, or safety, even when they have high predictive accuracy. Model repair aims to adjust a model post-hoc to meet these properties without sacrificing performance.

## Method
The approach formulates tree-ensemble repair as a mixed-integer linear programming (MILP) problem, where leaf values are adjusted to satisfy given constraints (e.g., fairness or safety) while keeping the original predictive performance. A set of counterexamples identified by verification is used to define the constraints, and the optimization is solved to produce a repaired ensemble. This ensures that the desired properties hold for the specified examples.

## Results
The approach demonstrates computational feasibility and frequently improves the targeted property without harming predictive performance.

## Contributions
The paper introduces a MILP-based repair framework for tree ensembles that provides guaranteed fixes for a given set of counterexamples while preserving model performance. It also evaluates the method on fairness-oriented classification and safety-oriented MDP policies, showing its practicality.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153244)
