Function-Invariant Learning on Decision Trees: A Theory of Probes, Measures, and Forest Representations
Learning on trained models is an active area for neural networks but remains largely unexplored for tree ensembles, the dominant models for tabular data. Many practical tasks take a trained model itself as input: predicting a deployed model's accuracy without evaluation data, comparing two models, or detecting duplicates. A learner that performs such tasks on decision trees and forests should give the same answer when a model is rewritten into an equivalent form, and nearly the same answer when it is exported, pruned or distilled into an approximately equivalent one. We characterize the learners whose output depends only on the function a model computes. Using Boolean actions (\( \mathcal{B} \)-sets) on the algebra generated by threshold tests, we show that every such recursive encoder factors through a Stone space whose points include \( c^{+} \) ("just to the right of \( c \)'') and \( \pm\infty \). Finite-dimensional affine encoders, and continuous encoders on connected manifolds satisfying the theory's identities, read the model at finitely many generalized points and cannot compute integrals against Lebesgue measure. Region-conditioned encoders escape this limit: they are invariant exactly when their leaf map is finitely additive, they integrate the model's function against a measure, and they are Lipschitz-stable. The main theorems are verified in Lean~4, one conditionally on two classical theorems not yet in Mathlib. In a pre-registered study of 4,950 trees and forests on 15 tabular datasets, function-reading encoders were unaffected by distilling forests into single trees, under which structural baselines' errors rose by 47–69%; learned point probes, the finite class identified by the theory, were the most accurate and cheapest invariant encoder, with differences consistent across datasets but small.
Authors
- Ernest Fokoué (ORCID: https://orcid.org/0000-0002-0748-9166)
- Detagnon Bernic Gbaguidi
Publication Details
- Journal
- Preprints.org
- Published
- 2026-12-02
- DOI
- https://doi.org/10.20944/preprints202612.0276.v1
- Primary Topic
- Data Mining Algorithms and Applications
- Type
- preprint