Quantized Training of Gradient Boosting Decision Trees

Yu Shi, Guolin Ke, Zhuoming Chen, Shuxin Zheng, Tie-Yan Liu
7/20/2022
cs.LG

No official code found. Best implementation: lightgbm-org/LightGBM (18,561 stars, MIT, last commit 2026-04-30). 1 more below.

Abstract

Recent years have witnessed significant success in Gradient Boosting Decision Trees (GBDT) for a wide range of machine learning applications. Generally, a consensus about GBDT's training algorithms is gradients and statistics are computed based on high-precision floating points. In this paper, we investigate an essentially important question which has been largely ignored by the previous literature: how many bits are needed for representing gradients in training GBDT? To solve this mystery, we propose to quantize all the high-precision gradients in a very simple yet effective way in the GBDT's training algorithm. Surprisingly, both our theoretical analysis and empirical studies show that the necessary precisions of gradients without hurting any performance can be quite low, e.g., 2 or 3 bits. With low-precision gradients, most arithmetic operations in GBDT training can be replaced by integer operations of 8, 16, or 32 bits. Promisingly, these findings may pave the way for much more efficient training of GBDT from several aspects: (1) speeding up the computation of gradient statistics in histograms; (2) compressing the communication cost of high-precision statistical information during distributed training; (3) the inspiration of utilization and development of hardware architectures which well support low-precision computation for GBDT training. Benchmarked on CPUs, GPUs, and distributed clusters, we observe up to 2$\times$ speedup of our simple quantization strategy compared with SOTA GBDT systems on extensive datasets, demonstrating the effectiveness and potential of the low-precision training of GBDT. The code will be released to the official repository of LightGBM.

View on arXivView PDF

Code Implementations(2)

MIT

A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.

18,5614,036C, RAug 5, 20165 months agoMIT
data-miningdecision-treesdistributedgbdtgbm+9 more
MIT
102Shell, PythonMay 26, 20223 years agoMIT

Similar Papers

Cite this paper

@article{shi2022quantized,
  title  = {Quantized Training of Gradient Boosting Decision Trees},
  author = {Yu Shi and Guolin Ke and Zhuoming Chen and Shuxin Zheng and Tie-Yan Liu},
  year   = {2022},
  eprint = {2207.09682},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.09682v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.09682.svg)](https://codeofpaper.com/paper/2207.09682)

Discussion