Introduction
Gradient Boosted Decision Trees (GBDTs) are the standard for predictive modeling on tabular data. However, existing implementations like XGBoost and LightGBM face two significant challenges: the efficient handling of categorical features and the prevention of "prediction shift"—a form of gradient bias that leads to overfitting. CatBoost, developed by Yandex, introduces novel algorithmic improvements to address these issues directly, resulting in state-of-the-art accuracy and inference speed.
Addressing Gradient Bias and Categorical Leakage
Standard GBDT methods often struggle with categorical data, requiring manual preprocessing like one-hot encoding or target encoding. Target encoding, while effective, often introduces data leakage because the target value of an instance is used to calculate its own feature value. Furthermore, using the same data points to estimate gradients and build trees leads to biased models that overfit the training set.
CatBoost solves these problems through two primary innovations:
- Ordered Target Statistics (TS): To process categorical features without leakage, CatBoost uses a random permutation of the dataset. For any given instance, the categorical statistic is calculated using only the instances that precede it in the permutation. This ensures that the model never "peeks" at the target value of the current instance during feature calculation.
- Ordered Boosting: To combat gradient bias, CatBoost employs a permutation-based approach for the boosting process itself. By maintaining multiple internal models trained on different subsets, it provides unbiased gradient estimates for the remaining data points, significantly improving generalization.
Methodology
Beyond its core algorithmic changes, CatBoost utilizes Oblivious Trees (symmetric trees). In these trees, the same splitting criterion is applied across an entire level. This structure serves as a natural regularizer and allows the model to be compiled into highly efficient lookup tables, enabling extremely fast inference on CPUs.
Additionally, CatBoost automatically constructs Feature Combinations. During training, it greedily combines categorical features (e.g., "User ID" and "Ad ID") to capture complex interactions that would otherwise require manual feature engineering.
Experimental Results
The authors evaluated CatBoost against industry baselines (XGBoost, LightGBM, and H2O) across eight public datasets, including Adult, Amazon, and Kddchurn.
Predictive Quality
CatBoost consistently outperformed all competitors in terms of Logloss. As shown in the table below, CatBoost achieved the best results on every tested dataset, often by a substantial margin compared to the next best model.
Efficiency and Speed
CatBoost is not only more accurate but also highly efficient. In terms of learning curves, CatBoost reaches higher AUC (Area Under the Curve) values in less time than its competitors.
Furthermore, the implementation is optimized for modern hardware. Its GPU training algorithm is significantly faster than CPU-based training, particularly on massive datasets like Criteo. For inference, the oblivious tree structure allows CatBoost's CPU scorer to be 25x to 60x faster than other GBDT libraries.
Conclusion
CatBoost represents a significant advancement in gradient boosting. By introducing Ordered Target Statistics and Ordered Boosting, it effectively eliminates common sources of overfitting in tabular data modeling. While the "Ordered Boosting" scheme is more computationally intensive during training (roughly 2-3 times slower than classic boosting), the gains in predictive quality and the massive leap in inference speed make it a powerful tool for production environments.
Summary updated