Exposing the Illusion of Fairness: Auditing Vulnerabilities to Distributional Manipulation Attacks

Valentin Lafargue, Adriana Laurindo Monteiro, Emmanuelle Claeys, Laurent Risser, Jean-Michel Loubes

TL;DR

AI fairness audits can be systematically gamed. This paper demonstrates how a malicious entity can manipulate a data sample to satisfy regulatory fairness metrics while remaining statistically indistinguishable from the original biased distribution. However, the authors also offer a silver lining: increasing the required audit sample size drastically reduces the space for these stealthy "fairwashing" attacks.

What Problem Does This Paper Address?

With the rise of sweeping regulations like the EU AI Act, companies are increasingly required to audit their high-risk AI models for discriminatory bias. Typically, an auditee (the company) provides a subset of its dataset to an auditor to evaluate global fairness metrics, such as the Disparate Impact (DI) ratio. To ensure the company didn't just cherry-pick a clean sample, a supervisory authority might run statistical tests to check if the provided sample is truly "representative" of the company's full data distribution.

This paper exposes a critical vulnerability in this pipeline: Can a malicious auditee mathematically engineer a sample that simultaneously satisfies fairness constraints and passes representativeness checks? The authors formalize this threat as a constrained distributional projection task, mapping out the exact boundaries of how AI providers can create an illusion of fairness.

Methods

The authors approach fairwashing from an optimization perspective, simulating a malicious actor trying to find a modified distribution $Q_t$ that maximizes fairness while minimizing the distributional shift from the true data $Q_n$. They introduce two main mathematically grounded manipulation strategies:

  1. Entropic Projections: This method minimizes the Kullback–Leibler (KL) divergence relative to the true distribution while forcing the sample to meet a specific fairness threshold. It essentially reweights existing data points.
  2. Optimal Transport (Monge-Kantorovich) Projections: This approach minimizes the Wasserstein distance, shifting the actual feature values of individuals to satisfy the fairness criteria. The authors develop several variants, including a gradient-guided method (Grad) and a 1D-transport variant to keep continuous variables within realistic bounds.

To make these attacks practical when an auditor only has access to model outputs rather than the model itself, they introduce Replace (an iterative algorithm that selectively swaps labels and sensitive attributes) and Constrained Matching ($M_{W(X,S,\hat{Y})}$), which pairs label manipulation with minimal feature displacements.

On the defense side, the authors evaluate a suite of statistical tests based on distributional distances—including Kolmogorov-Smirnov (KS), Maximum Mean Discrepancy (MMD), KL divergence, and Wasserstein distance—to see which ones can successfully detect these manipulated samples.

Datasets

The authors evaluated their methods across seven standard tabular benchmarks frequently used in bias detection:

  • Adult Census Income: Predicting whether an individual's income exceeds \$50k (sensitive attribute: Sex).
  • Folktables (5 variants): Modernized census datasets tracking Income (INC), Mobility (MOB), Employment (EMP), Travel Time to Work (TRA), and Public System Coverage (PUC).
  • Bank Account Fraud (BAF): A highly imbalanced fraud detection dataset (sensitive attribute: Age).

The baseline fairness characteristics of these datasets are outlined in the paper's text:

Table 1: Dataset presentation, protected variable (S) associated, and original Disparate Impact (DI)

Key Insights and Ideas

  • The Geometry-Probability Blindspot: Fairwashing methods optimized to minimize Wasserstein distance (a geometric metric) are easily caught by KL divergence tests (a probabilistic metric), and vice versa. This means auditors cannot rely on a single statistical test; they must combine complementary distance metrics to catch sophisticated manipulators.
  • The Power of Constrained Matching: The $M_{W(X,S,\hat{Y})}$ method consistently achieved the best trade-off for attackers. By subtly shifting both features and labels, it creates a highly compliant dataset that easily evades detection.
  • Sample Size is the Ultimate Defense: The most practical takeaway for regulators is that the size of the audited sample matters immensely. When the auditee only has to provide a small sample (e.g., 10% of the dataset), the mathematical "slack" allows them to fake fairness easily. As the required sample size increases to 20% or more, the window for undetected manipulation shrinks dramatically.

Key Results

The experiments show that when auditing a small sample size (10%), malicious actors can drastically inflate fairness metrics without triggering any of the seven statistical defense tests.

For example, on the Adult dataset, the true Disparate Impact ratio is a heavily biased 0.30. Using the Constrained Matching method, an attacker can fake a much fairer DI of 0.54 completely undetected. Remarkably, on the BAF dataset, the DI was boosted from an unfair 0.35 to a perfectly fair 1.0 without failing a single representativeness test.

Fig. 1: Highest undetected achievable Disparate Impact for 7 dataset samplings (10%) across all fair-washing methods. Samples are considered manipulated if they fail a single statistical test for distributional equivalence (KL divergence (KL), Wasserstein distance (W), Kolmogorov–Smirnov (KS) or Maximum Mean Discrepancy (MMD) at a 95% confidence level).

Conversely, "Grad" methods that directly warp individual feature characteristics using neural network gradients were easily flagged by the supervisory authority's tests, making them unviable for stealthy attacks.

Limitations and Future Work

While highly comprehensive for tabular data, the paper primarily focuses on global fairness metrics like Disparate Impact (though they briefly demonstrate an extension to Equality of Odds in the appendix). Additionally, while the authors show in the appendix that their framework can extend to image data (using latent spaces of models like ResNet on the CelebA dataset), the core methodology is optimized for tabular settings.

Future work remains open for extending these explicit distributional projections to unstructured text data—such as manipulating large language model prompt distributions—and exploring settings where the auditee has zero knowledge of the auditor's specific detection protocol.

Summary updated

Abstract

The rapid deployment of AI systems in high-stakes domains, including those classified as high-risk under the The EU AI Act (Regulation (EU) 2024/1689), has intensified the need for reliable compliance auditing. For binary classifiers, regulatory risk assessment often relies on global fairness metrics such as the Disparate Impact ratio, widely used to evaluate potential discrimination. In typical auditing settings, the auditee provides a subset of its dataset to an auditor, while a supervisory authority may verify whether this subset is representative of the full underlying distribution. In this work, we investigate to what extent a malicious auditee can construct a fairness-compliant yet representative-looking sample from a non-compliant original distribution, thereby creating an illusion of fairness. We formalize this problem as a constrained distributional projection task and introduce mathematically grounded manipulation strategies based on entropic and optimal transport projections. These constructions characterize the minimal distributional shift required to satisfy fairness constraints. To counter such attacks, we formalize representativeness through distributional distance based statistical tests and systematically evaluate their ability to detect manipulated samples. Our analysis highlights the conditions under which fairness manipulation can remain statistically undetected and provides practical guidelines for strengthening supervisory verification. We validate our theoretical findings through experiments on standard tabular datasets for bias detection. Code is publicly available at https://github.com/ValentinLafargue/Inspection.
BibTeX
@misc{lafargue2025exposing,
  author = {Valentin Lafargue and Adriana Laurindo Monteiro and Emmanuelle Claeys and Laurent Risser and Jean-Michel Loubes},
  title = {{Exposing the Illusion of Fairness: Auditing Vulnerabilities to Distributional Manipulation Attacks}},
  year = {2025},
  eprint = {2507.20708},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.20708},
}
Figure