Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

XGBoost: A Scalable Tree Boosting System

XGBoost scales tree boosting to billions of examples using fewer resources

  • Problem Tree boosting is accurate but common implementations struggle with sparse inputs, data that does not fit in memory, and training spread across machines. Exact split search becomes too costly on large continuous data.
  • Method XGBoost adds regression trees one at a time, using second-order gradient statistics to pick splits. It learns a default direction for missing values, uses a weighted quantile sketch for candidate splits, and stores data in compressed, sorted blocks.
  • Results On Higgs-1M with 500 trees, XGBoost reached a Test AUC of 0.8304 against 0.8302 for scikit-learn. It took 0.6841 seconds per tree against 28.51.

What the objective penalizes

The model is an additive sum of regression trees, where each tree maps an input to one of T leaves and carries a continuous weight per leaf. Because the unknowns are whole trees rather than numbers in Euclidean space, ordinary gradient-based optimization does not apply directly, so trees are added one at a time, each chosen to lower the objective given the current prediction.

The training objective is the sum of a convex, differentiable loss over the instances plus a penalty per tree, written as \\( \\Omega(f)=\\gamma T+\\frac{1}{2}\\lambda\\lVert w\\rVert^2 \\), where T is the number of leaves and w the vector of leaf weights. The penalty favors fewer leaves and smaller leaf weights, which smooths the learned weights and reduces overfitting; setting the regularization parameters to zero recovers traditional gradient tree boosting.

A second-order approximation of the loss at the previous prediction yields a gradient g_i and a second-order statistic h_i for each instance, and the objective keeps only the terms that depend on the new tree. Summing g_i and h_i over the instances in each leaf I_j gives the optimal leaf weight \\( w_j^*=-\\frac{\\sum_{i\\in I_j} g_i}{\\sum_{i\\in I_j} h_i+\\lambda} \\) and a structure score that ranks candidate tree structures without fitting each one.

The gain of a split is the score of the two children minus the score of the parent, minus gamma, and this gain is what the split search maximizes.

Exact and approximate split search

The exact greedy algorithm sorts the instances by each feature value and visits them in that order, accumulating the gradient sums on the left side of each possible cut. Most single-machine implementations, including scikit-learn and R's gbm, support this exact enumeration, which becomes costly for continuous features.

When the data does not fit in memory, or when it is spread across machines, enumerating every cut is not feasible, so the approximate algorithm proposes a small set of candidate split points from feature percentiles. Each continuous value is then mapped into the bucket defined by these candidates, the gradient statistics are summed per bucket, and the best split is chosen among the proposals.

The global variant proposes candidates once at the start of a tree and reuses them at every level, while the local variant proposes new candidates after each split. On the Higgs data the local proposal reached the same accuracy with fewer candidate points, because it refines the candidates after each split; the global proposal can match it when given enough candidates.

Figure 3 plots test AUC over iterations on Higgs 10M, and an eps value of 0.3 corresponds to roughly 1/eps buckets in the proposal. In the same comparison the quantile strategy reached the accuracy of the exact greedy method at a reasonable approximation level, and the system supports both exact search on a single machine and approximate search with global or local proposals.

Shrinkage multiplies the weights of each newly added tree by a factor eta, which reduces the influence of any single tree and leaves room for later trees to correct the model. Column sub-sampling selects a random subset of features for each tree, a technique borrowed from random forests; the paper reports that it prevents overfitting more than row sub-sampling and also speeds up the parallel algorithm.

Quantiles over weighted instances

For feature k, the rank function \\( r_k(z)=\\frac{1}{\\sum_{(x,h)\\in D_k} h}\\sum_{(x,h)\\in D_k,\\, x<z} h \\) gives the share of the total second-order weight whose feature value lies below z. The candidate points are chosen so that consecutive rank values differ by less than eps, which gives about 1/eps candidates, with the minimum and maximum feature values as the end points.

