# XGBoost (2016)

> A gradient tree boosting system built to be fast and to scale, which became the default model for tabular data.

Page: https://mralbu.github.io/ai-datasets/p/xgboost

## Key facts

- Title: XGBoost: A Scalable Tree Boosting System
- Authors: Tianqi Chen, Carlos Guestrin
- Venue: KDD 2016
- Category: Tabular
- Paper: https://www.alphaxiv.org/abs/1603.02754

## Why it matters

It made boosted trees fast enough to be the first thing anyone tried on a table. By the paper's count, 17 of the 29 winning Kaggle solutions published in 2015 used it, as did every top-10 team at KDD Cup 2015. Tuned gradient-boosted trees became the baseline every deep tabular model since has had to beat.

## The idea

Boost regression trees one at a time, using first and second derivatives of the loss and a penalty on the number of leaves and the size of their weights. Most of the work is in the system: data is sorted once into compressed column blocks so split finding is a linear scan that runs in parallel across features, a weighted quantile sketch proposes split points for large data, and each split learns a default direction for missing values while visiting only the entries that are present. Blocks can be compressed and sharded across disks to train out of memory.

## The result

On 1M Higgs events it reached a test AUC of 0.8304 at 0.68 seconds per tree, against 0.8302 at 28.5 seconds for scikit-learn and 0.6224 for R's gbm. Skipping missing entries made training 50 times faster on sparse insurance data. It trained on all 1.7 billion Criteo click examples on a single machine from disk, and on as few as four machines in a cluster, where Spark MLlib and H2O handled only subsets.

## The data

- [Tabular Benchmark (Grinsztajn et al.) (2022)](https://mralbu.github.io/ai-datasets/d/tabular-benchmark.md): 45 real-world tables, curated so that trees and neural networks could finally be compared on the same ground.

## Led to

- [TabNet (2019)](https://mralbu.github.io/ai-datasets/p/tabnet.md)
- [FT-Transformer (2021)](https://mralbu.github.io/ai-datasets/p/ft-transformer.md)
- [Trees vs deep learning (2022)](https://mralbu.github.io/ai-datasets/p/grinsztajn-2022.md)

## Part of

- [Tabular foundation models](https://mralbu.github.io/ai-datasets/t/tabular-foundation-models.md) (step 1 of 8)
