XGBoost vs LightGBM is the most common question in tabular machine learning, and CatBoost is the usual third option. The short answer from my tests: on clean, medium-sized data all three land within a fraction of a percent of each other once tuned. They differ much more in speed, in how they handle categorical columns, and in how they behave on difficult data.
I ran all three libraries on three public datasets (income classification, credit card fraud and house prices) with three random seeds each, in two setups: out-of-the-box defaults and a simple tuned setup with early stopping. Everything ran on a 2-core CPU with no GPU, and the full script is below so you can repeat it.

Key takeaways
- On the income data, all three scored between 0.929 and 0.933 ROC-AUC. Pick on speed and convenience there, not accuracy.
- CatBoost had the best average score on every dataset and was also the slowest to train, about 130 times slower than LightGBM with defaults on the income data.
- LightGBM’s defaults failed on extremely imbalanced fraud data (PR-AUC between 0.02 and 0.31). A lower learning rate with early stopping brought it back to 0.78.
- XGBoost was stable on fraud data with defaults and rose from 0.801 to 0.869 PR-AUC with light tuning.
- Larger benchmarks agree that the gaps between the three are small, and that tabular foundation models now beat all of them on small datasets.
XGBoost vs LightGBM vs CatBoost: the quick verdict
If you only read one section, read this table. It summarises my results and the design differences covered below.
| If you need… | Pick | Why |
|---|---|---|
| The fastest training on large data | LightGBM | leaf-wise trees and histogram tricks; fastest in most of my runs |
| Many categorical columns with little preprocessing | CatBoost | native ordered target statistics, best scores here |
| Strong results on imbalanced data with few surprises | XGBoost or CatBoost | both stayed stable on fraud data with defaults |
| The widest ecosystem and deployment options | XGBoost | oldest of the three, supported almost everywhere |
| The best score and you can wait | CatBoost | highest average on all three datasets, slowest to fit |
None of these is a large win. On two of the three datasets, the gap between best and worst tuned library was smaller than or close to the variation between random seeds.
What the three libraries have in common
All three are implementations of gradient boosted decision trees. The idea is the same in each:
- Start with a simple prediction, such as the average target.
- Fit a small decision tree to the errors of the current model (more precisely, to the gradient of the loss).
- Add that tree to the model, scaled down by a learning rate.
- Repeat hundreds or thousands of times.
Each new tree corrects a little of what the previous trees got wrong. The learning rate controls how much each tree contributes, and the number of trees controls how long the process runs. Lower learning rates need more trees and usually generalise better, which is why “learning rate 0.05 plus early stopping” is a common starting recipe.
Gradient boosted trees have been the standard for tabular data for years. A NeurIPS 2022 study by Grinsztajn, Oyallon and Varoquaux compared models on 45 datasets of around 10,000 rows and found that tree-based models still outperformed deep learning on medium-sized tabular data. The paper traced the gap to three things neural networks handle poorly: uninformative features, the orientation of the data, and irregular target functions.
XGBoost vs LightGBM vs CatBoost: how they differ
The differences come from design choices made when each library was introduced.
XGBoost
XGBoost was published by Tianqi Chen and Carlos Guestrin at KDD 2016. It added a regularised objective, careful handling of sparse data and a scalable system design that made boosting practical at large scale. It became the default winner of Kaggle tabular competitions for several years.
Today XGBoost uses a histogram method (tree_method=”hist”) by default for speed. It grows trees depth-wise by default: every node at one level splits before the next level starts. It supports categorical columns natively when you pass enable_categorical=True with pandas category dtypes.
LightGBM
LightGBM came from Microsoft Research and was presented at NeurIPS 2017 by Ke and colleagues. The paper introduced two ideas to cut training cost:
- Gradient-based One-Side Sampling (GOSS), which keeps rows with large gradients and samples from the rest.
- Exclusive Feature Bundling (EFB), which merges sparse features that are rarely non-zero at the same time.
The authors reported training up to 20 times faster than earlier approaches at similar accuracy. LightGBM also grows trees leaf-wise: it always splits the leaf with the largest loss reduction, wherever it is. That builds deeper, uneven trees, which fit quickly and can overfit small or skewed data if left unconstrained.
CatBoost
CatBoost comes from Yandex and was presented at NeurIPS 2018 by Prokhorenkova and colleagues. Its paper argued that standard boosting suffers from a “prediction shift”, a form of target leakage, because the same rows are used to compute gradients and to build the trees. CatBoost’s answers are:
- Ordered boosting, which computes each row’s residual from a model that has not seen that row.
- Ordered target statistics for categorical features, which encode categories using only rows that come earlier in a random permutation.
- Symmetric (oblivious) trees, where every node at one depth uses the same split. These are fast at prediction time and act as a regulariser.
That design explains both of CatBoost’s results in my tests: better accuracy with no tuning, and much slower training.
XGBoost vs LightGBM vs CatBoost side by side
| Feature | XGBoost | LightGBM | CatBoost |
|---|---|---|---|
| First paper | KDD 2016 | NeurIPS 2017 | NeurIPS 2018 |
| Origin | University of Washington, then open community | Microsoft | Yandex |
| Tree growth | depth-wise by default | leaf-wise | symmetric (oblivious) |
| Categorical features | native with enable_categorical=True | native with pandas category dtype | native, ordered target statistics |
| Missing values | learned default direction | learned default direction | handled natively (numeric) |
| Default trees and learning rate | 100 trees, 0.3 | 100 trees, 0.1 | 1,000 iterations, rate chosen automatically |
| GPU training | yes | yes | yes |
| Speed with defaults in my runs | fast | fastest | slowest |
How I benchmarked XGBoost vs LightGBM vs CatBoost
I wanted a test that a reader can run on a laptop in under an hour, on data with known properties.
The datasets
| Dataset | Task | Rows | Features | Metric | What makes it interesting |
|---|---|---|---|---|---|
| Adult (US census income) | classify income above $50K | 48,842 | 14, of which 8 categorical | ROC-AUC | many categorical columns, 23.9% positive class, missing values |
| Credit card fraud (ULB) | classify fraud | 284,807 | 29 numeric | PR-AUC | extreme imbalance, 0.17% fraud |
| California housing | predict median house value | 20,640 | 9, of which 1 categorical | RMSE in dollars | regression, capped target |
The protocol
For each dataset and each of three seeds (0, 1, 2):
- Hold out 20% as a test set, stratified for the classification tasks.
- From the remaining 80%, hold out another 20% as a validation set.
- Defaults setup: fit each library with its default parameters on training plus validation data.
- Tuned setup: fit on the training data with learning rate 0.05, up to 3,000 trees, and early stopping after 100 rounds without improvement on the validation set.
- Score on the test set and record fit and prediction time.
The “tuned” setup is deliberately light. It is the recipe most people use first, not a full hyperparameter search. Real tuning would move every number a little, which is why I also report what larger benchmarks found.
Note that the fraud data uses random stratified splits here, so all three libraries see the same kind of split as on the other datasets. In our fraud detection tutorial I use a time-based split instead, which is the right choice for a production model and gives lower scores.
The environment
| Component | Version |
|---|---|
| Python | 3.13 |
| XGBoost | 3.4.1 |
| LightGBM | 4.7.0 |
| CatBoost | 1.2.10 |
| scikit-learn | 1.9.1 |
| Hardware | 2 CPU cores, 7 GB RAM, no GPU |
Every library ran with two threads. Timings come from a shared cloud machine, so treat them as rough ratios, not exact seconds.
The benchmark code
"""XGBoost vs LightGBM vs CatBoost on three real datasets, CPU only.
Two setups per library:
defaults : the library's out-of-the-box settings
tuned : learning rate 0.05, up to 3,000 trees, early stopping on a validation split
Run: python gbm_benchmark.py <data_dir>
"""
import sys
import time
import numpy as np
import pandas as pd
import lightgbm as lgb
import xgboost as xgb
from catboost import CatBoostClassifier, CatBoostRegressor
from sklearn.metrics import average_precision_score, roc_auc_score, root_mean_squared_error
from sklearn.model_selection import train_test_split
DATA = sys.argv[1] if len(sys.argv) > 1 else "."
THREADS = 2
def load_adult():
cols = ["age", "workclass", "fnlwgt", "education", "education_num", "marital_status", "occupation",
"relationship", "race", "sex", "capital_gain", "capital_loss", "hours_per_week",
"native_country", "income"]
df = pd.read_csv(f"{DATA}/adult-all.csv", header=None, names=cols, na_values="?")
y = (df.pop("income") == ">50K").astype(int)
cats = [c for c in df.columns if df[c].dtype == object or str(df[c].dtype).startswith("str")]
for c in cats:
df[c] = df[c].fillna("missing").astype("category") # CatBoost rejects NaN categories
return df, y, cats, "classification", "ROC-AUC"
def load_fraud():
df = pd.read_csv(f"{DATA}/creditcard.csv")
y = df.pop("Class")
df = df.drop(columns="Time")
return df, y, [], "classification", "PR-AUC"
def load_housing():
df = pd.read_csv(f"{DATA}/housing.csv")
y = df.pop("median_house_value")
df["ocean_proximity"] = df["ocean_proximity"].astype("category")
return df, y, ["ocean_proximity"], "regression", "RMSE"
def make(lib, task, setup, cats):
tuned = setup == "tuned"
common = dict(random_state=0)
if lib == "XGBoost":
kw = dict(tree_method="hist", enable_categorical=True, n_jobs=THREADS, **common)
if tuned:
kw.update(n_estimators=3000, learning_rate=0.05, early_stopping_rounds=100)
return (xgb.XGBClassifier if task == "classification" else xgb.XGBRegressor)(**kw)
if lib == "LightGBM":
kw = dict(n_jobs=THREADS, verbose=-1, **common)
if tuned:
kw.update(n_estimators=3000, learning_rate=0.05)
return (lgb.LGBMClassifier if task == "classification" else lgb.LGBMRegressor)(**kw)
kw = dict(thread_count=THREADS, verbose=0, cat_features=cats or None, random_seed=0)
if tuned:
kw.update(iterations=3000, learning_rate=0.05, early_stopping_rounds=100)
return (CatBoostClassifier if task == "classification" else CatBoostRegressor)(**kw)
def fit(model, lib, setup, X_tr, y_tr, X_va, y_va):
if setup == "defaults":
model.fit(X_tr, y_tr)
elif lib == "LightGBM":
model.fit(X_tr, y_tr, eval_set=[(X_va, y_va)], callbacks=[lgb.early_stopping(100, verbose=False)])
elif lib == "XGBoost":
model.fit(X_tr, y_tr, eval_set=[(X_va, y_va)], verbose=False)
else:
model.fit(X_tr, y_tr, eval_set=(X_va, y_va))
return model
def score(metric, y, model, X):
if metric == "RMSE":
return root_mean_squared_error(y, model.predict(X))
p = model.predict_proba(X)[:, 1]
return roc_auc_score(y, p) if metric == "ROC-AUC" else average_precision_score(y, p)
rows = []
for loader in (load_adult, load_fraud, load_housing):
X, y, cats, task, metric = loader()
name = loader.__name__.replace("load_", "")
for seed in [0, 1, 2]:
strat = y if task == "classification" else None
X_tmp, X_te, y_tmp, y_te = train_test_split(X, y, test_size=0.2, random_state=seed, stratify=strat)
strat2 = y_tmp if task == "classification" else None
X_tr, X_va, y_tr, y_va = train_test_split(X_tmp, y_tmp, test_size=0.2, random_state=seed, stratify=strat2)
for setup in ("defaults", "tuned"):
for lib in ("XGBoost", "LightGBM", "CatBoost"):
tr_X, tr_y = (X_tmp, y_tmp) if setup == "defaults" else (X_tr, y_tr)
m = make(lib, task, setup, cats)
t0 = time.perf_counter()
fit(m, lib, setup, tr_X, tr_y, X_va, y_va)
fit_s = time.perf_counter() - t0
t0 = time.perf_counter()
s = score(metric, y_te, m, X_te)
pred_s = time.perf_counter() - t0
rows.append(dict(dataset=name, metric=metric, setup=setup, library=lib, seed=seed,
score=s, fit_s=fit_s, predict_s=pred_s))
res = pd.DataFrame(rows)
res.to_csv("gbm_results.csv", index=False)
summary = (res.groupby(["dataset", "metric", "setup", "library"])
.agg(score=("score", "mean"), score_sd=("score", "std"), fit_s=("fit_s", "mean"))
.round(4))
print(summary.to_string())
XGBoost vs LightGBM vs CatBoost: benchmark results
Scores are the mean over three seeds, with the standard deviation in brackets. Fit time is the mean in seconds.
Adult income: XGBoost vs LightGBM vs CatBoost is a tie
| Library | Setup | ROC-AUC (higher is better) | Fit time (s) |
|---|---|---|---|
| CatBoost | defaults | 0.9333 (±0.0010) | 33.3 |
| LightGBM | defaults | 0.9323 (±0.0014) | 0.25 |
| XGBoost | defaults | 0.9292 (±0.0011) | 0.26 |
| CatBoost | tuned | 0.9322 (±0.0016) | 21.0 |
| XGBoost | tuned | 0.9316 (±0.0010) | 1.1 |
| LightGBM | tuned | 0.9314 (±0.0014) | 0.75 |

