🤖 AI Summary
This work addresses the challenges of decision-tree modeling in hyperbolic space and the difficulty of reusing Euclidean algorithms. To this end, we propose a model-agnostic encapsulation paradigm that reformulates hyperbolic decision trees (hyperDT) as a preprocessing–Euclidean tree training–postprocessing pipeline within the Beltrami–Klein (BK) model. Our method rigorously preserves Euclidean threshold-split semantics, enabling direct reuse of existing implementations such as scikit-learn’s random forests. By introducing Lorentz–BK coordinate transformations and hyperbolic embedding adaptation, it achieves plug-and-play cross-geometric transfer. Experiments on hierarchical data demonstrate significant accuracy gains, accelerated training and inference, and substantially improved code conciseness, maintainability, and extensibility. An open-source implementation is publicly available.
📝 Abstract
Decision trees and models that use them as primitives are workhorses of machine learning in Euclidean spaces. Recent work has further extended these models to the Lorentz model of hyperbolic space by replacing axis-parallel hyperplanes with homogeneous hyperplanes when partitioning the input space. In this paper, we show how the hyperDT algorithm can be elegantly reexpressed in the Beltrami-Klein model of hyperbolic spaces. This preserves the thresholding operation used in Euclidean decision trees, enabling us to further rewrite hyperDT as simple pre- and post-processing steps that form a wrapper around existing tree-based models designed for Euclidean spaces. The wrapper approach unlocks many optimizations already available in Euclidean space models, improving flexibility, speed, and accuracy while offering a simpler, more maintainable, and extensible codebase. Our implementation is available at https://github.com/pchlenski/hyperdt.