mlsanityData to 7 Oct 2026

Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality features

arXiv 2104.00629 ↗First posted 1 Apr 2021stat.ML cs.LGcited by 20

Not on the map. Why?

Abstract (arXiv)

Since most machine learning (ML) algorithms are designed for numerical inputs, efficiently encoding categorical variables is a crucial aspect in data analysis. A common problem are high cardinality features, i.e. unordered categorical predictor variables with a high number of levels. We study techniques that yield numeric representations of categorical variables which can then be used in subsequent ML applications. We focus on the impact of these techniques on a subsequent algorithm's predictive performance, and -- if possible -- derive best practices on when to use which technique. We conducted a large-scale benchmark experiment, where we compared different encoding strategies together with five ML algorithms (lasso, random forest, gradient boosting, k-nearest neighbors, support vector machine) using datasets from regression, binary- and multiclass- classification settings. In our study, regularized versions of target encoding (i.e. using target predictions based on the feature levels in the training set as a new numerical feature) consistently provided the best results. Traditionally widely used encodings that make unreasonable assumptions to map levels to integers (e.g. integer encoding) or to reduce the number of levels (possibly based on target information, e.g. leaf encoding) before creating binary indicator variables (one-hot or dummy encoding) were not as effective in comparison.

Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). Builds on 9 of its 54 references that are in the map. First posted on arXiv 1 Apr 2021.

Builds on

9 of 54 references.

References · 9

  1. 2014OpenML: networked science in machine learningcited by 523
  2. 2015ranger: A Fast Implementation of Random Forests for High Dimensional Data in C++ and Rcited by 171
  3. 2016Entity Embeddings of Categorical Variablescited by 85
  4. 2018Hyperparameters and Tuning Strategies for Random Forestcited by 83
  5. 2018Beyond One-hot Encoding: lower dimensional target embeddingcited by 42
  6. 2018Similarity encoding for learning with dirty categorical variablescited by 28
  7. 2019Encoding high-cardinality string categorical variablescited by 22
  8. 2017liquidSVM: A Fast and Versatile SVM packagecited by 7
  9. 2018Automatic Gradient Boostingcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 4; 2023: 5; 2024: 5; 2025: 2; 2026: 2.

20 papers.

Sort:

  1. 2021Hyperparameter Optimization: Foundations, Algorithms, Best Practices and Open Challengescited by 143
  2. 2022Simplifying Polylogarithms with Machine Learningcited by 14
  3. 2022Fairness Implications of Encoding Protected Categorical Attributescited by 7
  4. 2023Machine Learning with High-Cardinality Categorical Features in Actuarial Applicationscited by 7
  5. 2023A benchmark of categorical encoders for binary classificationcited by 5
  6. 2022Lessons from the AdKDD'21 Privacy-Preserving ML Challengecited by 4
  7. 2023Encoding categorical data: Is there yet anything 'hotter' than one-hot encoding?cited by 3
  8. 2024Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Taskscited by 2
  9. 2024Enabling Mixed Effects Neural Networks for Diverse, Clustered Data Using Monte Carlo Methodscited by 2
  10. 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detectioncited by 2
  11. 2023T-COL: Generating Counterfactual Explanations for General User Preferences on Variable Machine Learning Systemscited by 1
  12. 2024Predicting loss-of-function impact of genetic mutations: a machine learning approachcited by 1
8 more
  1. 2024Comparative Analysis of Data Preprocessing Methods, Feature Selection Techniques and Machine Learning Models for Improved Classification and Regression Performance on Imbalanced Genetic Datacited by 1
  2. 2021WildWood: a new Random Forest algorithmcited by 0
  3. 2022Introducing explainable supervised machine learning into interactive feedback loops for statistical production systemcited by 0
  4. 2023Using Machine Learning Methods for Automation of Size Grid Building and Managementcited by 0
  5. 2024Methodology for an Analysis of Influencing Factors on 3D Object Detection Performancecited by 0
  6. 2025Scalable Krylov Subspace Methods for Generalized Mixed-Effects Models with Crossed Random Effectscited by 0
  7. 2025SG-XDEAT: Sparsity-Guided Cross-Dimensional and Cross-Encoding Attention with Target-Aware Conditioning in Tabular Learningcited by 0
  8. 2026Robustness of AutoML on Dirty Categorical Datacited by 0