Audit Me If You Can: Query-Efficient Active Fairness Auditing of Black-Box LLMs
David Hartmann, Lena Pohlmann, Lelia Hanslik, Noah Gießing, Bettina Berendt, Pieter Delobelle
TL;DR
This work tackles the problem of auditing fairness in black-box LLMs under strict query budgets. It introduces BAFA, a bounded active fairness auditing framework that treats auditing as uncertainty estimation over a target metric (such as the difference in ROC AUC, ΔAUC) and uses constrained empirical risk minimisation over a version space of surrogates to produce tight uncertainty intervals. BAFA actively selects queries to shrink the interval width, yielding substantial query-efficiency gains demonstrated in two real-world case studies (CivilComments and Bias-in-Bios) with up to ∼40× fewer queries and improved stability over time. While BAFA offers a practical, independent auditing mechanism for continuous evaluation, it also discusses limitations (surrogate choice, computational intensity) and emphasizes cautious interpretation of uncertainty bounds as operational certificates rather than definitive guarantees of overall safety or fairness.
Abstract
Large Language Models (LLMs) exhibit systematic biases across demographic groups. Auditing is proposed as an accountability tool for black-box LLM applications, but suffers from resource-intensive query access. We conceptualise auditing as uncertainty estimation over a target fairness metric and introduce BAFA, the Bounded Active Fairness Auditor for query-efficient auditing of black-box LLMs. BAFA maintains a version space of surrogate models consistent with queried scores and computes uncertainty intervals for fairness metrics (e.g., $Δ$ AUC) via constrained empirical risk minimisation. Active query selection narrows these intervals to reduce estimation error. We evaluate BAFA on two standard fairness dataset case studies: \textsc{CivilComments} and \textsc{Bias-in-Bios}, comparing against stratified sampling, power sampling, and ablations. BAFA achieves target error thresholds with up to 40$\times$ fewer queries than stratified sampling (e.g., 144 vs 5,956 queries at $\varepsilon=0.02$ for \textsc{CivilComments}) for tight thresholds, demonstrates substantially better performance over time, and shows lower variance across runs. These results suggest that active sampling can reduce resources needed for independent fairness auditing with LLMs, supporting continuous model evaluations.
