Cauchy-Schwarz Fairness Regularizer

Yezi Liu, Hanning Chen, Wenjun Huang, Yang Ni, Mohsen Imani · Submission to ICLR 2025 · Rejected

TL;DR

Standard fairness regularizers often fix one fairness metric (like Demographic Parity) only to severely degrade another (like Equal Opportunity). This paper introduces the Cauchy-Schwarz (CS) fairness regularizer, a plug-and-play in-processing penalty based on the Cauchy-Schwarz divergence that aligns prediction distributions across demographic groups. By providing tighter theoretical error bounds than KL divergence and acting as a scale-normalized cosine metric in kernel space, CS achieves state-of-the-art balance between Demographic Parity and Equal Opportunity with minimal accuracy trade-offs.

What Problem Does This Paper Address?

In fair machine learning, practitioners often encounter conflicting definitions of group fairness:

  • Demographic Parity (DP): The probability of receiving a positive outcome should be identical across demographic groups ($P(\hat{Y}=1 \mid S=0) = P(\hat{Y}=1 \mid S=1)$).
  • Equal Opportunity (EO): True positive rates should be identical across groups ($P(\hat{Y}=1 \mid Y=1, S=0) = P(\hat{Y}=1 \mid Y=1, S=1)$).

Most in-processing debiasing methods add a fairness penalty to the loss function using gap parity (mean difference), Kullback-Leibler (KL) divergence, or Maximum Mean Discrepancy (MMD). However, optimizing purely for mean differences or using loose divergence bounds often creates an "over-correction" problem: models achieve low DP disparity while drastically worsening EO. For example, standard DP regularizers can align the mean predictions for males and females overall, but within the positive class ($Y=1$), the subgroup prediction distributions remain widely separated.

Methods

The authors introduce the Cauchy-Schwarz (CS) fairness regularizer, which minimizes the empirical CS divergence between the model's prediction distributions across sensitive attributes:

$$D_{\text{CS}}(p; q) = -\log \left( \frac{\left( \int p(x)q(x)\,dx \right)^2}{\int p(x)^2\,dx \int q(x)^2\,dx} \right)$$

The overall training objective combines task utility, fairness, and weight decay:

$$\min_{\theta} \mathcal{L}_{\text{BCE}} + \alpha \tilde{D}_{\text{CS}}(P, Q) + \frac{\beta}{2}\|\theta\|_2^2$$

where $P = P(\hat{Y} \mid S=0)$ and $Q = P(\hat{Y} \mid S=1)$, and $\tilde{D}_{\text{CS}}$ is estimated empirically via Gaussian kernel density estimators (KDE).

Why Cauchy-Schwarz Divergence?

  1. Cosine vs. Euclidean Geometry (CS vs. MMD): While MMD measures the Euclidean distance between mean embeddings in a Reproducing Kernel Hilbert Space (RKHS), CS divergence measures their cosine distance (the angle between distributions): $$\tilde{D}_{\text{CS}}(p; q) = -2 \log \frac{\langle \mu_p, \mu_q \rangle_{\mathcal{H}}}{\|\mu_p\|_{\mathcal{H}} \|\mu_q\|_{\mathcal{H}}}$$ This normalization prevents the regularizer from overestimating discrepancy when feature embeddings have significantly different scales or variances.

  2. Tighter Error Bounds: The authors prove that for $d$-variate Gaussian distributions, CS divergence is strictly upper-bounded by KL divergence ($D_{\text{CS}}(p; q) \le D_{\text{KL}}(p; q)$).

  3. Distribution Shape Alignment: Unlike DP gap regularizers that only match first-order moments (means), CS divergence aligns the entire continuous prediction distributions.

Datasets

The authors evaluate their regularizer on five standard benchmarks spanning tabular and image domains:

  • Tabular:
  • Adult (Census income, 45,222 samples)
  • COMPAS (Recidivism risk, 6,172 samples)
  • ACS-Income (ACS-I) (195,665 samples)
  • ACS-Travel Time (ACS-T) (172,508 samples)
  • Sensitive attributes evaluated: Gender and Race.
  • Vision:
  • CelebA-A (202,599 celebrity face images using a ResNet-18 backbone)
  • Task: "Attractive" binary classification.
  • Sensitive attributes evaluated: Gender and "Young".

Key Insights and Ideas

  • Mean matching fails the distribution: Two distributions can have identical means while having completely disjoint probability densities. Direct DP penalties collapse means together but allow conditional densities for the positive class ($Y=1$) to diverge drastically, destroying EO.
  • Scale invariance matters for representations: MMD is sensitive to arbitrary scaling and variance disparities across sensitive subsets. By computing an angular (cosine) distance in RKHS, the CS regularizer is self-normalizing and robust to variance discrepancies.
  • Better Pareto frontier: As accuracy increases, baseline methods (like PR and DP) experience an abrupt degradation in fairness. The CS regularizer maintains low DP and EO disparities much higher up the accuracy curve before dropping off.

Key Results

Compared against standard baselines—Demographic Parity penalty (DP), Maximum Mean Discrepancy (MMD), Hilbert-Schmidt Independence Criterion (HSIC), and Prejudice Remover (PR)—the CS regularizer demonstrated:

  • Simultaneous DP and EO Mitigation:
  • On Adult (Gender), the unconstrained MLP has $\Delta_{\text{DP}} = 16.52\%$ and $\Delta_{\text{EO}} = 8.43\%$. Baseline DP reduced $\Delta_{\text{DP}}$ to $1.29\%$, but drastically degraded $\Delta_{\text{EO}}$ to $20.15\%$ (a 139% worse disparity). In contrast, CS reduced $\Delta_{\text{DP}}$ to $2.13\%$ while improving $\Delta_{\text{EO}}$ to $2.35\%$ (a 72.12% improvement).
  • Similar results appeared on ACS-I (Gender): DP, MMD, HSIC, and PR all worsened $\Delta_{\text{EO}}$ by 113%–152%, whereas CS reduced $\Delta_{\text{EO}}$ by 63.85%.
  • Computer Vision (CelebA-A):
  • For the sensitive attribute Young, CS cut $\Delta_{\text{DP}}$ by 97.36% and $\Delta_{\text{EO}}$ by 98.58% compared to the unconstrained ResNet baseline.
  • Minimal Utility Penalty: Across tabular datasets, CS caused less than a 3.1% reduction in accuracy and under 2.2% drop in AUC (in fact slightly improving AUC on Adult Gender by +0.02% and Adult Race by +0.58%).

Limitations and Future Work

  • Computational Complexity: Kernel density estimation over mini-batches requires pairwise kernel evaluations ($O(N^2)$ scaling per batch), which may become computationally heavy for very large batch sizes.
  • Binary Assumption: While the authors note the framework theoretically extends to multi-class outcomes and multi-category sensitive attributes, experimental evaluations were limited to binary classification and binary sensitive attributes.
  • Sensitivity to $\alpha$: Hyperparameter sensitivity analysis showed that fairness is sensitive to the regularizer weight $\alpha$; setting it too high ($\alpha \ge 0.1$) leads to a steep decline in fairness performance.
  • Scope of Fairness: The paper evaluates group fairness metrics ($\Delta_{\text{DP}}$ and $\Delta_{\text{EO}}$) and does not investigate individual or counterfactual fairness guarantees.

Summary updated

BibTeX
@misc{liu2025cauchy,
  author = {Yezi Liu and Hanning Chen and Wenjun Huang and Yang Ni and Mohsen Imani},
  title = {{Cauchy-Schwarz Fairness Regularizer}},
  year = {2025},
  eprint = {2512.09467},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.09467},
}
Figure