AI
New Algorithm Tackles Bias in Data Discretization to Ensure Fairer Group Representation
Researchers propose methods to discretize continuous features into buckets while maintaining equitable distribution across demographic groups.
When preparing datasets for sharing or analysis, a common practice involves converting continuous numerical features into discrete buckets—a process known as binning. However, researchers have identified a significant problem: this discretization step can inadvertently introduce bias and worsen unfairness in machine learning models trained on the data afterward.
The Core Problem#
Binning may seem straightforward, but it carries hidden consequences. The way boundaries are drawn between buckets can systematically disadvantage certain demographic groups, particularly when group membership correlates with the underlying feature values. A team of computer scientists has now formally addressed this challenge by proposing the unbiased binning problem: given a feature to discretize, find the discretization closest to equal-size buckets that ensures group parity—meaning each bucket maintains proportionally balanced representation across all groups.
The Solution Framework#
The researchers developed an elegant theoretical foundation showing that any unbiased binning must select its bucket boundaries from a small candidate set. This insight enabled them to build an efficient dynamic programming algorithm that searches only within these candidates, avoiding the exponential explosion of possible boundary combinations.
However, perfect fairness sometimes demands an unacceptable cost. In real-world scenarios where groups follow fundamentally different distributions, strict unbiased binning may be impossible or require extreme distortions. To handle this, the team introduced epsilon-biased binning—a relaxed variant that tolerates small, bounded disparities in group ratios across buckets.
Scaling to Real-World Data#
The team proposed two algorithmic approaches. First, a quadratic-time dynamic programming solution guarantees optimality but struggles with massive datasets. For practical scalability, they developed a local search algorithm built on a divide-and-conquer component that delivers near-optimal solutions in near-linear time. The approach is proven to find a valid solution whenever one exists, making it suitable for production settings where both fairness and computational efficiency matter.

