[Paper Review] Exact Distributed Training: Random Forest with Billions of Examples
This paper presents DRF, an exact distributed algorithm for training Random Forests on datasets with up to 18 billion examples without approximation, using a depth-level, worker-based architecture that minimizes memory, disk, and network overhead. It achieves state-of-the-art scalability, training a tree on 17.3 billion examples in 22 hours while demonstrating that model performance continues to improve with larger datasets, even beyond the billion-example scale.
We introduce an exact distributed algorithm to train Random Forest models as well as other decision forest models without relying on approximating best split search. We explain the proposed algorithm and compare it to related approaches for various complexity measures (time, ram, disk, and network complexity analysis). We report its running performances on artificial and real-world datasets of up to 18 billions examples. This figure is several orders of magnitude larger than datasets tackled in the existing literature. Finally, we empirically show that Random Forest benefits from being trained on more data, even in the case of already gigantic datasets. Given a dataset with 17.3B examples with 82 features (3 numerical, other categorical with high arity), our implementation trains a tree in 22h.
Motivation & Objective
- To develop a distributed, exact algorithm for Random Forest training that avoids approximation in split selection.
- To scale Random Forest training to datasets with over 10 billion examples, exceeding prior exact and approximate methods.
- To minimize computational complexity in terms of RAM, disk I/O, network traffic, and CPU usage during distributed training.
- To empirically validate that Random Forests benefit from more data, even at the 10B-scale.
- To enable distributed feature importance computation and support for co-dependent tree models like Gradient Boosted Trees.
Proposed method
- The algorithm processes trees level-by-level, distributing dataset columns across workers to avoid global data access.
- Workers use deterministic pseudo-random generators to synchronize bagged samples across nodes without network communication.
- A bit-vector mapping tracks sample-to-leaf assignments using only ⌈log₂ℓ⌉ bits per sample, where ℓ is the number of active leaves.
- Split candidates are evaluated in parallel by splitter workers, each handling a subset of features, while tree builders coordinate node splitting and tree structure.
- The manager orchestrates tree builders and aggregates final models, ensuring exact equivalence to standard Random Forests.
- External sorting is used for numerical features in large-scale datasets, with data partitioned across workers for sequential access.
Experimental results
Research questions
- RQ1Can an exact distributed Random Forest algorithm scale to datasets with 10+ billion examples without approximation?
- RQ2Does training on larger datasets (e.g., 17.3B examples) lead to improved model performance beyond what is seen at smaller scales?
- RQ3How does the proposed DRF algorithm compare to existing exact methods (Sliq, Sprint) in terms of memory, disk, and network complexity?
- RQ4To what extent do model metrics like AUC continue to improve with increasing dataset size and tree depth?
- RQ5Can distributed feature importance and co-dependent tree training (e.g., XGBoost-style) be efficiently supported in an exact framework?
Key findings
- DRF successfully trained a Random Forest on 17.3 billion examples with 82 features (3 numerical, others high-arity categorical) in 22 hours, setting a new scale record.
- The model achieved an AUC of 0.847 on the full 17.3B dataset, with performance still increasing at depth 20, indicating no plateau in learning capacity.
- At depth 20, 96.9% of samples in the 17.3B dataset remained in open leaves, showing that pruning would not yield significant speedups.
- Overfitting in individual trees began at depth 13 for 1% of the data, but not until depth 17 for 100%, indicating deeper trees are viable at scale.
- The node density (0.415) and sample density (0.969) at depth 20 suggest that the tree structure remains efficient and data-rich even at high depths.
- The method outperforms prior exact approaches in space, disk, and network complexity, and supports distributed feature importance computation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.