The weight is h_i because the objective can be rewritten as a weighted squared loss with labels g_i/h_i and weights h_i, so the sketch has to summarize weighted data. Quantile sketches for unweighted data were available, but earlier approximate methods either sorted a random subset of the data, with a chance of failure, or used heuristics without a theoretical guarantee.

The proposed structure supports merge and prune operations, and the merged summary of two summaries with errors eps1 and eps2 has error max(eps1, eps2). Pruning a summary to a budget of b plus one points raises the error from eps to eps plus 1/b, and the appendix gives the proofs for these operations.

Missing values and the default direction

Sparsity in real inputs comes from missing values, frequent zeros and feature engineering such as one-hot encoding, so the algorithm needs to know the sparsity pattern. Each tree node gets a default direction, and an instance whose value for the split feature is missing follows that direction.

The sparsity-aware search sorts only the non-missing entries and scans them twice, once with the missing entries sent to the right child and once with them sent to the left child, keeping the better of the two results. The default directions are learnt from the data rather than set by hand, and the same procedure applies when absence stands for a user-specified value by limiting the enumeration to consistent solutions.

Because only non-missing entries are visited, the cost is linear in the number of non-missing entries, and the approach treats all sparsity patterns in one way.

Column blocks and cache-aware access

Sorting is the most time-consuming part of tree learning, so the data is stored in in-memory blocks in compressed column format, with each column sorted by feature value. This layout is computed once before training and reused in later iterations, and the column block structure also makes it easy to select a subset of columns for column sub-sampling.

With the exact greedy algorithm the whole dataset sits in one block, and one linear scan collects the statistics of the candidate splits for all leaves together.

For the time complexity, the naive sparsity-aware exact algorithm costs O(Kd||x||_0 log n) with K trees and maximum depth d, while the block structure costs O(Kd||x||_0 + ||x||_0 log n), where the sorting term is a one-time cost that can be amortized. Using blocks of at most B rows reduces the approximate algorithm's cost from a log q factor to O(Kd||x||_0 + ||x||_0 log B), where q is the number of proposal candidates.

The exact greedy algorithm fetches gradient statistics by row index in feature order, which is a non-contiguous memory access, and a naive loop then stalls on the read-write dependency when the statistics do not fit in the CPU cache. Cache-aware prefetching copies the gradient statistics into a per-thread buffer and accumulates them in mini-batches, which turns the dependency into a longer one; on large datasets this made the exact greedy algorithm twice as fast as the naive version.

For the approximate algorithm the block size is the maximum number of examples in a block, because it sets the cache footprint of the gradient statistics. Overly small blocks give each thread too little work, and overly large blocks cause cache misses, so the authors chose 2^16 examples per block as the balance point.

Compressed blocks and disk sharding

Blocks are written to disk, and a prefetch thread loads the next block into a memory buffer so that computation overlaps with disk reads. Disk reading still takes most of the time, so the design also targets the throughput of disk IO.

Block compression stores each block column by column and decompresses it on the fly in an independent thread while loading into memory, which trades some computation for less disk reading. The row index is stored as an offset from the first row of the block in a 16-bit integer, which fixes the block at 2^16 examples; across most of the tested datasets this gave a compression ratio of roughly 26% to 29%.

Block sharding spreads the blocks over several disks, with one pre-fetcher thread per disk filling an in-memory buffer and the training thread reading the buffers in turn. This raises disk read throughput when several disks are available.

On Criteo, with one AWS c3.8xlarge machine, the authors report that compression speeds up computation by a factor of three and that sharding into two disks gives another 2x. The basic algorithm could only handle about 200M examples, and the system ran out of file cache from 400M examples, after which the basic method depends on disk; the compression plus sharding method slows down less sharply and then grows roughly linearly.

The final method processed 1.7 billion examples on a single machine.

Exact greedy comparison on Higgs-1M

The comparison uses the dense Higgs data, since scikit-learn only handles non-sparse input, and a 1M subset so that scikit-learn finishes in reasonable time. All runs use 500 trees, a maximum depth of 8, a shrinkage of 0.1, and no column sub-sampling unless stated.

