NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Encoding Matters: Impact of Categorical Variable Encoding on Performance and Bias

Daniel Kopp, Benjamin Maudet, Lisheng Sun-Hosoya, Kristin P. Bennett2025

Abstract

Encoding categorical variables impacts model performance and can introduce bias in supervised learning, particularly affecting fairness when some groups are under-represented.We analyze the effects of different encoding methods on synthetic and real datasets to mitigate unintended model reliance on specific variables.We propose CaVaR (Categorical Variable Reliance) to quantify model reliance on variables and an Availability Index to measure CaVaR's sensitivity to partial encoding changes.A high Availability Disparity, measured by the standard deviation of the Availability Index across encodings, highlights potential bias from mixed encodings.The results suggest encoding all categorical variables uniformly, regardless of their ordinal or nominal nature, may reduce bias, with the choice guided by computational and performance considerations.
BibTeX
@misc{kopp2025encoding,
  author = {Daniel Kopp and Benjamin Maudet and Lisheng Sun-Hosoya and Kristin P. Bennett},
  title = {{Encoding Matters: Impact of Categorical Variable Encoding on Performance and Bias}},
  year = {2025},
  doi = {10.14428/esann/2025.es2025-191},
}

Loading related content...

Figure