Skip to main content
QUICK REVIEW

[Paper Review] FastBDT: A speed-optimized and cache-friendly implementation of stochastic gradient-boosted decision trees for multivariate classification

Thomas M. Keck|arXiv (Cornell University)|Sep 20, 2016
Gaussian Processes and Bayesian InferenceComputer Science2 references14 citations
TL;DR

FastBDT is a highly optimized, cache-friendly implementation of stochastic gradient-boosted decision trees for multivariate classification, achieving a 10x speedup in both fitting and inference phases compared to TMVA, scikit-learn, and XGBoost. It uses equal-frequency binning to replace floating-point operations with integer arithmetic and enforces a linear memory access pattern to improve CPU cache utilization.

ABSTRACT

Stochastic gradient-boosted decision trees are widely employed for multivariate classification and regression tasks. This paper presents a speed-optimized and cache-friendly implementation for multivariate classification called FastBDT. FastBDT is one order of magnitude faster during the fitting-phase and application-phase, in comparison with popular implementations in software frameworks like TMVA, scikit-learn and XGBoost. The concepts used to optimize the execution time and performance studies are discussed in detail in this paper. The key ideas include: An equal-frequency binning on the input data, which allows replacing expensive floating-point with integer operations, while at the same time increasing the quality of the classification; a cache-friendly linear access pattern to the input data, in contrast to usual implementations, which exhibit a random access pattern. FastBDT provides interfaces to C/C++, Python and TMVA. It is extensively used in the field of high energy physics by the Belle II experiment.

Motivation & Objective

  • Address the performance bottleneck in training and deploying stochastic gradient-boosted decision trees (SGBDT) for high-throughput applications.
  • Reduce computational latency in both fitting and inference phases without sacrificing classification quality.
  • Optimize memory access patterns to improve CPU cache efficiency in decision tree training.
  • Enable fast, scalable multivariate classification in high-energy physics and real-time learning systems.
  • Support advanced features like negative weights and missing value handling for robust real-world deployment.

Proposed method

  • Applies equal-frequency binning to input features, converting floating-point operations into efficient integer arithmetic during training.
  • Enforces a linear, cache-friendly memory access pattern to minimize cache misses during histogram computation.
  • Uses stochastic sub-sampling (sub-sampling rate α) in each boosting step to enhance generalization and reduce overfitting.
  • Implements a sigmoid-transformed sum of tree outputs to compute final signal probabilities, standard in gradient-boosting.
  • Supports negative individual weights for data-driven signal-background separation and NaN/inf values for missing data handling.
  • Introduces a feature importance estimation method based on AUC reduction via iterative feature removal, feasible due to fast training.

Experimental results

Research questions

  • RQ1Can a re-architected implementation of SGBDT achieve a 10x speedup in both fitting and inference phases compared to existing frameworks?
  • RQ2Does equal-frequency binning improve both speed and classification performance in gradient-boosted decision trees?
  • RQ3To what extent does a cache-friendly memory access pattern reduce CPU cache misses and improve execution time?
  • RQ4Can fast training enable computationally intensive feature importance estimation via AUC-based permutation?
  • RQ5How does FastBDT’s performance scale across diverse datasets and real-world use cases like high-energy physics?

Key findings

  • FastBDT achieves a 10x speedup in the fitting-phase compared to TMVA, scikit-learn, and XGBoost, with consistent performance across datasets.
  • The application-phase is also 10x faster, enabling real-time inference in high-throughput environments.
  • Equal-frequency binning improves classification quality by reducing numerical instability and enhancing separation gain estimation.
  • Cache-friendly memory access reduces CPU cache misses, contributing significantly to the performance gain.
  • FastBDT supports negative weights and missing values (NaN and inf), enabling robust handling of complex data in high-energy physics.
  • The fast training enables practical use of AUC-based feature importance estimation, which is otherwise infeasible with slower frameworks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.