Abstract
Bayesian Decision Trees provide a robust probabilistic framework for machine learning, enabling uncertainty quantification and the incorporation of prior knowledge. However, their reliance on sequential Markov Chain Monte Carlo (MCMC) sampling often results in prohibitive computational overhead. This paper presents a novel approach to parallelizing a single MCMC chain by evaluating multiple candidate tree transformations simultaneously across multiple CPU cores. Our method achieves up to an 18x speedup on standard hardware without compromising the statistical integrity of the posterior distribution, making these powerful models more practical for large-scale data analysis.
Introduction
Decision Trees (DTs), such as CART and Random Forests, are widely utilized for their interpretability and performance. Yet, standard frequentist implementations often lack a formal probabilistic basis, making it difficult to assess model uncertainty. Bayesian Decision Trees address this by treating the tree structure as a random variable. The primary challenge lies in the exploration of the tree space, typically performed via MCMC. Because MCMC is inherently sequential—where each state depends on the previous one—it creates a significant computational bottleneck. This research aims to overcome this limitation by parallelizing the proposal and evaluation phases of a single MCMC chain, targeting performance improvements on standard multi-core workstations.
Methodology
The proposed method optimizes the Metropolis-Hastings (MH) algorithm for tree structures through three primary mechanisms:
Parallel Proposals and Evaluation
In a traditional MH setup, a single proposal is generated and either accepted or rejected. The authors parallelize this by generating $C$ proposals simultaneously across $C$ processor cores. Each core is responsible for calculating the acceptance probability of its assigned proposal. This is particularly effective for decision trees, where the likelihood calculation involves traversing the dataset to evaluate the split quality at each node—the most computationally expensive part of the process.
Selection and Harvesting
The algorithm operates in two distinct phases to maximize efficiency:
- Burn-in Phase: During the initial search for the high-probability region of the state space, the algorithm selects the candidate move with the highest acceptance probability among the $C$ proposals. This "greedy" exploration helps the chain converge faster.
- Harvesting Phase: Once convergence is reached (monitored via the stability of the F1-score), the algorithm can "harvest" multiple valid samples from the set of $C$ proposals in a single iteration, provided they satisfy specific statistical criteria. This effectively converts a single iteration of the chain into multiple posterior samples, significantly accelerating the sampling process.
Experimental Setup
The performance of the parallelized MCMC chain was evaluated using three benchmark datasets from the UCI Machine Learning Repository and Scikit-learn:
- Wine Dataset: A multi-class classification task.
- Pima Indians Diabetes: A binary classification task.
- Dermatology Dataset: A complex multi-class problem featuring 34 attributes.
Additionally, the scalability of the approach was tested against a large-scale dataset comprising 400,000 observations. In this scenario, traditional serial MCMC required over six hours for convergence, highlighting the need for parallelization.
Results and Discussion
Computational Speedup
The parallel implementation demonstrated significant efficiency gains, reaching up to an 18x speedup compared to serial execution. However, the speedup is not perfectly linear. The research identified a "sweet spot" between 25 and 40 cores. Beyond this point, the overhead associated with core communication, thread synchronization, and memory bus contention begins to plateau the performance gains.
Statistical Validity
A critical requirement for any MCMC optimization is the preservation of the target distribution. The authors employed two-sample t-tests to compare the samples generated by the parallel and serial versions. The results confirmed that the parallelized chain produces statistically identical samples, ensuring that the speedup does not come at the cost of model accuracy. Performance metrics, including F1-score, Precision, and Recall, remained consistent across 1-core, 20-core, and 40-core configurations.
Conclusion
This research demonstrates that the sequential nature of MCMC does not preclude effective parallelization at the move-proposal level. By exploring multiple directions in the state space simultaneously, the proposed method makes Bayesian Decision Trees viable for large-scale applications on standard workstations. Future work will explore extending this framework to High-Performance Computing (HPC) environments and integrating data-partitioning strategies to further enhance scalability for "Big Data" scenarios.
Summary updated