XGBoost reached a Test AUC of 0.8304 at 0.6841 seconds per tree, while scikit-learn reached 0.8302 at 28.51 seconds per tree on the same metric. R's gbm, which expands only one branch of a tree at a time, reached 0.6224 at 1.032 seconds per tree, and the paper counts both XGBoost and scikit-learn as learning a full tree. The text says XGBoost runs more than 10x faster than scikit-learn in this setting.

Column sub-sampling at 0.5 lowered the AUC to 0.8245 and reduced time per tree to 0.6401 seconds. The authors attribute the small loss to the Higgs data having few important features, so restricting the features per tree costs something here.

Learning to rank on Yahoo LTRC

The task ranks around 22 documents per query over 20K web search queries, using the official train and test split. XGBoost runs the exact greedy algorithm here, while pGBRT supports only an approximate algorithm, so the two systems use different split searches.

XGBoost reached NDCG@10 of 0.7892 at 0.826 seconds per tree, and pGBRT, which is cited in the table as [22], reached 0.7915 at 2.576 seconds per tree. The paper states that XGBoost runs faster; on NDCG@10, its default setting is slightly below pGBRT in this table.

With column sub-sampling at 0.5, XGBoost reached NDCG@10 of 0.7913 at 0.506 seconds per tree, which is higher than its default setting and close to pGBRT. The authors attribute the gain from sub-sampling to reduced overfitting, a pattern they say many users have observed.

Distributed comparison and scaling

The distributed runs use 32 m3.2xlarge machines on a YARN cluster on EC2, with the data stored on AWS S3, and the comparison covers 10 iterations on subsets of the Criteo data. Both baselines are in-memory frameworks, while XGBoost switches to out-of-core computation when memory runs out.

Per iteration, XGBoost ran more than 10x faster than Spark MLLib and 2.2x faster than the optimized version of H2O. H2O was slow to load the data, so its end-to-end time was worse, and Spark slowed down sharply when its data ran out of memory.

With more machines, time per iteration falls roughly linearly, and the full 1.7 billion-instance dataset can be processed with four machines. The authors note that the trend is slightly super linear because more machines bring more file cache, which makes each machine faster.

Limitations

The single-machine comparisons use four datasets in total, and the sparsity experiment uses only Allstate-10K. The cache-aware figure covers Allstate and Higgs at 10M and 1M instances, and the text gives its speedup only for large datasets.

Several experiments use subsets, including Allstate-10K, the 1M Higgs subset for scikit-learn, and the Criteo subsets for the distributed runs. Each comparison is reported as one value per setting, and the units give no variance across repeated runs, so the size of the reported gaps relative to run-to-run noise is not established.

The weighted quantile sketch has its accuracy analysis in the appendix, and the only empirical check of approximation quality shown in the body is the Higgs comparison in Figure 3. The pGBRT row in Table 4 is cited to prior work, and the units do not describe the hardware or settings behind that row.

The claim that XGBoost is the consensus choice in competitions rests on counts of Kaggle winning solutions and KDDCup 2015 teams, which are reports of usage rather than controlled comparisons. The Criteo features were preprocessed by replacing ID features with count and CTR statistics computed on the first ten days, so the reported timings depend on that preprocessing.

Paper info

Authors
Tianqi Chen, Carlos Guestrin
Venue
arXiv · Preprint
First published
2016-3-9
Added
2026-11-11
Updated
2016-6-10
Version
v3
arXiv
1603.02754
DOI
10.1145/2939672.2939785
Category
cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Tianqi Chen, Carlos Guestrin (2016). XGBoost: A Scalable Tree Boosting System. arXiv:1603.02754v3. https://doi.org/10.1145/2939672.2939785

BibTeX
@article{chen2016xgboost,
  title = {{XGBoost: A Scalable Tree Boosting System}},
  author = {Tianqi Chen and Carlos Guestrin},
  year = {2016},
  eprint = {1603.02754},
  archivePrefix = {arXiv},
  doi = {10.1145/2939672.2939785},
  url = {https://arxiv.org/abs/1603.02754v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up