mlsanityData to 7 Oct 2026

Similarity encoding for learning with dirty categorical variables

arXiv 1806.00979 ↗First posted 4 Jun 2018cs.LG cs.AI stat.MLcited by 28

Not on the map. Why?

Abstract (arXiv)

For statistical learning, categorical variables in a table are usually considered as discrete entities and encoded separately to feature vectors, e.g., with one-hot encoding. "Dirty" non-curated data gives rise to categorical variables with a very high cardinality but redundancy: several categories reflect the same entity. In databases, this issue is typically solved with a deduplication step. We show that a simple approach that exposes the redundancy to the learning algorithm brings significant gains. We study a generalization of one-hot encoding, similarity encoding, that builds feature vectors from similarities across categories. We perform a thorough empirical validation on non-curated tables, a problem seldom studied in machine learning. Results on seven real-world datasets show that similarity encoding brings significant gains in prediction in comparison with known encoding methods for categories or strings, notably one-hot encoding and bag of character n-grams. We draw practical recommendations for encoding dirty categories: 3-gram similarity appears to be a good choice to capture morphological resemblance. For very high-cardinality, dimensionality reduction significantly reduces the computational cost with little loss in performance: random projections or choosing a subset of prototype categories still outperforms classic encoding approaches.

Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Jun 2018.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

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

28 papers.

Sort:

  1. 2021Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality featurescited by 20
  2. 2022Fairness Implications of Encoding Protected Categorical Attributescited by 7
  3. 2023Machine Learning with High-Cardinality Categorical Features in Actuarial Applicationscited by 7
  4. 2023A benchmark of categorical encoders for binary classificationcited by 5
  5. 2022Hybrid Parameter Search and Dynamic Model Selection for Mixed-Variable Bayesian Optimizationcited by 4
  6. 2023FedECA: Federated External Control Arms for Causal Inference with Time-To-Event Data in Distributed Settingscited by 2
  7. 2024Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Taskscited by 2
  8. 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detectioncited by 2
  9. 2021On Clustering Categories of Categorical Predictors in Generalized Linear Modelscited by 1
  10. 2021ptype-cat: Inferring the Type and Values of Categorical Variablescited by 1
  11. 2022Identifying Substitute and Complementary Products for Assortment Optimization with Cleora Embeddingscited by 1
  12. 2022Predicting Treatment Adherence of Tuberculosis Patients at Scalecited by 1
16 more
  1. 2024Tabular Learning: Encoding for Entity and Context Embeddingscited by 1
  2. 2025Using Text-Based Life Trajectories from Swedish Register Data to Predict Residential Mobility with Pretrained Transformerscited by 1
  3. 2026C2TC: A Training-Free Framework for Efficient Tabular Data Condensationcited by 1
  4. 2021Holmes: An Efficient and Lightweight Semantic Based Anomalous Email Detectorcited by 0
  5. 2021From Strings to Data Science: a Practical Framework for Automated String Handlingcited by 0
  6. 2022Performance Comparison of Simple Transformer and Res-CNN-BiLSTM for Cyberbullying Classificationcited by 0
  7. 2022Progressive Feature Upgrade in Semi-supervised Learning on Tabular Domaincited by 0
  8. 2024From Data to Decisions: The Transformational Power of Machine Learning in Business Recommendationscited by 0
  9. 2024YZS-model: A Predictive Model for Organic Drug Solubility Based on Graph Convolutional Networks and Transformer-Attentioncited by 0
  10. 2024CLAMS: A System for Zero-Shot Model Selection for Clusteringcited by 0
  11. 2025Data-driven Trust Bootstrapping for Mobile Edge Computing-based Industrial IoT Servicescited by 0
  12. 2026Robustness of AutoML on Dirty Categorical Datacited by 0
  13. 2026Non-linear PCA via Evolution Strategies: a Novel Objective Functioncited by 0
  14. 2026FlexTab: A Flexible Encoder-Decoder Architecture for In-Context Learning Across Diverse Tabular Taskscited by 0
  15. 2026Enhancing the KidSat Model: Integrating Geographical Encoding and Data Quality Assessment for Childhood Poverty Predictioncited by 0
  16. 2026An Embarrassingly Simple Rule-based Visiting Circulation Approach to Trip Destination Predictioncited by 0