Suppose several banks use the same scoring system to evaluate credit applicants. Each bank audits the scores assigned to different demographic groups and finds little or no disparity. Can we conclude that the scoring system is similarly balanced across the entire population?
Not necessarily. In fact, every bank may pass its local audit while a substantial disparity emerges when all applicants are considered together. The problem is not necessarily a poor statistical estimate: local and global audits can measure fundamentally different things.
This is the starting point of our recent paper, Federated Measurement of Demographic Disparities from Quantile Sketches, with Agathe Fernandes Machado, Olivier Côté, and François Hu, to appear in Transactions on Machine Learning Research. We ask a practical question: can we measure population-wide demographic disparities when the relevant score data are held by separate organizations and cannot be pooled?
A simple paradox: fair within each institution, unequal overall
Consider two institutions and two demographic groups, A and B. Institution 1 assigns everyone the score 0.2; institution 2 assigns everyone the score 0.8. Within either institution, the score distributions are identical for both groups. Any local score-level demographic-parity audit therefore reports zero disparity.
But the groups are not equally distributed across institutions:
- 90% of group A is in institution 1, and 10% in institution 2.
- 10% of group B is in institution 1, and 90% in institution 2.
Consequently, 90% of group A receives a score of 0.2, whereas 90% of group B receives a score of 0.8. The two population-wide score distributions are quite different, even though each institution is perfectly balanced internally.
Writing \nu_{j,s} for the score distribution of group s inside institution j, the population distribution is
\nu_s = \sum_{j=1}^{d}\pi_{j\mid s}\,\nu_{j,s},\qquad \pi_{j\mid s}=\mathbb{P}(A=j\mid S=s).The weights depend on the demographic group. That is the entire source of the paradox: combining locally identical comparisons does not necessarily produce identical global distributions. It is a distributional version of Simpson’s paradox.
In our two-institution example, with equally sized demographic groups, the squared Wasserstein distance between the global score distributions is W_2^2(\nu_A,\nu_B)=0.288. The population disparity measure introduced below is U_2=0.072, although both local disparities are exactly zero.
Measuring disparity between distributions
What should we measure when comparing scores? Looking only at the difference in average scores can conceal important discrepancies in spread, tails, or ranking. We instead compare the entire score distributions.
In one dimension, the squared Wasserstein distance has an especially useful representation in terms of quantile functions:
W_2^2(\nu,\mu)=\int_0^1\bigl(Q_\nu(u)-Q_\mu(u)\bigr)^2\,du.One can think of this as comparing the scores of individuals at the same relative position in their respective distributions: the 10th percentile with the 10th percentile, the median with the median, and so on.
To accommodate more than two demographic groups, we use a Wasserstein-Fréchet variance:
U_2=\inf_{\nu}\sum_{s\in\mathcal S}\alpha_s W_2^2(\nu_s,\nu),\qquad \alpha_s=\mathbb P(S=s).The reference distribution minimizing this expression is the Wasserstein barycenter. Importantly, U_2=0 precisely when all demographic groups have the same score distribution (assuming each group has positive population weight). For two groups the formula simplifies to
U_2=\alpha_A\alpha_B\,W_2^2(\nu_A,\nu_B).This is a measure of score-level demographic parity, not a universal definition of fairness. Depending on the decision problem, calibration, error rates, and other criteria may be equally or more relevant.
A federated audit with just a few quantiles
If an auditor had access to everyone’s scores, estimating the distributions \nu_s would be straightforward. But raw records may be scattered across banks, insurers, hospitals, agencies, or jurisdictions, and centralizing them may be impossible or undesirable.
Our proposal is to exchange small distributional summaries rather than individual observations. For each demographic group, each institution sends two things: its subgroup count and k empirical score quantiles, evaluated at the midpoint levels
u_\ell=\frac{\ell-1/2}{k},\qquad \ell=1,\ldots,k.The central auditor then (i) turns each local collection of quantiles into an approximate cumulative distribution function; (ii) mixes these local distributions using the group-specific institutional weights; and (iii) reconstructs the global group quantiles, from which the Wasserstein disparity can be calculated.
One detail is essential: we cannot simply average local quantiles. In general,
Q_{\sum_j\pi_{j\mid s}\nu_{j,s}}(u)\neq\sum_j\pi_{j\mid s}Q_{j,s}(u).The right-hand side describes a transport barycenter across institutions; the left-hand side is the quantile of the actual population mixture. The audit must reconstruct the mixture first and take its quantiles second.
Only one communication round is needed. With 51 institutions, two demographic groups, and 50 quantiles per group, the protocol transmits 51\times2\times(50+1)=5{,}202 numerical values in total, instead of a much larger collection of individual scores.
There is also a statistical trade-off. More quantiles improve the approximation, but require more communication and sufficiently large local subgroups. Under the regularity conditions established in the paper, the estimation error obeys the order
\bigl|\widehat G_{k,2}-U_2\bigr|=O_{\mathbb P}\!\left(\frac{1}{k}+\sqrt{\frac{\log k}{n_{\min}}}\right),where n_{\min} is the smallest nonempty institution-group cell size. This formalizes the balance between sketch resolution and sampling uncertainty; the clean rate requires regularity assumptions and should not be applied uncritically to small or discrete subgroups.
Can we understand why local and global audits disagree?
Estimating a global disparity is one task. Understanding where the local-global mismatch comes from is another.
For squared Wasserstein distance in one dimension, our framework yields the exact identity
U_2=V_{\mathrm{mix}}+V_{\mathrm{bar}}+R.Here V_{\mathrm{mix}} measures the gap between the actual population mixtures and the Wasserstein barycenters of local group distributions. The term V_{\mathrm{bar}} measures how far the within-group transport barycenters are from the global barycenter. Finally, R is an interaction term, which can be positive or negative; it should not be dismissed as a small residual.
For our two-institution example, the three terms are V_{\mathrm{mix}}=0.0324, V_{\mathrm{bar}}=0.0756, and R=-0.0360, giving U_2=0.072. The negative interaction means that two sources of discrepancy partially offset each other.
This is a geometric diagnostic, not a causal attribution. Nevertheless, it helps distinguish an aggregation issue from persistent differences in transport-averaged score profiles.
What happens with real data?
We investigate this question using synthetic data, COMPAS recidivism scores, and ACSIncome, supplemented by robustness checks on Adult and Law. In the ACSIncome application, the institutions are actual geographic silos: the 50 US states and Puerto Rico. A logistic model produces a predicted probability of annual income exceeding $50,000, and we audit its score distributions across demographic groups.
The local state-level disparities vary substantially. They can fall on either side of the disparity computed from all individuals together. The federated quantile estimate, however, closely reproduces the centralized benchmark without transmitting individual scores.
A separate ACSIncome experiment considers two, three, and four racial groups over a common set of 47 state silos. With 50 quantiles per group and state, the relative reconstruction errors are 0.70%, 0.55%, and 0.48%, respectively. The procedure is therefore not limited to binary comparisons.
We also test what happens when the same ACSIncome observations are deliberately reassigned to artificial silos according to score-related mechanisms. In one controlled experiment, simply averaging local audit values understates the global disparity: its median relative error reaches 16.11% for the White/Black audit and 25.46% for the male/female audit. With 50 quantiles, the corresponding median errors of the federated estimator are 0.75% and 0.76%. These reassigned silos are a stress test, not a claim about the real institutional structure of the data.


What this does (and does not) solve
The proposed method does not train a fair model or correct an unfair one. It addresses a prior problem: measuring the right population-level quantity despite fragmented data. A global score disparity does not by itself tell us whether to change the model, the data, the decision threshold, or the fairness criterion.
Nor should the protocol be mistaken for a formal privacy guarantee. Quantiles and subgroup counts reveal less than raw microdata, but they can still disclose information, especially in small cells. Real deployments may require minimum cell sizes, suppression, secure aggregation, or differentially private mechanisms.
The approach also relies on the particularly convenient geometry of one-dimensional scores. Multivariate predictions would require a different representation. And score-level demographic parity is only one lens through which to examine algorithmic fairness.
The broader lesson is simple: fairness is not automatically preserved by aggregation – nor can population-wide fairness be inferred from a collection of local fairness scores. If the target of an audit is the population, we must reconstruct the relevant population distributions. Fortunately, for one-dimensional scores, a relatively small number of carefully chosen quantiles can go a long way.
Research paper: Arthur Charpentier, Agathe Fernandes Machado, Olivier Côté, and François Hu (2026), Federated Measurement of Demographic Disparities from Quantile Sketches, Transactions on Machine Learning Research (November 2026). OpenReview.












