Score: 2

Scalable Tree Ensemble Proximities in Python

Published: January 6, 2026 | arXiv ID: 2601.02735v1

By: Adrien Aumon , Guy Wolf , Kevin R. Moon and more

Potential Business Impact:

Finds similar items fast without using much computer memory.

Business Areas:
Predictive Analytics Artificial Intelligence, Data and Analytics, Software

Tree ensemble methods such as Random Forests naturally induce supervised similarity measures through their decision tree structure, but existing implementations of proximities derived from tree ensembles typically suffer from quadratic time or memory complexity, limiting their scalability. In this work, we introduce a general framework for efficient proximity computation by defining a family of Separable Weighted Leaf-Collision Proximities. We show that any proximity measure in this family admits an exact sparse matrix factorization, restricting computation to leaf-level collisions and avoiding explicit pairwise comparisons. This formulation enables low-memory, scalable proximity computation using sparse linear algebra in Python. Empirical benchmarks demonstrate substantial runtime and memory improvements over traditional approaches, allowing tree ensemble proximities to scale efficiently to datasets with hundreds of thousands of samples on standard CPU hardware.

Country of Origin
πŸ‡ΊπŸ‡Έ πŸ‡¨πŸ‡¦ United States, Canada

Repos / Data Links

Page Count
10 pages

Category
Computer Science:
Machine Learning (CS)