Similarity encoding for learning with dirty categorical variables
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
Citing papers per year: 2021: 5; 2022: 6; 2023: 3; 2024: 5; 2025: 2; 2026: 7.
28 papers.
Sort:
- 2021Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality featurescited by 20
- 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
- 2022Hybrid Parameter Search and Dynamic Model Selection for Mixed-Variable Bayesian Optimizationcited by 4
- 2023FedECA: Federated External Control Arms for Causal Inference with Time-To-Event Data in Distributed Settingscited by 2
- 2024Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Taskscited by 2
- 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detectioncited by 2
- 2021On Clustering Categories of Categorical Predictors in Generalized Linear Modelscited by 1
- 2021ptype-cat: Inferring the Type and Values of Categorical Variablescited by 1
- 2022Identifying Substitute and Complementary Products for Assortment Optimization with Cleora Embeddingscited by 1
- 2022Predicting Treatment Adherence of Tuberculosis Patients at Scalecited by 1
16 more
- 2024Tabular Learning: Encoding for Entity and Context Embeddingscited by 1
- 2025Using Text-Based Life Trajectories from Swedish Register Data to Predict Residential Mobility with Pretrained Transformerscited by 1
- 2026C2TC: A Training-Free Framework for Efficient Tabular Data Condensationcited by 1
- 2021Holmes: An Efficient and Lightweight Semantic Based Anomalous Email Detectorcited by 0
- 2021From Strings to Data Science: a Practical Framework for Automated String Handlingcited by 0
- 2022Performance Comparison of Simple Transformer and Res-CNN-BiLSTM for Cyberbullying Classificationcited by 0
- 2022Progressive Feature Upgrade in Semi-supervised Learning on Tabular Domaincited by 0
- 2024From Data to Decisions: The Transformational Power of Machine Learning in Business Recommendationscited by 0
- 2024YZS-model: A Predictive Model for Organic Drug Solubility Based on Graph Convolutional Networks and Transformer-Attentioncited by 0
- 2024CLAMS: A System for Zero-Shot Model Selection for Clusteringcited by 0
- 2025Data-driven Trust Bootstrapping for Mobile Edge Computing-based Industrial IoT Servicescited by 0
- 2026Robustness of AutoML on Dirty Categorical Datacited by 0
- 2026Non-linear PCA via Evolution Strategies: a Novel Objective Functioncited by 0
- 2026FlexTab: A Flexible Encoder-Decoder Architecture for In-Context Learning Across Diverse Tabular Taskscited by 0
- 2026Enhancing the KidSat Model: Integrating Geographical Encoding and Data Quality Assessment for Childhood Poverty Predictioncited by 0
- 2026An Embarrassingly Simple Rule-based Visiting Circulation Approach to Trip Destination Predictioncited by 0
- 2026An Embarrassingly Simple Rule-based Visiting Circulation Approach to Trip Destination Prediction28 Jul 2026
- 2026Enhancing the KidSat Model: Integrating Geographical Encoding and Data Quality Assessment for Childhood Poverty Prediction9 Jul 2026
- 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detection1 Jul 2026
- 2026FlexTab: A Flexible Encoder-Decoder Architecture for In-Context Learning Across Diverse Tabular Tasks29 Jun 2026
- 2026C2TC: A Training-Free Framework for Efficient Tabular Data Condensation25 Feb 2026
- 2026Non-linear PCA via Evolution Strategies: a Novel Objective Function3 Feb 2026
- 2026Robustness of AutoML on Dirty Categorical Data31 Jan 2026
- 2025Using Text-Based Life Trajectories from Swedish Register Data to Predict Residential Mobility with Pretrained Transformers26 Nov 2025
- 2025Data-driven Trust Bootstrapping for Mobile Edge Computing-based Industrial IoT Services18 Aug 2025
- 2024CLAMS: A System for Zero-Shot Model Selection for Clustering15 Jul 2024
- 2024YZS-model: A Predictive Model for Organic Drug Solubility Based on Graph Convolutional Networks and Transformer-Attention27 Jun 2024
- 2024Tabular Learning: Encoding for Entity and Context Embeddings28 Mar 2024
16 more
- 2024From Data to Decisions: The Transformational Power of Machine Learning in Business Recommendations12 Feb 2024
- 2024Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Tasks18 Jan 2024
- 2023FedECA: Federated External Control Arms for Causal Inference with Time-To-Event Data in Distributed Settings28 Nov 2023
- 2023A benchmark of categorical encoders for binary classification17 Jul 2023
- 2023Machine Learning with High-Cardinality Categorical Features in Actuarial Applications30 Jan 2023
- 2022Progressive Feature Upgrade in Semi-supervised Learning on Tabular Domain1 Dec 2022
- 2022Predicting Treatment Adherence of Tuberculosis Patients at Scale5 Nov 2022
- 2022Identifying Substitute and Complementary Products for Assortment Optimization with Cleora Embeddings10 Aug 2022
- 2022Performance Comparison of Simple Transformer and Res-CNN-BiLSTM for Cyberbullying Classification5 Jun 2022
- 2022Hybrid Parameter Search and Dynamic Model Selection for Mixed-Variable Bayesian Optimization3 Jun 2022
- 2022Fairness Implications of Encoding Protected Categorical Attributes27 Jan 2022
- 2021ptype-cat: Inferring the Type and Values of Categorical Variables23 Nov 2021
- 2021From Strings to Data Science: a Practical Framework for Automated String Handling2 Nov 2021
- 2021On Clustering Categories of Categorical Predictors in Generalized Linear Models19 Oct 2021
- 2021Holmes: An Efficient and Lightweight Semantic Based Anomalous Email Detector16 Apr 2021
- 2021Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality features1 Apr 2021
- 2021Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality featurescited by 20
- 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
- 2022Hybrid Parameter Search and Dynamic Model Selection for Mixed-Variable Bayesian Optimizationcited by 4
- 2023FedECA: Federated External Control Arms for Causal Inference with Time-To-Event Data in Distributed Settingscited by 2
- 2024Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Taskscited by 2
- 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detectioncited by 2
- 2021On Clustering Categories of Categorical Predictors in Generalized Linear Modelscited by 1
- 2021ptype-cat: Inferring the Type and Values of Categorical Variablescited by 1
- 2022Identifying Substitute and Complementary Products for Assortment Optimization with Cleora Embeddingscited by 1
- 2022Predicting Treatment Adherence of Tuberculosis Patients at Scalecited by 1
12 most cited of 28 All 28 (JSON)
- 2026An Embarrassingly Simple Rule-based Visiting Circulation Approach to Trip Destination Prediction28 Jul 2026
- 2026Enhancing the KidSat Model: Integrating Geographical Encoding and Data Quality Assessment for Childhood Poverty Prediction9 Jul 2026
- 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detection1 Jul 2026
- 2026FlexTab: A Flexible Encoder-Decoder Architecture for In-Context Learning Across Diverse Tabular Tasks29 Jun 2026
- 2026C2TC: A Training-Free Framework for Efficient Tabular Data Condensation25 Feb 2026
- 2026Non-linear PCA via Evolution Strategies: a Novel Objective Function3 Feb 2026
- 2026Robustness of AutoML on Dirty Categorical Data31 Jan 2026
- 2025Using Text-Based Life Trajectories from Swedish Register Data to Predict Residential Mobility with Pretrained Transformers26 Nov 2025
- 2025Data-driven Trust Bootstrapping for Mobile Edge Computing-based Industrial IoT Services18 Aug 2025
- 2024CLAMS: A System for Zero-Shot Model Selection for Clustering15 Jul 2024
- 2024YZS-model: A Predictive Model for Organic Drug Solubility Based on Graph Convolutional Networks and Transformer-Attention27 Jun 2024
- 2024Tabular Learning: Encoding for Entity and Context Embeddings28 Mar 2024
12 newest of 28 All 28 (JSON)