Robustness of AutoML on Dirty Categorical Data

Marcos L. P. Bueno, Joaquin VanschorenarXiv 2026

TL;DR

Automated Machine Learning (AutoML) excels at optimizing pipelines, but it struggles with "dirty" categorical data containing typos, high cardinality, and unstandardized text. This paper introduces a preprocessing pipeline using advanced morphological encoders that prevents AutoML systems from crashing and significantly boosts their predictive accuracy on messy, real-world datasets.

What Problem Does This Paper Address?

Real-world data is rarely pristine. Categorical columns frequently suffer from a lack of curation, resulting in typos, inconsistent acronyms, and massive numbers of unique categories (high cardinality). While modern machine learning has developed specialized "dirty-cat" encoders to handle these morphological variations, standard AutoML frameworks still rely on basic techniques like one-hot or ordinal encoding.

This reliance creates a major bottleneck. One-hot encoding high-cardinality data blows up the feature space, often leading to hardware issues or timeouts, while ordinal encoding introduces an artificial numerical order that degrades model performance. The authors investigate exactly how fragile AutoML systems are when facing dirty data and propose a simple, robust pipeline to fix it.

Methods

The authors propose a two-step preprocessing pipeline that sits directly in front of the AutoML engine (specifically testing with GAMA, a genetic programming-based AutoML tool):

  1. Feature Type Inference: Instead of relying on standard data libraries like pandas (which easily trip over columns with mixed types or varied missing value representations), they use a probabilistic tool called ptype to accurately identify true categorical columns.
  2. Morphological Encoding: They leverage advanced string-based encoders from the dirty-cat library via its SuperVectorizer function. This automatically selects the best encoding strategy based on category cardinality:
  3. Similarity encoding: Computes Jaccard similarity on string n-grams (ideal for low-to-medium cardinality).
  4. Min-hash encoding: A highly scalable approach that approximates string similarity using hashing functions.
  5. Gamma-Poisson (GAP) encoding: A topic modeling approach that extracts latent topics from frequently co-occurring sub-strings.

In this preliminary work, the authors calculate feature importance using a quick Random Forest pass and apply these advanced encoders exclusively to the single most predictive categorical feature, leaving the remaining features for the AutoML tool to handle natively.

Datasets

The approach was evaluated on 7 real-world classification datasets known for their messy, high-cardinality categorical features: Kickstarter, Openpayments, Roadsafety, Trafficviolations, Drugdirectory, Midwest, and Metobjects.

Properties of the dirty datasets used in the evaluation.

Key Insights and Ideas

  • AutoML is surprisingly fragile against raw string messiness: Without help, standard AutoML can completely fail to produce any usable models within reasonable time budgets when faced with high-cardinality dirty data.
  • Sub-word structure contains vital signal: Treating strings as tokens with sub-word similarities (capturing typos or shared roots) preserves much more predictive power than mapping them to arbitrary integers or exploding them into sparse binary columns.
  • Fewer but better pipelines: Interestingly, injecting advanced encoders caused the AutoML tool to evaluate fewer total pipelines during its search. Because the input representation was inherently more robust, the search space became more stable and effective.

Key Results

  • Eliminating Crashes: Out of the box, GAMA completely failed (producing 0 models) on two major datasets: Trafficviolations and Metobjects. When coupled with the proposed morphological encoding pipeline, it successfully completed runs on all 7 datasets.
Baseline performance of GAMA showing failures on Trafficviolations and Metobjects.
  • Accuracy Boosts: On datasets where the baseline AutoML managed to finish, the new pipeline significantly improved accuracy. Most notably, on the Midwest dataset, predictive accuracy jumped from 0.50 to 0.68.

Limitations and Future Work

The primary limitation acknowledged by the authors is that their current pipeline only transforms the single most predictive categorical feature, leaving other dirty columns untouched.

Additionally, the evaluation was restricted to a single AutoML framework (GAMA) on classification tasks. The authors plan to expand future benchmarks to include regression datasets, evaluate performance when encoding all categorical features, and test the pipeline against other prominent AutoML frameworks like auto-sklearn and H2O.

Summary updated

BibTeX
@misc{bueno2026robustness,
  author = {Marcos L. P. Bueno and Joaquin Vanschoren},
  title = {{Robustness of AutoML on Dirty Categorical Data}},
  year = {2026},
  eprint = {2602.00412},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.00412},
}
Figure