The full spread across all six rows is 0.004 ROC-AUC. After tuning, XGBoost and LightGBM sit within 0.0002 of each other, far less than the seed-to-seed variation. CatBoost’s defaults were the best single setup, but they took 33 seconds against a quarter of a second for LightGBM, about 130 times longer.
The tuned runs score slightly lower than the defaults for CatBoost and LightGBM, partly because the tuned models train on 20% less data (the validation split is held back for early stopping).
For data like this, with a mix of categorical and numeric columns and a moderate class balance, the XGBoost vs LightGBM choice makes no measurable difference to accuracy. Choose on speed, tooling and what your team already knows.
Credit card fraud: where XGBoost vs LightGBM really differs
| Library | Setup | PR-AUC (higher is better) | Fit time (s) |
|---|---|---|---|
| CatBoost | defaults | 0.870 (±0.019) | 26.4 |
| XGBoost | defaults | 0.801 (±0.041) | 1.8 |
| LightGBM | defaults | 0.180 (±0.147) | 1.9 |
| CatBoost | tuned | 0.878 (±0.025) | 15.8 |
| XGBoost | tuned | 0.869 (±0.027) | 4.0 |
| LightGBM | tuned | 0.782 (±0.065) | 2.0 |

This is where the libraries really separate. LightGBM with its default settings scored 0.312, 0.206 and 0.022 PR-AUC on the three seeds. For comparison, a plain logistic regression reaches 0.709 on a time-based split of the same data. A boosted model scoring 0.02 is broken.
The cause is the combination of extreme imbalance (0.17% fraud), a fairly high default learning rate of 0.1, and leaf-wise growth. Leaf-wise trees can isolate a handful of rows in a tiny leaf, and with so few positives those leaves can take extreme values that wreck the ranking. Switching to learning rate 0.05 with early stopping on a validation set lifted LightGBM to 0.782, still the lowest of the three and the most variable across seeds. In the fraud tutorial, adding min_child_samples=100, L2 regularisation and row and column subsampling brought a weighted LightGBM model to 0.801 on a time-based split.
XGBoost and CatBoost stayed stable even with defaults. Of the two, XGBoost gained more from tuning, rising by 0.068 PR-AUC. CatBoost was best in both setups.
California housing: CatBoost leads, gaps are small
| Library | Setup | RMSE in dollars (lower is better) | Fit time (s) |
|---|---|---|---|
| CatBoost | defaults | 45,210 (±880) | 4.4 |
| XGBoost | defaults | 47,267 (±993) | 0.19 |
| LightGBM | defaults | 47,470 (±704) | 0.15 |
| CatBoost | tuned | 44,698 (±1,187) | 11.3 |
| LightGBM | tuned | 45,746 (±1,162) | 1.2 |
| XGBoost | tuned | 46,402 (±1,191) | 1.9 |
For context, the median house value in this dataset is $179,700. The best tuned model (CatBoost) beats the worst (XGBoost) by about $1,700 of RMSE, or 3.7%. That gap is larger than the seed variation of about $1,200, but not by much. Tuning helped every library, and helped LightGBM most (about $1,700 better than its defaults).
Training speed: XGBoost vs LightGBM vs CatBoost
Speed is the clearest difference between the libraries:
| Dataset | LightGBM defaults | XGBoost defaults | CatBoost defaults |
|---|---|---|---|
| Adult (39,000 training rows) | 0.25 s | 0.26 s | 33.3 s |
| Fraud (228,000 training rows) | 1.9 s | 1.8 s | 26.4 s |
| Housing (16,500 training rows) | 0.15 s | 0.19 s | 4.4 s |
Part of CatBoost’s slowness is its default of 1,000 iterations against 100 trees for the other two, and part is ordered boosting and categorical encoding. With early stopping it often stopped sooner (21 seconds instead of 33 on adult), but it remained one to two orders of magnitude slower than LightGBM and XGBoost on two cores. Prediction time was a few hundredths of a second for every library on every test set, so inference speed was not a deciding factor here.
On a GPU or a many-core machine the ratios change. If you train once a week, 30 seconds is nothing. If you run a 500-trial hyperparameter search, it is the difference between a coffee break and an overnight job.
What larger XGBoost vs LightGBM benchmarks say
Three datasets and three seeds are enough to show patterns, not to crown a winner. Bigger studies are worth a look.
TabArena is a living benchmark that ranks tabular models on 51 curated datasets with Elo ratings. A July 2026 summary of TabArena version 0.1.4 by eCorpIT listed these scores:
| Model on TabArena | Elo |
|---|---|
| AutoGluon 1.5 (extreme preset, 4 hours) | 1695 |
| TabPFN-3 | 1673 |
| TabPFN-2.6 | 1624 |
| TabICLv2 | 1596 |
| LightGBM, tuned and ensembled | 1433 |
| CatBoost, tuned and ensembled | 1417 |
| XGBoost, tuned and ensembled | 1375 |
| CatBoost, default | 1369 |
| Random forest, tuned | 1171 |
| Linear model | 962 |
eCorpIT is a secondary source, so check the live leaderboard before quoting these numbers. Three things stand out:
- With heavy tuning and ensembling, LightGBM edges CatBoost and XGBoost, which is the reverse of my light-tuning results. Tuning effort changes the order.
- CatBoost with defaults (1369) is close to XGBoost after full tuning (1375), which matches what I saw: CatBoost needs the least work to get a good result.
- Tabular foundation models such as TabPFN now sit well above all three boosting libraries on this benchmark, which mostly contains small and medium datasets.
The same eCorpIT summary noted that trees still tend to win above roughly 50,000 rows, on CPU-only serving and where interpretability matters. That matches the general picture: boosting libraries remain the default for large tables and production systems, while foundation models are the new option to try on small ones.
XGBoost vs LightGBM vs CatBoost hyperparameter names
Each library names its settings differently. This table maps the ones you will touch most:
| Purpose | XGBoost | LightGBM | CatBoost |
|---|---|---|---|
| Learning rate | learning_rate (eta) | learning_rate | learning_rate |
| Number of trees | n_estimators | n_estimators | iterations |
| Tree size | max_depth | num_leaves, max_depth | depth |
| Minimum data per leaf | min_child_weight (hessian) | min_child_samples | min_data_in_leaf |
| Row sampling | subsample | subsample with subsample_freq | subsample |
| Column sampling | colsample_bytree | colsample_bytree | rsm |
| L2 regularisation | reg_lambda | reg_lambda | l2_leaf_reg |
| Class imbalance | scale_pos_weight | scale_pos_weight, class_weight | auto_class_weights, scale_pos_weight |
| Early stopping | early_stopping_rounds | lgb.early_stopping() callback | early_stopping_rounds |
A few practical notes:
- LightGBM’s main size control is num_leaves (default 31). Raising it without also raising min_child_samples is the quickest way to overfit.
- In LightGBM, subsample does nothing unless subsample_freq is above zero.
- CatBoost’s depth defaults to 6. Because its trees are symmetric, depth 6 means exactly 64 leaves.
- In XGBoost, min_child_weight is a sum of hessians, not a row count. For log loss with confident predictions, the hessians are small, so the same number protects less than you might expect.
Handling categorical features in each library
Categorical data is where the libraries differ most in day-to-day use. Here is the minimal code for each, assuming a pandas DataFrame df with a categorical column city.
XGBoost needs the pandas category dtype and one flag:
import xgboost as xgb
df["city"] = df["city"].astype("category")
model = xgb.XGBClassifier(tree_method="hist", enable_categorical=True)
model.fit(df[features], y)
LightGBM picks up category dtype columns automatically:
import lightgbm as lgb
df["city"] = df["city"].astype("category")
model = lgb.LGBMClassifier()
model.fit(df[features], y)
CatBoost takes a list of categorical column names and accepts plain strings:
from catboost import CatBoostClassifier
df["city"] = df["city"].fillna("missing") # CatBoost rejects NaN in categorical columns
model = CatBoostClassifier(cat_features=["city"], verbose=0)
model.fit(df[features], y)
That last comment comes from a real error in my benchmark run. CatBoost raised “cat_features must be integer or string” on the adult data because some categorical values were missing. Filling them with a “missing” label fixed it, and I applied the same fill for all three libraries to keep the comparison fair.
With high-cardinality categories (thousands of IDs), CatBoost’s ordered target statistics are the main reason to choose it. With XGBoost or LightGBM you can get similar results by target encoding the column yourself, but do it inside cross-validation. Encoding on the full dataset is one of the leaks in our data leakage guide, where it turned random labels into a 0.887 ROC-AUC.
Explainability, constraints and deployment
Accuracy and speed are not the only things that decide a library choice in a real project. Here is how the three compare on the features teams ask about once a model heads to production.
| Need | XGBoost | LightGBM | CatBoost |
|---|---|---|---|
| Per-row SHAP values built in | predict(…, pred_contribs=True) on the booster | predict(…, pred_contrib=True) | get_feature_importance(type=”ShapValues”) |
| Monotonic constraints | yes | yes | yes |
| Custom loss functions | yes | yes | yes |
| Native model file | JSON or UBJSON | text | .cbm |
| Built-in export to other formats | no | no | ONNX, Core ML, C++, Python, JSON |
| scikit-learn style API | yes | yes | yes |
All three can explain individual predictions without extra libraries, which matters in regulated areas such as lending and fraud. In the fraud detection tutorial, LightGBM’s pred_contrib showed that one feature added 8.32 log-odds to a flagged transaction, the kind of reason code an analyst can act on.
Monotonic constraints are worth knowing about in any XGBoost vs LightGBM decision for pricing or credit models. They force the prediction to rise (or fall) with a feature, such as risk rising with debt. All three libraries support them, so this rarely decides the choice, but it is a useful tool that many people never switch on.
For deployment, CatBoost has the widest built-in export options. XGBoost and LightGBM models are usually served with their own runtime, through converters to ONNX, or through tools such as Treelite that compile trees to fast native code.
Common mistakes when comparing XGBoost vs LightGBM
Most comparisons you will read online, including quick ones I have done in the past, fall into at least one of these traps:
- Comparing defaults only. Defaults differ a lot between libraries (100 trees at learning rate 0.3 for XGBoost against 1,000 iterations for CatBoost), so a defaults-only test partly compares tree counts.
- Using one random seed. On fraud data, the same LightGBM setup scored anywhere from 0.02 to 0.31 depending on the seed.
- Tuning one library harder than the others. Give each the same budget, or you end up comparing tuning effort.
- Reporting accuracy on imbalanced data, where every library looks perfect.
- Ignoring training time. A 0.001 gain that costs 100 times the compute is rarely worth it.
- Tuning on the test set. Keep a separate validation split for early stopping, as in the script above.
XGBoost vs LightGBM vs CatBoost: which one should you choose?
Work through these questions in order:
- Is your dataset small (under about 10,000 rows) and is the licence acceptable? Try a tabular foundation model such as TabPFN alongside a boosting library.
- Do you have many categorical columns, especially high-cardinality ones, and limited time to tune? Start with CatBoost.
- Is the data very large, or do you need many training runs? Start with LightGBM, and regularise it if the classes are very imbalanced.
- Do you need the broadest deployment support, or are you working in an environment that already uses it? Use XGBoost.
- Still unsure? Train all three with early stopping. On most datasets that takes minutes, and the comparison will tell you more than any article.
Whatever you pick, evaluate it with the right split and metric. In this benchmark, the choice between a random and a time-based split moved fraud PR-AUC by more than the choice between XGBoost and LightGBM.
FAQ
Is LightGBM better than XGBoost?
Not in general. In my tests the two were within 0.0002 ROC-AUC on income data after tuning. LightGBM trained faster in most runs, while XGBoost was more stable on extremely imbalanced fraud data with default settings. On the TabArena benchmark, fully tuned LightGBM ranks slightly above fully tuned XGBoost.
Is CatBoost better than XGBoost?
CatBoost had the best average score on all three of my datasets, and its defaults needed the least tuning. It was also about 14 to 130 times slower to train with defaults on two CPU cores. If training time does not matter and you have categorical data, CatBoost is a strong first choice.
Why did LightGBM perform badly on my imbalanced dataset?
Leaf-wise tree growth with a relatively high learning rate can produce tiny leaves around a few positive rows, and their extreme values damage the ranking. Lower the learning rate, use early stopping, and raise min_child_samples and reg_lambda. Check the score across several seeds, because a broken setup often shows up as large variation.
Which is fastest: XGBoost, LightGBM or CatBoost?
LightGBM was fastest or tied for fastest in every one of my default runs, with XGBoost close behind. CatBoost was about 14 to 130 times slower with defaults on two cores. GPU training narrows these gaps.
Should I use XGBoost vs LightGBM for a Kaggle competition?
Use both, plus CatBoost. Top tabular solutions usually ensemble several boosting libraries, because their errors differ slightly. If time is short, start with LightGBM for fast iteration and add the others once your features are settled.
Do I still need gradient boosting now that TabPFN exists?
Yes for large datasets, CPU-only serving and cases where you need fast, interpretable trees. Foundation models lead on small and medium tables in benchmarks, but they have row limits, heavier hardware needs and, for the newest versions, non-commercial licences.
The honest answer to XGBoost vs LightGBM
All three libraries are excellent, and on well-behaved data they are close to interchangeable. The differences that matter are practical: LightGBM’s speed and its sensitivity on extreme imbalance, CatBoost’s strong defaults and slow training, XGBoost’s stability and reach. Run all three with early stopping on your own data and split, and you will have a better answer than any leaderboard can give you.
New to this area? The machine learning roadmap for 2026 places gradient boosting in a wider learning plan.


