Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality features
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
- 2014OpenML: networked science in machine learningcited by 523
- 2015ranger: A Fast Implementation of Random Forests for High Dimensional Data in C++ and Rcited by 171
- 2016Entity Embeddings of Categorical Variablescited by 85
- 2018Hyperparameters and Tuning Strategies for Random Forestcited by 83
- 2018Beyond One-hot Encoding: lower dimensional target embeddingcited by 42
- 2018Similarity encoding for learning with dirty categorical variablescited by 28
- 2019Encoding high-cardinality string categorical variablescited by 22
- 2017liquidSVM: A Fast and Versatile SVM packagecited by 7
- 2018Automatic Gradient Boostingcited by 6
Built on by
Citing papers per year: 2021: 2; 2022: 4; 2023: 5; 2024: 5; 2025: 2; 2026: 2.
20 papers.
Sort:
- 2021Hyperparameter Optimization: Foundations, Algorithms, Best Practices and Open Challengescited by 143
- 2022Simplifying Polylogarithms with Machine Learningcited by 14
- 2022Fairness Implications of Encoding Protected Categorical Attributescited by 7
- 2023Machine Learning with High-Cardinality Categorical Features in Actuarial Applicationscited by 7
- 2023A benchmark of categorical encoders for binary classificationcited by 5
- 2022Lessons from the AdKDD'21 Privacy-Preserving ML Challengecited by 4
- 2023Encoding categorical data: Is there yet anything 'hotter' than one-hot encoding?cited by 3
- 2024Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Taskscited by 2
- 2024Enabling Mixed Effects Neural Networks for Diverse, Clustered Data Using Monte Carlo Methodscited by 2
- 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detectioncited by 2
- 2023T-COL: Generating Counterfactual Explanations for General User Preferences on Variable Machine Learning Systemscited by 1
- 2024Predicting loss-of-function impact of genetic mutations: a machine learning approachcited by 1
8 more
- 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
- 2021WildWood: a new Random Forest algorithmcited by 0
- 2022Introducing explainable supervised machine learning into interactive feedback loops for statistical production systemcited by 0
- 2023Using Machine Learning Methods for Automation of Size Grid Building and Managementcited by 0
- 2024Methodology for an Analysis of Influencing Factors on 3D Object Detection Performancecited by 0
- 2025Scalable Krylov Subspace Methods for Generalized Mixed-Effects Models with Crossed Random Effectscited by 0
- 2025SG-XDEAT: Sparsity-Guided Cross-Dimensional and Cross-Encoding Attention with Target-Aware Conditioning in Tabular Learningcited by 0
- 2026Robustness of AutoML on Dirty Categorical Datacited by 0
- 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detection1 Jul 2026
- 2026Robustness of AutoML on Dirty Categorical Data31 Jan 2026
- 2025SG-XDEAT: Sparsity-Guided Cross-Dimensional and Cross-Encoding Attention with Target-Aware Conditioning in Tabular Learning14 Oct 2025
- 2025Scalable Krylov Subspace Methods for Generalized Mixed-Effects Models with Crossed Random Effects14 May 2025
- 2024Methodology for an Analysis of Influencing Factors on 3D Object Detection Performance13 Nov 2024
- 2024Enabling Mixed Effects Neural Networks for Diverse, Clustered Data Using Monte Carlo Methods1 Jul 2024
- 2024Comparative Analysis of Data Preprocessing Methods, Feature Selection Techniques and Machine Learning Models for Improved Classification and Regression Performance on Imbalanced Genetic Data22 Feb 2024
- 2024Predicting loss-of-function impact of genetic mutations: a machine learning approach26 Jan 2024
- 2024Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Tasks18 Jan 2024
- 2023Encoding categorical data: Is there yet anything 'hotter' than one-hot encoding?28 Dec 2023
- 2023T-COL: Generating Counterfactual Explanations for General User Preferences on Variable Machine Learning Systems28 Sep 2023
- 2023A benchmark of categorical encoders for binary classification17 Jul 2023
8 more
- 2023Using Machine Learning Methods for Automation of Size Grid Building and Management16 Jun 2023
- 2023Machine Learning with High-Cardinality Categorical Features in Actuarial Applications30 Jan 2023
- 2022Simplifying Polylogarithms with Machine Learning8 Jun 2022
- 2022Introducing explainable supervised machine learning into interactive feedback loops for statistical production system7 Feb 2022
- 2022Lessons from the AdKDD'21 Privacy-Preserving ML Challenge31 Jan 2022
- 2022Fairness Implications of Encoding Protected Categorical Attributes27 Jan 2022
- 2021WildWood: a new Random Forest algorithm16 Sep 2021
- 2021Hyperparameter Optimization: Foundations, Algorithms, Best Practices and Open Challenges13 Jul 2021
- 2021Hyperparameter Optimization: Foundations, Algorithms, Best Practices and Open Challengescited by 143
- 2022Simplifying Polylogarithms with Machine Learningcited by 14
- 2022Fairness Implications of Encoding Protected Categorical Attributescited by 7
- 2023Machine Learning with High-Cardinality Categorical Features in Actuarial Applicationscited by 7
- 2023A benchmark of categorical encoders for binary classificationcited by 5
- 2022Lessons from the AdKDD'21 Privacy-Preserving ML Challengecited by 4
- 2023Encoding categorical data: Is there yet anything 'hotter' than one-hot encoding?cited by 3
- 2024Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Taskscited by 2
- 2024Enabling Mixed Effects Neural Networks for Diverse, Clustered Data Using Monte Carlo Methodscited by 2
- 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detectioncited by 2
- 2023T-COL: Generating Counterfactual Explanations for General User Preferences on Variable Machine Learning Systemscited by 1
- 2024Predicting loss-of-function impact of genetic mutations: a machine learning approachcited by 1
12 most cited of 20 All 20 (JSON)
- 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detection1 Jul 2026
- 2026Robustness of AutoML on Dirty Categorical Data31 Jan 2026
- 2025SG-XDEAT: Sparsity-Guided Cross-Dimensional and Cross-Encoding Attention with Target-Aware Conditioning in Tabular Learning14 Oct 2025
- 2025Scalable Krylov Subspace Methods for Generalized Mixed-Effects Models with Crossed Random Effects14 May 2025
- 2024Methodology for an Analysis of Influencing Factors on 3D Object Detection Performance13 Nov 2024
- 2024Enabling Mixed Effects Neural Networks for Diverse, Clustered Data Using Monte Carlo Methods1 Jul 2024
- 2024Comparative Analysis of Data Preprocessing Methods, Feature Selection Techniques and Machine Learning Models for Improved Classification and Regression Performance on Imbalanced Genetic Data22 Feb 2024
- 2024Predicting loss-of-function impact of genetic mutations: a machine learning approach26 Jan 2024
- 2024Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Tasks18 Jan 2024
- 2023Encoding categorical data: Is there yet anything 'hotter' than one-hot encoding?28 Dec 2023
- 2023T-COL: Generating Counterfactual Explanations for General User Preferences on Variable Machine Learning Systems28 Sep 2023
- 2023A benchmark of categorical encoders for binary classification17 Jul 2023
12 newest of 20 All 20 (JSON)