encyclopegia.org

XGBoost

XGBoost (eXtreme Gradient Boosting) is an open-source software library which provides a regularizing gradient boosting framework for C++, Java, Python, R, Julia, Perl, and Scala.[7] It works on Linux, Microsoft Windows, and macOS.[src] From the project description, it aims to provide a "Scalable, Portable and Distributed Gradient Boosting (GBM, GBRT, GBDT) Library".[7] It runs on a single machine, as well as the distributed processing frameworks Apache Hadoop, Apache Spark, Apache Flink, and Dask.[20] XGBoost gained much popularity and attention in the mid-2010s as the algorithm of choice for many winning teams of machine learning competitions.[2]

XGBoost (eXtreme Gradient Boosting) is an open-source software library which provides a regularizing gradient boosting framework for C++, Java, Python, R, Julia, Perl, and Scala.[7] It works on Linux, Microsoft Windows, and macOS.[src] From the project description, it aims to provide a "Scalable, Portable and Distributed Gradient Boosting (GBM, GBRT, GBDT) Library".[7] It runs on a single machine, as well as the distributed processing frameworks Apache Hadoop, Apache Spark, Apache Flink, and Dask.[20] XGBoost gained much popularity and attention in the mid-2010s as the algorithm of choice for many winning teams of machine learning competitions.[2] ==History== XGBoost initially started as a research project by Tianqi Chen as part of the Distributed (Deep) Machine Learning Community (DMLC) group at the University of Washington.[20] Initially, it began as a terminal application which could be configured using a libsvm configuration file.[src] It became well known in the ML competition circles after its use in the winning solution of the Higgs Machine Learning Challenge.[src] Soon after, the Python and R packages were built, and XGBoost now has package implementations for Java, Scala, Julia, Perl, and other languages.[4] This brought the library to more developers and contributed to its popularity among the Kaggle community, where it has been used for a large number of competitions.[src] It was soon integrated with a number of other packages making it easier to use in their respective communities.[4] It has now been integrated with scikit-learn for Python users and with the caret package for R users.[4] It can also be integrated into Data Flow frameworks like Apache Spark, Apache Hadoop, and Apache Flink using the abstracted Rabit and XGBoost4J.[src] XGBoost is also available on OpenCL for FPGAs.[6] An efficient, scalable implementation of XGBoost has been published by Tianqi Chen and Carlos Guestrin.[src] While the XGBoost model often achieves higher accuracy than a single decision tree, it sacrifices the intrinsic interpretability of decision trees.[8] For example, following the path that a decision tree takes to make its decision is trivial and self-explained, but following the paths of hundreds or thousands of trees is much harder.[src] ==Features== Salient features of XGBoost which make it different from other gradient boosting algorithms include: Clever penalization of trees A proportional shrinking of leaf nodes Newton Boosting Extra randomization parameter Implementation on single, distributed systems and out-of-core computation Automatic feature selection Theoretically justified weighted quantile sketching for efficient computation Parallel tree structure boosting with sparsity Efficient cacheable block structure for decision tree training ==The algorithm== XGBoost works as Newton–Raphson in function space unlike gradient boosting that works as gradient descent in function space, a second order Taylor approximation is used in the loss function to make the connection to Newton–Raphson method.[9] A generic unregularized XGBoost algorithm is: Input: training set \{(x_i, y_i)\}_{i=1}^N , a differentiable loss function L(y, F(x)) , a number of weak learners M and a learning rate \alpha .[src] Algorithm: Initialize model with a constant value: \hat{f}_{(0)}(x) = \underset{\theta}{\arg\min} \sum_{i=1}^N L(y_i, \theta).[src] Note that this is the initialization of the model and therefore we set a constant value for all inputs.[src] So even if in later iterations we use optimization to find new functions, in step 0 we have to find the value, equals for all inputs, that minimizes the loss functions.[src] For = 1 to : Compute the 'gradients' and 'hessians': \begin{align} \hat{g}_m(x_i) &= \left[\frac{\partial L(y_i,f(x_i))}{\partial f(x_i)} \right]_{f(x)=\hat{f}_{(m-1)}(x)}\in \mathbb{R} \\ \hat{h}_m(x_i) &= \left[\frac{\partial^2 L(y_i,f(x_i))}{\partial f(x_i)^2} \right]_{f(x)=\hat{f}_{(m-1)}(x)} \in \mathbb{R} \end{align} Fit a base learner \hat{\phi}_m (or weak learner, e.g.[src] tree) using the training set \left\{x_i,-\dfrac{\hat{g}_m(x_i)}{\hat{h}_m(x_i)}\right\}_{i=1}^{N} by solving the optimization problem below: \hat{\phi}_m=\underset{\phi \in \mathbf{\Phi}}{\arg\min}\sum_{i=1}^{N}\frac{1}{2}\hat{h}_m(x_i)\left[\phi(x_i) + \frac{\hat{g}_m(x_i)}{\hat{h}_m(x_i)}\right]^2.[src] (It arises from minimizing the second-order Taylor polynomial of L and completing the square.[src] Minimizing this weighted squared error finds the best possible tree approximation to the ideal Newton-Raphson step across the entire dataset.) \hat{f}_m(x)=\alpha \hat{\phi}_m(x).[src] Update the model: \hat{f}_{(m)}(x) = \hat{f}_{(m-1)}(x) - \hat{f}_m(x).[src] Output \hat{f}(x)=\hat{f}_{(M)}(x)=\sum_{m=0}^{M}\hat{f}_m(x).[src] ==Awards== John Chambers Award (2016) High Energy Physics meets Machine Learning award (HEP meets ML) (2016) "Test of Time Award" at KDD 2026 ==See also== Comparison of machine learning software TabPFN LightGBM CatBoost ==References==[13]

