mlsanityData to 7 Oct 2026

Encoding high-cardinality string categorical variables

arXiv 1907.01860 ↗First posted 3 Jul 2019cs.LG stat.MLcited by 22

Not on the map. Why?

Abstract (arXiv)

Statistical models usually require vector representations of categorical variables, using for instance one-hot encoding. This strategy breaks down when the number of categories grows, as it creates high-dimensional feature vectors. Additionally, for string entries, one-hot encoding does not capture information in their representation.Here, we seek low-dimensional encoding of high-cardinality string categorical variables. Ideally, these should be: scalable to many categories; interpretable to end users; and facilitate statistical analysis. We introduce two encoding approaches for string categories: a Gamma-Poisson matrix factorization on substring counts, and the min-hash encoder, for fast approximation of string similarities. We show that min-hash turns set inclusions into inequality relations that are easier to learn. Both approaches are scalable and streamable. Experiments on real and simulated data show that these methods improve supervised learning with high-cardinality categorical variables. We recommend the following: if scalability is central, the min-hash encoder is the best option as it does not require any data fit; if interpretability is important, the Gamma-Poisson factorization is the best alternative, as it can be interpreted as one-hot encoding on inferred categories with informative feature names. Both models enable autoML on the original string entries as they remove the need for feature engineering or data cleaning.

Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Jul 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

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

22 papers.

Sort:

  1. 2024CARTE: Pretraining and Transfer for Tabular Learningcited by 69
  2. 2021Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality featurescited by 20
  3. 2025Table Foundation Models: on knowledge pre-training for tabular learningcited by 15
  4. 2025TabSTAR: A Tabular Foundation Model for Tabular Data with Text Fieldscited by 15
  5. 2024Automated data processing and feature engineering for deep learning and big data applications: a surveycited by 14
  6. 2022Fairness Implications of Encoding Protected Categorical Attributescited by 7
  7. 2023Vectorizing string entries for data processing on tables: when are larger language models better?cited by 6
  8. 2023A benchmark of categorical encoders for binary classificationcited by 5
  9. 2023Encoding categorical data: Is there yet anything 'hotter' than one-hot encoding?cited by 3
  10. 2024Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Taskscited by 2
  11. 2025Counterfactual Situation Testing: From Single to Multidimensional Discriminationcited by 2
  12. 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detectioncited by 2
10 more
  1. 2022Predicting Treatment Adherence of Tuberculosis Patients at Scalecited by 1
  2. 2021From Strings to Data Science: a Practical Framework for Automated String Handlingcited by 0
  3. 2022URANUS: Radio Frequency Tracking, Classification and Identification of Unmanned Aircraft Vehiclescited by 0
  4. 2022Progressive Feature Upgrade in Semi-supervised Learning on Tabular Domaincited by 0
  5. 2023Categorising Products in an Online Marketplace: An Ensemble Approachcited by 0
  6. 2023Predicting delays in Indian lower courts using AutoML and Decision Forestscited by 0
  7. 2024CAVIAR: Categorical-Variable Embeddings for Accurate and Robust Inferencecited by 0
  8. 2024CLAMS: A System for Zero-Shot Model Selection for Clusteringcited by 0
  9. 2026Robustness of AutoML on Dirty Categorical Datacited by 0
  10. 2026Enhancing the KidSat Model: Integrating Geographical Encoding and Data Quality Assessment for Childhood Poverty Predictioncited by 0