Super Data Science: ML & AI Podcast with Jon Krohn
Super Data Science: ML & AI Podcast with Jon Krohn

771: Gradient Boosting: XGBoost, LightGBM and CatBoost, with Kirill Eremenko

Kirill Eremenko joins Jon Krohn for another exclusive, in-depth teaser for a new course just released on the SuperDataScience platform, “Machine Learning Level 2”. Kirill walks listeners through why decision trees and random forests are fruitful for businesses, and he offers hands-on walkthroughs fo

Featured Speakers

Jon Krohn HostKirill Aramenko Guest

Topics Discussed

Episode Summary

Executive Summary: Kirill Aramenko gave a highly technical tour of tree-based machine learning, moving from decision trees to bagging/random forests, AdaBoost, and gradient boosting, then into XGBoost, LightGBM, and CatBoost. He emphasized why these methods dominate tabular business data, how they differ mathematically and operationally, and when each is the best practical choice.

Main Topics: Decision Trees as the Foundation: Kirill revisited decision trees as simple yes/no splits that can solve regression and classification, using a customer spending example to show how leaf values or labels are formed. Bagging and Random Forests: He explained bootstrap aggregating as the core of bagging, where many trees are trained on bootstrapped samples and averaged or voted on to reduce variance and overfitting. AdaBoost as an Early Boosting Bridge: AdaBoost was presented as an adaptive method that reweights misclassified examples and combines weak learners with weighted voting, marking the transition from bagging to boosting. Gradient Boosting Mechanics: Kirill described gradient boosting as sequential models that predict residuals or, more formally, gradients of a loss function, with regression using squared loss and classification using binomial deviance/log odds. XGBoost Optimizations: XGBoost was framed as a scalable, production-ready gradient boosting system that sped up training with optimized split search, pruning, regularization, row/column sampling, and distributed computing. LightGBM Speed Strategies: LightGBM was explained as a faster alternative using histogram-based splits, exclusive feature bundling, gradient-based one-side sampling, and leaf-wise tree growth to trade a bit of accuracy for speed. CatBoost for Categorical Data: CatBoost was highlighted for its strong handling of categorical features through ordered target encoding and symmetric trees, making it especially effective and fast for categorical-heavy datasets.

Key Arguments: Decision trees are the basic weak learner used in most tree-based ensembles because they are interpretable, nonlinear, and fast to train. Random forests reduce variance by training many trees on bootstrapped samples and averaging their predictions or votes. AdaBoost improves on bagging by iteratively focusing on examples that were previously misclassified and weighting stronger trees more heavily. Gradient boosting differs from bagging because models are chained sequentially to correct previous errors rather than averaged independently. For regression, gradient boosting can be understood as fitting successive trees to residuals; mathematically, this comes from minimizing a loss function via its gradient. For classification, gradient boosting works in log-odds space using a binomial deviance loss, which is less intuitive but follows the same principle. XGBoost made gradient boosting practical in industry by making it much faster, more scalable, and more regularized than earlier implementations. LightGBM further improves speed by reducing the number of split candidates and using leaf-wise growth, making it attractive when training throughput matters. CatBoost is especially strong when datasets contain many categorical variables because it handles them natively and avoids common one-hot-encoding issues. All three modern boosters are especially valuable for tabular business data, where deep learning often adds less value than optimized tree ensembles.

Data Points: Episode number: 771 - The show opened by identifying this as episode 771. Super Data Science students reached: 2.7 million+ - Kirill was introduced as having taught millions of students through Udemy courses. Machine Learning Level 2 course length: 6.5 hours - The new Super Data Science course on gradient boosting was described as a six-and-a-half-hour course. Random Forest sample size example: 1,000 observations - Used repeatedly in the decision tree, bagging, and gradient boosting examples. Random Forest tree count example: 100 trees - Kirill used 100 trees as the example number for an ensemble. Kaggle winning solutions using XGBoost in 2015: 17 of 29 - Kirill cited this as evidence of XGBoost’s rapid adoption after release. Kaggle XGBoost usage in 2015: 8 pure + 9 hybrid with deep learning - Breakdown of the 17 winning Kaggle solutions. KD Nuggets Cup 2015 top 10: 100% used XGBoost - Kirill stated every winning team in the top 10 used XGBoost. LightGBM speed claim: ~20x faster than XGBoost - Kirill cited this as a commonly reported estimate for LightGBM’s training speed advantage. LightGBM histogram bin example: 15 bins - A salary feature ranging to $150,000 with $10,000 bins was used to illustrate histogram-based splits. LightGBM GOSS sampling example: 28% of data retained - Example using top 20% gradients plus 10% of the remaining gradients, resulting in 28% total rows used. AdaBoost origin: 1995 concept; 1999 paper - Kirill dated AdaBoost’s development to 1995 and its paper to 1999. Gradient boosting origin: 1999 - Jerome Friedman’s gradient boosting work was dated to 1999. XGBoost release: 2014 - Kirill said XGBoost emerged in 2014 and became widely adopted in 2015. LightGBM introduction: 2017 - LightGBM was said to have been introduced by Microsoft in 2017. CatBoost introduction: 2017 - CatBoost was said to have been introduced by Yandex in 2017. Live labs per month: 2 currently, goal of 4 - Kirill described the current and planned cadence of Super Data Science live labs.

Pivotal Quotes: "Gradient boosting often is the solution to get the job done." — Kirill Aramenko: He contrasted practical tabular machine learning with deep learning, emphasizing real-world utility. "The main thing to take away about boosting or gradient boosting for classification is that the underlying concept is the same." — Kirill Aramenko: He summarized how classification uses the same gradient-based idea despite being less intuitive than regression. "It doesn't matter if it's not perfect. Machine learning doesn't have to be perfect, it has to give results." — Kirill Aramenko: He used this to explain why practical compromises in XGBoost, LightGBM, and CatBoost are acceptable and often necessary.

Implications: For tabular business problems, modern tree ensembles remain a top-tier default. Listeners should know when to favor random forests, XGBoost, LightGBM, or CatBoost based on speed, categorical data, and accuracy needs.

🔓 Sign Up for Unlimited Episode Search

About Super Data Science: ML & AI Podcast with Jon Krohn

View all episodes from Super Data Science: ML & AI Podcast with Jon Krohn