[Paper Review] Out-of-Core GPU Gradient Boosting
This paper presents the first out-of-core GPU gradient boosting algorithm in XGBoost, enabling training on datasets far larger than GPU memory by combining gradient-based sampling with efficient data streaming over PCIe. The method maintains in-core model accuracy and training speed while scaling to 10x larger datasets on a single 16 GiB GPU.
GPU-based algorithms have greatly accelerated many machine learning methods; however, GPU memory is typically smaller than main memory, limiting the size of training data. In this paper, we describe an out-of-core GPU gradient boosting algorithm implemented in the XGBoost library. We show that much larger datasets can fit on a given GPU, without degrading model accuracy or training time. To the best of our knowledge, this is the first out-of-core GPU implementation of gradient boosting. Similar approaches can be applied to other machine learning algorithms
Motivation & Objective
- Address the limitation of GPU memory size in training large-scale machine learning models.
- Overcome the PCIe bottleneck that hinders efficient out-of-core GPU computation.
- Extend XGBoost's existing CPU-based external memory support to GPU with minimal performance degradation.
- Enable training on datasets larger than GPU memory without sacrificing model accuracy or training time.
- Design a scalable, production-ready implementation for open-source use in XGBoost.
Proposed method
- Leverage gradient-based sampling to reduce the working memory footprint during tree construction.
- Stream data from main memory or disk to GPU using a pipelined, asynchronous data loading strategy.
- Use ELLPACK format for compact representation of binned features to reduce memory traffic.
- Apply a two-step GPU tree construction: preprocessing (binning and compression) followed by histogram-based split evaluation.
- Maintain consistent model behavior by ensuring sampling does not alter the underlying optimization objective.
- Integrate the out-of-core GPU pipeline into the XGBoost library with backward compatibility and modular code structure.
Experimental results
Research questions
- RQ1Can out-of-core GPU training be made practical for gradient boosting despite PCIe bandwidth limitations?
- RQ2To what extent can gradient-based sampling reduce GPU memory usage without degrading model accuracy?
- RQ3How does the performance of out-of-core GPU training compare to in-core GPU and CPU-based training on large datasets?
- RQ4Can the proposed approach be integrated into a widely used open-source library like XGBoost without breaking existing workflows?
- RQ5What is the maximum dataset size that can be trained on a single GPU using this method compared to in-core training?
Key findings
- The out-of-core GPU implementation supports datasets up to 10x larger than the GPU memory size (e.g., 903 GiB dataset on a 16 GiB GPU) with sampling ratio f=0.1.
- Model accuracy remains nearly identical to in-core training: AUC of 0.8396 (out-of-core, f=1.0) vs. 0.8398 (in-core) on the Higgs dataset.
- Out-of-core GPU training with f=0.5 takes 427.41 seconds, which is significantly faster than CPU out-of-core (1228.53 seconds) and in-core GPU (241.52 seconds).
- Even with sampling, the out-of-core GPU version is faster than CPU-based training, demonstrating that GPU acceleration is preserved.
- The method achieves near-in-core performance with minimal overhead, making it viable for production use.
- The implementation has been merged into the open-source XGBoost library, enabling broader adoption and further research.
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.