On the relevance of APIs facing fairwashed audits

Jade Garcia Bourrée, Erwan Le Merrer, Gilles Trédan, Benoît RottembourgarXiv 2023 · DOI

Abstract

As AI models increasingly influence critical life outcomes, regulatory mandates for audit APIs have emerged. However, these APIs are vulnerable to "fairwashing"—strategic manipulation where a platform provides "fairer" results to auditors than to actual users. This paper proposes the Two-Source Audit Model (2SAM), which cross-references a platform's audit API with its public-facing interface using statistical data proxies to detect such deception.

Introduction

Algorithmic decision-making systems are now central to sensitive domains like recruitment and credit scoring. To ensure fairness, regulations such as the EU's Digital Services Act require platforms to provide Application Programming Interfaces (APIs) for independent auditing. However, a significant loophole exists: fairwashing. A platform can detect auditor queries and return artificially "fair" results while maintaining biased models in production. Standard black-box audits fail here because they lack visibility into the platform's internal state. This research introduces a framework to make audits resilient to such strategic manipulation.

The Two-Source Audit Model (2SAM)

The proposed Two-Source Audit Model (2SAM) shifts the auditor's reliance from a single, potentially compromised API to a dual-source approach:

  1. Source A (The Audit API): A feature-rich interface provided specifically for auditors, which may be "fairwashed."
  2. Source B (The User Interface): The public-facing web portal used by regular users. This is considered "trusted" as the platform cannot easily manipulate it without degrading its core business utility.
Conceptual framework of the Two-Source Audit Model (2SAM) comparing an audit API with a public web interface.

Because public interfaces often provide less granular data (e.g., showing names but not gender), the auditor employs Data Proxies—statistical predictors used to infer missing attributes from Source B. By comparing decisions from Source A against proxied decisions from Source B, the auditor performs a consistency check. If discrepancies exceed the expected error rate of the proxy, fairwashing is statistically confirmed.

Experimental Validation

The framework was tested using the UCI "Census Income" (Adult) dataset. To simulate a realistic scenario, the researchers added first names to profiles and used a proxy to infer gender from name endings (achieving ~91% accuracy). This setup mimics an auditor who lacks direct gender data on a public portal but can infer it statistically.

Key Results and Insights

The study reveals a critical "manipulation threshold." In a simulated moneylending scenario, the platform had to manipulate at least 12% of its API responses to successfully mask its gender bias and meet the common "80% rule" for Disparate Impact.

Disparate Impact (mu) as a function of the percentage of manipulated API answers (gamma), showing the threshold required to reach the fair zone (Z=1).

Key findings include:

  • Detection Probability: With a 91% accurate proxy and a budget of 100 queries, the 2SAM framework achieved a 76% probability of detecting a platform fairwashing at a 10% rate.
  • Auditor's Trade-off: Auditors must strategically allocate their query budget between Source A (measuring fairness) and Source B (detecting fraud). The paper identifies a Pareto-optimal frontier for this allocation.
  • Robustness: Even with "noisy" or imperfect proxies, the 2SAM approach effectively flags inconsistencies that single-source audits would overlook.

Conclusion and Future Work

The 2SAM framework demonstrates that perfect internal access is not required to catch deceptive platforms; statistical inconsistency between official and public behavior is a powerful detection tool. Future work will explore hybrid fairwashing strategies and the challenges of finding relevant proxies in more complex domains. Regulators can support these efforts by ensuring public interfaces remain accessible for automated auditing and by facilitating the development of high-quality data proxies.

Summary updated

BibTeX
@misc{bourree2023relevance,
  author = {Jade Garcia Bourrée and Erwan Le Merrer and Gilles Trédan and Benoît Rottembourg},
  title = {{On the relevance of APIs facing fairwashed audits}},
  year = {2023},
  eprint = {2305.13883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.13883},
}
Figure