Secure and Confidential Certificates of Online Fairness

Olive Franzese, Ali Shahin Shamsabadi, Carter Luck, Hamed Haddadi

Introduction

In the "black-box service model," machine learning providers offer predictions to clients while keeping their proprietary models and the clients' sensitive data strictly confidential. While this secrecy is essential for protecting intellectual property and user privacy, it creates a significant hurdle for accountability: how can third-party auditors verify that a model is not biased against specific demographic groups?

Historically, solutions have relied on offline certificates, where a provider proves their model is fair on a static, pre-approved dataset. However, this approach suffers from two fatal flaws:

  1. Distribution Shift: A model deemed fair on historical data (e.g., last year's census) might exhibit bias when processing real-world, present-day data.
  2. Audit Gaming: A malicious provider could deploy a "fair" model during the audit phase but switch to a biased, potentially more profitable model during actual deployment.

While cryptographic tools like Zero-Knowledge Proofs (ZKPs) can theoretically verify properties of hidden data, they have traditionally been too computationally expensive to handle the millions of queries processed by modern neural networks.

The OATH Framework

To address these challenges, researchers introduce OATH (Online Fairness Certification), a framework that shifts the audit from static datasets to the live deployment stream. OATH allows ML providers to prove their models are fair on real-world deployment data without revealing proprietary models or sensitive client information.

OATH Architecture and the shift from offline to online fairness auditing.

The protocol operates in two distinct phases:

  • Service Phase (Online): When a client queries the model, they receive a prediction and simultaneously send a cryptographic "receipt" (a commitment) to an auditor. By decoupling the client from heavy cryptographic lifting, this phase adds negligible latency (as low as 0.23 seconds), making it "deployably efficient."
  • Audit Phase (Offline/Periodic): The service provider and the auditor interact using ZKPs to verify the fairness of the aggregated queries.

The core innovation of OATH is its "cut-and-choose" style protocol. Group fairness is fundamentally a statistical property. Instead of using expensive ZKPs to verify every single inference—which would take years for large models—the provider proves the overall fairness metric across all queries. To ensure honesty, the auditor challenges the provider to prove the validity of a small, randomly sampled subset of those queries. This statistical approach provides a high-probability guarantee of fairness while drastically reducing the computational burden. Furthermore, the protocol includes a blame attribution mechanism to identify exactly who is at fault if an audit fails, preventing malicious actors from intentionally disrupting the process.

Experimental Results

The researchers evaluated OATH using five standard fairness benchmarking datasets: COMPAS (recidivism), Communities and Crime, Default Credit, Adult Income, and German Credit. They tested various architectures, scaling up to massive models like ResNet-101 (42.5 million parameters).

Key Findings: * Massive Speedups: Compared to baselines that cryptographically verify every query, OATH is orders of magnitude faster. For large models, it provides at least a 1000x runtime improvement. * Practicality for Deep Learning: On a ResNet-101 model, OATH achieves an amortized runtime of just 4.4 seconds per query. * Robust Security: Theoretical bounds demonstrate that the probability of a provider successfully "cheating" the audit by a meaningful margin decreases exponentially as the number of sampled queries increases.

Limitations and Future Work

While OATH represents a massive leap forward for confidential auditing, some challenges remain. The "consistency check"—converting commitments to ZKP-friendly formats—remains a bottleneck, meaning very large models like LLMs may require further optimizations in ZKP primitives. Additionally, the current security model assumes no collusion; "Sybil attacks," where a provider generates fake "fair" clients to dilute bias, require external identity verification to mitigate. Finally, while OATH currently focuses on group fairness metrics like Demographic Parity and Equalized Odds, future work could extend this statistical framework to other critical properties such as interpretability, robustness, or calibration.

Summary updated

BibTeX
@inproceedings{franzese2025secure,
  author = {Olive Franzese and Ali Shahin Shamsabadi and Carter Luck and Hamed Haddadi},
  title = {{Secure and Confidential Certificates of Online Fairness}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=9jaQTx1O8T},
}
Figure