Limitations of Pinned AUC for Measuring Unintended Bias

Daniel Borkan, Lucas Dixon, John Li, Jeffrey Sorensen, Nithum Thain, Lucy VassermanarXiv 2019

Introduction

In the development of content moderation systems, "unintended bias" occurs when a machine learning model assigns higher toxicity scores to comments simply because they mention specific identity groups (e.g., "gay," "Muslim," "black"), regardless of the actual sentiment or intent. To quantify this without relying on arbitrary toxicity thresholds, researchers previously adopted Pinned AUC. This metric evaluates model performance on a "pinned" dataset composed of examples from a specific identity subgroup and a general background distribution.

While Pinned AUC was initially validated on balanced synthetic datasets, this paper demonstrates a critical flaw: the metric is highly sensitive to class imbalances. In real-world data, where the ratio of toxic to non-toxic examples varies significantly across groups, Pinned AUC can provide misleading results, potentially masking bias or creating the illusion of model improvement.

The Mechanics of the "Pinning Trap"

Standard ROC-AUC is typically resilient to class imbalance. However, the process of "pinning"—merging a subgroup with a background set—destroys this property. By decomposing the Pinned AUC formula using the Mann-Whitney U statistic, the authors show that the metric is actually a weighted average of four distinct AUC components: subgroup-only, background-only, and two cross-comparisons.

The weights in this average are directly tied to the number of positive and negative examples in the subgroup. Consequently, the relative size of the "toxic" vs. "non-toxic" pools in the subgroup dictates the final score, conflating the model's inherent performance with the underlying data distribution.

Figure 1: Score distributions showing how Pinned AUC fluctuates based on the ratio of toxic to non-toxic examples in a subgroup, even when the model's underlying behavior is constant.

As seen in the figure above, when the subgroup distribution shifts from balanced (A) to more toxic (B), the Pinned AUC artificially increases from 0.94 to 0.97. Conversely, a shift toward more non-toxic examples (C) drops the score to 0.90, despite the model's scoring behavior remaining identical across all three scenarios.

Empirical Stress-Testing

To validate these findings, the authors tested two versions of the Perspective API toxicity classifier: an older, biased version (TOXICITY@1) and a newer, mitigated version (TOXICITY@6). They compared performance on a standard balanced synthetic dataset against a "skewed" version where 50% of the non-toxic examples for the identity term "gay" were removed, creating a 66% toxic / 34% non-toxic split.

Key Results

The empirical results confirm the mathematical prediction of bias erasure. On the original balanced data, the TOXICITY@1 model had a Pinned AUC of 0.87 for the term "gay." After skewing the data to be more toxic, the Pinned AUC jumped to 0.91.

Figure 5: Comparison of Pinned AUC scores between the original balanced test set and a skewed set, highlighting the artificial 'improvement' for the 'gay' subgroup.

This 0.04 "improvement" occurred without any changes to the model itself. In a real-world monitoring scenario, a researcher might mistakenly conclude that bias had been mitigated, when in fact they were simply observing a change in the data distribution. Notably, the table shows that other identity terms remained stable because their distributions were not manipulated, isolating the effect to the skewed "gay" subgroup.

Conclusion and Recommendations

The sensitivity of Pinned AUC to class skew makes it an unreliable metric for measuring unintended bias in non-synthetic environments. The authors argue that bias is too complex to be captured by a single number and advocate for the use of more nuanced, distribution-robust metrics. Specifically, they recommend decomposing bias into metrics like BPSN AUC (Background-Positive, Subgroup-Negative) and BNSP AUC (Background-Negative, Subgroup-Positive), which separately measure different types of errors and provide a more accurate picture of how a model treats marginalized groups.

Summary updated

Abstract

This report examines the Pinned AUC metric introduced and highlights some of its limitations. Pinned AUC provides a threshold-agnostic measure of unintended bias in a classification model, inspired by the ROC-AUC metric. However, as we highlight in this report, there are ways that the metric can obscure different kinds of unintended biases when the underlying class distributions on which bias is being measured are not carefully controlled.
BibTeX
@misc{borkan2019limitations,
  author = {Daniel Borkan and Lucas Dixon and John Li and Jeffrey Sorensen and Nithum Thain and Lucy Vasserman},
  title = {{Limitations of Pinned AUC for Measuring Unintended Bias}},
  year = {2019},
  eprint = {1903.02088},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.02088},
}
Figure