Demographic-Agnostic Fairness without Harm

Zhongteng Cai, Mohammad Mahdi Khalili, Xueru ZhangarXiv 2025

Abstract

As machine learning (ML) algorithms are increasingly used in social domains to make predictions about humans, there is a growing concern that these algorithms may exhibit biases against certain social groups. Numerous notions of fairness have been proposed in the literature to measure the unfairness of ML. Among them, one class that receives the most attention is parity-based, i.e., achieving fairness by equalizing treatment or outcomes for different social groups. However, achieving parity-based fairness often comes at the cost of lowering model accuracy and is undesirable for many high-stakes domains like healthcare. To avoid inferior accuracy, a line of research focuses on preference-based fairness, under which any group of individuals would experience the highest accuracy and collectively prefer the ML outcomes assigned to them if they were given the choice between various sets of outcomes. However, these works assume individual demographic information is known and fully accessible during training. In this paper, we relax this requirement and propose a novel demographic-agnostic fairness without harm (DAFH) optimization algorithm, which jointly learns a group classifier that partitions the population into multiple groups and a set of decoupled classifiers associated with these groups. Theoretically, we conduct sample complexity analysis and show that our method can outperform the baselines when demographic information is known and used to train decoupled classifiers. Experiments on both synthetic and real data validate the proposed method.

Introduction

The deployment of machine learning in sensitive social domains—such as credit scoring, recidivism prediction, and healthcare—has highlighted the risk of algorithmic bias. Traditional fairness interventions often rely on parity-based metrics, which seek to equalize performance (e.g., error rates) across demographic groups. However, this approach frequently leads to a "fairness-accuracy trade-off," where the model's overall utility is intentionally degraded to match the performance of the least-advantaged group. In high-stakes environments, this "harm" is ethically and practically problematic.

Preference-based fairness (or "fairness without harm") offers a compelling alternative: it ensures that every group receives a model that performs better for them than a single, universal model. Despite its promise, existing preference-based methods require explicit access to sensitive demographic labels (e.g., race, gender) during training. In practice, such labels are often unavailable due to privacy regulations like HIPAA or legal constraints.

Methodology: The DAFH Framework

To address these challenges, we introduce the Demographic-Agnostic Fairness without Harm (DAFH) algorithm. DAFH does not require pre-defined demographic labels. Instead, it jointly optimizes two components:

  1. A Group Classifier ($\theta$): This model partitions the population into $K$ latent groups based on available non-sensitive features.
  2. Decoupled Classifiers ($h_k$): A set of specialized models, each tailored to one of the latent groups.

The optimization objective is rooted in two economic fairness criteria: Rationality (each group's specialized model must be more accurate for them than a pooled model) and Envy-freeness (each group must prefer its assigned model over any other group's model). To make these criteria learnable, the authors derived a differentiable surrogate objective and incorporated a KL-divergence penalty to ensure balanced group sizes.

Comparison of partitioning strategies on synthetic data. DAFH (d) identifies an optimal partition that significantly improves accuracy (94.84%) compared to single-attribute partitions (b, c) or no partition (a).

As illustrated in the synthetic example above, partitioning by a single observed attribute (e.g., $s_1$ or $s_2$) can sometimes yield worse results than no partition at all. DAFH, however, identifies the latent structure of the data to find an optimal partition that maximizes performance for all subgroups.

Experimental Evaluation

We evaluated DAFH across several real-world benchmarks, including the Adult, COMPAS (Arrest & Violent), German Credit, and Bank Marketing datasets. In all experiments, sensitive attributes were hidden from DAFH but provided to baseline methods for comparison.

Key Results

  • Superior Accuracy: On the German credit dataset, DAFH achieved 74.24% accuracy, compared to 65.92% for a "Trivial partition" based on a single known sensitive attribute.
  • Enhanced Fairness: In the Arrest dataset, DAFH reached an 87.05% probability of fairness without harm, outperforming the baseline (78.60%) that had full access to sensitive labels.
  • Latent Group Insights: The algorithm often discovers "better" partitions than human-defined categories by capturing intersectionality. For instance, it can identify unique patterns among specific age-race-gender intersections that a simple demographic split would overlook.
Training progress and demographic composition of latent groups. (a) Probability of fairness without harm and (b) Accuracy improve steadily over training rounds. The heatmaps demonstrate how DAFH partitions the population into groups that capture complex demographic intersections.

Discussion and Conclusion

DAFH demonstrates that demographic-agnostic models can not only match but often exceed the performance and fairness of models trained with explicit sensitive labels. By focusing on improving accuracy for subgroups rather than equalizing it through performance degradation, DAFH bypasses the traditional fairness-accuracy conflict.

While the method relies on features serving as proxies for underlying group structures, its ability to capture intersectional patterns makes it a robust tool for fair ML in privacy-constrained environments. Future work will explore the integration of DAFH with other fairness notions and its application to non-classification tasks like regression or ranking.

Summary updated

BibTeX
@misc{cai2025demographic,
  author = {Zhongteng Cai and Mohammad Mahdi Khalili and Xueru Zhang},
  title = {{Demographic-Agnostic Fairness without Harm}},
  year = {2025},
  eprint = {2509.24077},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.24077},
}
Figure