- Introduced by
- Prokhorenkova, L., Gusev, G., Vorobev, A., Dorogush, A. V., & Gulin, A. (Yandex Research)
- Year
- 2018
- Type
- Regularized gradient boosting ensemble
- Family
- Machine learning
What does it do?
Regularized CatBoost refers to fitting CatBoost, a gradient boosting ensemble for tabular data, with its explicit regularization controls set deliberately: L2 penalties on leaf values, learning-rate shrinkage, tree-size limits, and row and feature subsampling.
The underlying algorithm, including ordered boosting and native handling of categorical features, is CatBoost itself, so the term describes a configuration choice rather than a separately published method.
The intuition behind the method
CatBoost already includes structural safeguards against overfitting, such as ordered boosting and symmetric trees. Explicit regularization adds penalties on top of these. An L2 penalty on leaf values shrinks extreme leaf outputs toward zero. Learning-rate shrinkage makes each tree contribute only a fraction of its fitted value. Depth and leaf-size limits restrict how finely a single tree can fit individual rows, and their effect depends on the tree growth setting in use. Subsampling and random-strength add variation between trees. These controls matter most when the training set is small or the labels are noisy. Whether they improve held-out accuracy depends on the data, so the settings should be checked on a validation fold.
History
CatBoost was described by Prokhorenkova et al. (NeurIPS, 2018) and by Dorogush et al. (arXiv, 2018) as a gradient boosting method developed by researchers at Yandex. The NeurIPS paper presents ordered boosting as a way to reduce prediction shift, a form of target leakage. The arXiv preprint addresses support for categorical features. Neither cited source introduces 'Regularized CatBoost' as a separate method. The regularization parameters discussed here are CatBoost's own hyperparameters, and the term describes how they are set.
When to use it
Choose this configuration when your data are tabular, mix numerical and categorical columns, and gradient boosting is a reasonable model family for the problem, and when you can hold out a validation split for tuning and early stopping. It is most useful when an untuned boosting run overfits, for example on a small or noisy training set, or when many categorical columns would otherwise need manual encoding. Avoid it when you need coefficients or rules that can be read directly, when the dataset is very small and a simpler model may fit as well, or when the inputs are primarily unstructured, such as text or images. For low-dimensional numerical problems, a regularized linear model or a shallow tree may be sufficient.
Limitations and considerations
- Regularization does not make the ensemble interpretable. Predictions depend on many interacting tree splits, so penalties do not produce coefficients that can be read directly, and post hoc attribution methods are needed.
- Ordered boosting relies on a random permutation during training, so results are reproducible only when the random seed is fixed.
- The regularization parameters interact. A strong L2 penalty combined with a small learning rate and shallow trees can underfit, so the parameters have to be tuned jointly on validation data.
- Training time on large datasets depends on data and hardware. GPU training is available, but speed relative to other boosting libraries should be measured directly rather than assumed.
- For unstructured inputs such as text or images, deep learning models are usually the more suitable choice.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Categorical columns can be passed directly to CatBoost, and its ordered target statistics handle their encoding inside training.
- Ordered boosting is built into training and is designed to reduce prediction shift. The explicit regularization settings are separate controls that can be tuned on top of it.
- The L2 leaf penalty, learning-rate shrinkage, depth and leaf-size limits, subsampling, and random-strength each act on a different part of the fit, so the regularization can be matched to the source of overfitting.
- Symmetric trees give the fitted model a regular, uniform tree structure.
- Early stopping on a validation fold chooses the number of trees from the data rather than fixing the ensemble size in advance.
Applications
- Click-through rate and conversion prediction in online advertising with high-cardinality categorical features.
- Credit risk scoring and loan default prediction on mixed tabular financial data.
- Demand forecasting and price elasticity modeling in retail and e-commerce.
- Medical diagnosis and patient stratification on clinical tabular records.
- Fraud detection where class imbalance and noisy labels require careful regularization.
- Kaggle-style competitive machine learning on structured tabular benchmarks.
How it works
How it works
Each tree is built with ordered boosting, as described in the original NeurIPS paper. The residuals used for a training example are computed from a model that depends only on examples earlier in a random ordering, not on the full dataset. This is designed to reduce prediction shift, a form of target leakage in gradient boosting.
Categorical features are converted to numbers during training using ordered target statistics. The target mean of a category for a given row is estimated only from rows that precede it in a random permutation, so no row's own label enters its encoding. This avoids the leakage that simple mean encoding can introduce, and categorical columns generally do not need a separate encoding step before fitting.
At each boosting iteration a symmetric (oblivious) regression tree is fitted to the current pseudo-residuals. The expression in the formula is a schematic regularized objective, not a verbatim statement of the leaf-value estimate CatBoost uses. Here θ denotes the leaf values of the current tree. The L2 term, scaled by the l2-leaf-reg setting, shrinks large leaf values toward zero and smooths the fitted function.
Formula
\mathcal{L}(\theta) = \sum_{i=1}^{n} l(y_i, \hat{y}_i) + \lambda \|\theta\|^2The main regularization parameters are l2-leaf-reg (L2 penalty on leaf values), min-data-in-leaf (minimum number of observations per leaf), depth or leaf-count limits (tree complexity), subsample and colsample (row and feature sampling fractions), and random-strength (noise added when scoring candidate splits). Each limits the fit in a different way. Some of these settings take effect only under particular tree growth options, so confirm in the library documentation that a setting is active before tuning it. Otherwise changing it will have no effect. They are usually tuned together on validation data.
Each new tree's output is multiplied by the learning rate (eta) before it is added to the running prediction, so each tree contributes only part of its fitted value. A smaller learning rate generally requires more trees. The number of iterations is usually chosen by early stopping on a validation fold.
Formula
\hat{y}^{(t)} = \hat{y}^{(t-1)} + \eta \cdot h_t(x)Common pitfalls
- Setting l2-leaf-reg too high flattens the model's response and causes underfitting.
- Omitting early stopping leaves the number of trees unchosen, which can leave test error inflated through either too few or too many trees.
- Not fixing the random seed produces runs that differ between executions, which can look like differences in optimal hyperparameters.
- Keeping the default depth on a small dataset without comparing shallower trees on validation data. Tree depth is an important regularization lever and should be tested rather than assumed.
- One-hot or label encoding categorical columns before passing them to CatBoost, which discards its ordered target-statistic encoding.
- Ignoring class imbalance in classification tasks. Use class_weights or scale_pos_weight to correct label skew.
Frequently asked questions
How does Regularized CatBoost differ from plain CatBoost?
There is no separate algorithm. The term refers to CatBoost with its regularization parameters set deliberately. Plain CatBoost already includes structural controls such as ordered boosting and symmetric trees. Explicit tuning of l2-leaf-reg, depth, min-data-in-leaf, subsampling, and learning rate adds penalty and complexity limits, which matters most when those structural controls alone do not prevent overfitting on the data at hand.
Which regularization parameter matters most?
l2-leaf-reg (L2 penalty on leaf values) and the learning rate (eta, combined with early stopping) usually have the largest effect. Depth and min-data-in-leaf are secondary controls. As a rough starting point, l2-leaf-reg values of 1-10, learning rates around 0.05-0.1, and depth 4-6 are common in practice, but these ranges should be checked by cross-validation on your data.
Do I still need to encode categorical variables before passing them to CatBoost?
No. CatBoost accepts raw categorical columns directly. Pass the column indices or names via the cat_features parameter. Manual one-hot or label encoding is unnecessary. It replaces CatBoost's ordered target-statistic encoding and may reduce performance.
How do I prevent overfitting without explicit regularization parameters?
Use early stopping with a held-out validation set. Set eval_metric and early_stopping_rounds (for example, 50) so that training halts automatically when validation performance stops improving. Early stopping is a primary guard against overfitting and should be used alongside any other regularization settings.
Is GPU training worth using for Regularized CatBoost?
It can be, for large datasets. CatBoost offers a GPU implementation, but the speed-up depends on data and hardware, so it should be measured on your own workload. For small datasets, CPU training is often sufficient.
Related methods
Sources
Prokhorenkova, L., Gusev, G., Vorobev, A., Dorogush, A. V., & Gulin, A. (2018). CatBoost: unbiased boosting with categorical features. Advances in Neural Information Processing Systems, 31.
Open publication referenceDorogush, A. V., Ershov, V., & Gulin, A. (2018). CatBoost: gradient boosting with categorical features support. arXiv preprint arXiv:1810.11363.
Open publication reference