34 sentences · 34 cited inline · 20 references stored

References

  1. GitHub project webpage . GitHub . June 2022. retrieved 2016-04-05 · retrieved 2016-04-04 · rev 1376673961
    Cite this reference

    MLA "GitHub project webpage . GitHub . June 2022. retrieved 2016-04-05." GitHub project webpage. 2016-04-04. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "GitHub project webpage . GitHub . June 2022. retrieved 2016-04-05." GitHub project webpage. 2016-04-04. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA GitHub project webpage. (2016). GitHub project webpage . GitHub . June 2022. retrieved 2016-04-05. Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  2. XGBoost - ML winning solutions (incomplete list) . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "XGBoost - ML winning solutions (incomplete list) ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "XGBoost - ML winning solutions (incomplete list) ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). XGBoost - ML winning solutions (incomplete list) . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  3. Story and Lessons behind the evolution of XGBoost . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "Story and Lessons behind the evolution of XGBoost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "Story and Lessons behind the evolution of XGBoost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). Story and Lessons behind the evolution of XGBoost . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  4. It was soon integrated with a number of other packages making it easier to use in their respective communities. It has now been integrated with scikit-learn for Python (programming language)|Pyt . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "It was soon integrated with a number of other packages making it easier to use in their respective communities. It has now been integrated with scikit-learn for Python (programming language)|Pyt ." It was soon integrated with a number of other packages making it easier to use in their respective communities. 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "It was soon integrated with a number of other packages making it easier to use in their respective communities. It has now been integrated with scikit-learn for Python (programming language)|Pyt ." It was soon integrated with a number of other packages making it easier to use in their respective communities. 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA It was soon integrated with a number of other packages making it easier to use in their respective communities. (2026). It was soon integrated with a number of other packages making it easier to use in their respective communities. It has now been integrated with scikit-learn for Python (programming language)|Pyt . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  5. XGBoost4J . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "XGBoost4J ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "XGBoost4J ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). XGBoost4J . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  6. XGBoost on FPGAs . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "XGBoost on FPGAs ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "XGBoost on FPGAs ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). XGBoost on FPGAs . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  7. Gradient Boosting and XGBoost . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "Gradient Boosting and XGBoost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "Gradient Boosting and XGBoost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). Gradient Boosting and XGBoost . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  8. Every · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "Every." Tree Boosting With XGBoost – Why Does XGBoost Win "Every" M. 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "Every." Tree Boosting With XGBoost – Why Does XGBoost Win "Every" M. 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA Tree Boosting With XGBoost – Why Does XGBoost Win "Every" M. (2026). Every. Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  9. * Clever penalization of trees * A proportional shrinking of leaf nodes * Newton's method in optimization|Newton Boosting * Extra randomization parameter * Implementation on single, Distribu . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "* Clever penalization of trees * A proportional shrinking of leaf nodes * Newton's method in optimization|Newton Boosting * Extra randomization parameter * Implementation on single, Distribu ." * Clever penalization of trees * A proportional shrinking of leaf nodes * Newton's method in optimization|Newton Boostin. 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "* Clever penalization of trees * A proportional shrinking of leaf nodes * Newton's method in optimization|Newton Boosting * Extra randomization parameter * Implementation on single, Distribu ." * Clever penalization of trees * A proportional shrinking of leaf nodes * Newton's method in optimization|Newton Boostin. 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA * Clever penalization of trees * A proportional shrinking of leaf nodes * Newton's method in optimization|Newton Boostin. (2026). * Clever penalization of trees * A proportional shrinking of leaf nodes * Newton's method in optimization|Newton Boosting * Extra randomization parameter * Implementation on single, Distribu . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  10. John Chambers Award Previous Winners . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "John Chambers Award Previous Winners ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "John Chambers Award Previous Winners ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). John Chambers Award Previous Winners . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  11. HEP meets ML Award . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "HEP meets ML Award ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "HEP meets ML Award ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). HEP meets ML Award . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  12. Python Package Index PYPI: xgboost . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "Python Package Index PYPI: xgboost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "Python Package Index PYPI: xgboost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). Python Package Index PYPI: xgboost . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  13. XGBoost Paper Wins Test of Time Award at KDD 2026 . Digg . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "XGBoost Paper Wins Test of Time Award at KDD 2026 . Digg ." XGBoost Paper Wins Test of Time Award at KDD 2026. 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "XGBoost Paper Wins Test of Time Award at KDD 2026 . Digg ." XGBoost Paper Wins Test of Time Award at KDD 2026. 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA XGBoost Paper Wins Test of Time Award at KDD 2026. (2026). XGBoost Paper Wins Test of Time Award at KDD 2026 . Digg . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  14. CRAN package xgboost . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "CRAN package xgboost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "CRAN package xgboost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). CRAN package xgboost . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  15. Julia package listing xgboost . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "Julia package listing xgboost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "Julia package listing xgboost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). Julia package listing xgboost . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  16. CPAN module AI::XGBoost . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "CPAN module AI::XGBoost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "CPAN module AI::XGBoost ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). CPAN module AI::XGBoost . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  17. Installing XGBoost for Anaconda in Windows . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "Installing XGBoost for Anaconda in Windows ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "Installing XGBoost for Anaconda in Windows ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). Installing XGBoost for Anaconda in Windows . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  18. Installing XGBoost on Mac OSX . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "Installing XGBoost on Mac OSX ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "Installing XGBoost on Mac OSX ." 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA encyclopegia.org. (2026). Installing XGBoost on Mac OSX . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  19. Dask Homepage . retrieved 2021-07-15 · retrieved 2021-07-14 · rev 1376673961
    Cite this reference

    MLA "Dask Homepage . retrieved 2021-07-15." Dask Homepage. 2021-07-14. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "Dask Homepage . retrieved 2021-07-15." Dask Homepage. 2021-07-14. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA Dask Homepage. (2021). Dask Homepage . retrieved 2021-07-15. Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

  20. Distributed XGBoost with Dask — xgboost 1.5.0-dev documentation . · retrieved 2026-09-24 · rev 1376673961
    Cite this reference

    MLA "Distributed XGBoost with Dask — xgboost 1.5.0-dev documentation ." Distributed XGBoost with Dask — xgboost 1. 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961. Accessed 27 November 2026.

    Chicago "Distributed XGBoost with Dask — xgboost 1.5.0-dev documentation ." Distributed XGBoost with Dask — xgboost 1. 2026-09-24. https://en.wikipedia.org/w/index.php?oldid=1376673961.

    APA Distributed XGBoost with Dask — xgboost 1. (2026). Distributed XGBoost with Dask — xgboost 1.5.0-dev documentation . Retrieved November 27, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376673961

Cite this article

MLA

"XGBoost." encyclopegia.org, 2026, https://encyclopegia.org/wiki/xgboost. Accessed 27 November 2026.

Chicago

"XGBoost." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/xgboost.

APA

encyclopegia.org. (2026). XGBoost. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/xgboost

Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1376673961 · 0.5 · snapshot enwiki-001376673961

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.