TL;DR
This paper refutes a recent approach that used the computationally heavy Quine-McCluskey (QM) algorithm to determine if two decision trees are predictively equivalent. The authors prove that checking predictive equivalence, handling missing data, and finding explanations can actually be achieved in polynomial time, completely avoiding exponential blowups and potential algorithmic unsoundness.
What Problem Does This Paper Address?
When training machine learning models, researchers often look at the Rashomon set—the collection of all models that perform close to optimal on a given dataset. In the case of decision trees (DTs), many trees in this set are predictively equivalent, meaning they output the exact same prediction for every possible input, even though their internal structures look completely different. Having lots of identical-acting trees creates redundancy, which skews feature importance metrics.
A recent prominent paper by McTavish et al. proposed identifying these redundant trees by converting them into a simplified, minimum-size Disjunctive Normal Form (DNF) using the classic Quine-McCluskey (QM) logic minimization algorithm.
However, general boolean formula minimization is notoriously difficult ($\Sigma_2^p$-hard). This paper addresses two major flaws in the QM-based approach:
- Inefficiency: It can trigger worst-case exponential time and space blowups, even for decision trees.
- Unsoundness: Because minimum-size DNFs are not canonical (unique), non-deterministic implementations of QM can accidentally declare two identical-acting trees as non-equivalent.
Methods
Instead of relying on heavy logic minimization machinery, the authors exploit the inherent structural properties of decision trees to design direct, polynomial-time algorithms.
1. Proving the Flaws of QM
The authors design a specific "gadget" tree structure to mathematically prove that a decision tree's intermediate prime implicants (the Blake Canonical Form) can explode exponentially relative to the tree's size. They also demonstrate via Karnaugh maps how a solver's internal non-determinism (like unstable sorting or arbitrary hash ordering) can lead to different "minimal" DNFs for the exact same function, breaking equivalence checks.
2. Direct Polynomial-Time Equivalence (Algorithm 5)
To check if Tree 1 ($T_1$) and Tree 2 ($T_2$) are predictively equivalent, the algorithm bypasses DNF conversion entirely. It systematically traverses the paths of $T_1$. For each path, it checks if the conditions leading to that prediction overlap (are consistent) with any path in $T_2$ that predicts a different class. If a conflict is found, they aren't equivalent. If no conflicts exist across any paths, they are identical.
3. Handling Missing Data & Explanations
The authors provide polynomial-time algorithms (Algorithms 1–4) to find Abductive Explanations (AXps)—the minimal set of features required to guarantee a certain prediction. By greedily dropping features and verifying path consistency against opposing classes, they achieve succinct explanations without exponential overhead.
Datasets
The paper does not use standard empirical datasets (like MNIST or UCI benchmarks). Instead, because it is a theoretical critique and algorithmic validation, the authors evaluate their method using synthetically generated decision trees specifically designed to trigger the worst-case exponential behavior of the QM algorithm. These trees are parameterized by an integer $r$, resulting in $6r + 3$ nodes and $2r + 1$ features.
Key Insights and Ideas
- Canonicity vs. Minimization: A minimum-size representation is not a canonical representation. Relying on non-canonical forms for equivalence checking introduces dangerous dependencies on solver determinism.
- Exploiting Tree Structure: General DNF minimization is hard because arbitrary boolean formulas can overlap in complex ways. Decision trees, by definition, have paths that are mutually exclusive and collectively exhaustive. Exploiting this structure directly allows us to drop the complexity from $\Sigma_2^p$-hard down to Polynomial ($P$).
- Explanation Invariance: Weak abductive explanations (sufficient conditions for a prediction) are invariant across predictively equivalent trees. This means the underlying logic can be analyzed independently of the tree's specific shape.
Key Results
The experiments, conducted on a MacBook with an M3 Pro processor, highlight a massive performance gap between the QM approach (using the SymPy library) and the proposed polynomial algorithms:
- The Exponential Wall: For a tiny synthetic tree of just 45 nodes ($r=7$), SymPy’s QM implementation failed to finish within 150,000 seconds (over 41 hours) due to prime implicant explosion.
- Polynomial Triumph: For a massive tree with 6,003 nodes ($r=1000$), where the QM method would face a lower bound of $2^{1000}$ prime implicants, the authors' direct algorithm successfully verified predictive equivalence in just 469.0 seconds.
- Instant Explanations: Computing a minimal explanation (AXp) for the 6,003-node tree took only 224.62 seconds, while checking if a partial assignment was valid took a mere 0.126 seconds.
Limitations and Future Work
- Asymptotic Scaling: Although the proposed predictive equivalence algorithm runs in polynomial time, its upper bound scales with the product of the paths of both trees ($O(|T_1| \times |T_2| \times \min(|T_1|, |T_2|))$). For exceptionally massive ensembles, this could still be optimized further.
- Beyond Standard DTs: The authors note that while this works perfectly for standard univariate decision trees, future work is needed to find asymptotically optimal algorithms for multivariate decision trees and other tractable fragments of complex classifiers.
Summary updated