Encoding Matters: Impact of Categorical Variable Encoding on Performance and Bias
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.
Authors
- Kristin P. Bennett (ORCID: https://orcid.org/0000-0002-8782-105X)
- Lisheng Sun-Hosoya (ORCID: https://orcid.org/0000-0002-5335-1547)
- Daniel Kopp
- Benjamin Maudet
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.14428/esann/2025.es2025-191
- Citations
- 1
- Primary Topic
- Language, Metaphor, and Cognition
- Type
- article
- Field-Weighted Citation Impact
- 2.12
Funders
- Agence Nationale de la Recherche