Encoding categorical data: Is there yet anything 'hotter' than one-hot encoding?
Not on the map. Why?
Abstract (arXiv)
Categorical features are present in about 40% of real world problems, highlighting the crucial role of encoding as a preprocessing component. Some recent studies have reported benefits of the various target-based encoders over classical target-agnostic approaches. However, these claims are not supported by any statistical analysis, and are based on a single dataset or a very small and heterogeneous sample of datasets. The present study explores the encoding effects in an exhaustive sample of classification problems from OpenML repository. We fitted linear mixed-effects models to the experimental data, treating task ID as a random effect, and the encoding scheme and the various characteristics of categorical features as fixed effects. We found that in multiclass tasks, one-hot encoding and Helmert contrast coding outperform target-based encoders. In binary tasks, there were no significant differences across the encoding schemes; however, one-hot encoding demonstrated a marginally positive effect on the outcome. Importantly, we found no significant interactions between the encoding schemes and the characteristics of categorical features. This suggests that our findings are generalizable to a wide variety of problems across domains.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 7 of its 25 references that are in the map. First posted on arXiv 28 Dec 2023.
Builds on
7 of 25 references.
References · 7
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
- 2014OpenML: networked science in machine learningcited by 526
- 2019An Open Source AutoML Benchmarkcited by 85
- 2019Encoding high-cardinality string categorical variablescited by 23
- 2021Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality featurescited by 21
- 2022Fairness Implications of Encoding Protected Categorical Attributescited by 7
- 2021Evaluating categorical encoding methods on a real credit card fraud detection databasecited by 3
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025TabRep: Training Tabular Diffusion Models with a Simple and Effective Continuous Representationcited by 5
- 2026EVNextTrade: Learning-to-Rank-Based Recommendation of Next Charging Nodes for EV-EV Energy Tradingcited by 1
- 2026CLeAN: Continual Learning Adaptive Normalization in Dynamic Environmentscited by 0
- 2026CLeAN: Continual Learning Adaptive Normalization in Dynamic Environments18 Mar 2026
- 2026EVNextTrade: Learning-to-Rank-Based Recommendation of Next Charging Nodes for EV-EV Energy Trading14 Mar 2026
- 2025TabRep: Training Tabular Diffusion Models with a Simple and Effective Continuous Representation7 Apr 2025