Watching the AI Watchdogs: A Fairness and Robustness Analysis of AI Safety Moderation Classifiers

Akshit Achara, Anshuman Chhabra

Abstract

AI Safety Moderation (ASM) classifiers are designed to moderate content on social media platforms and to serve as guardrails that prevent Large Language Models (LLMs) from being fine-tuned on unsafe inputs. Owing to their potential for disparate impact, it is crucial to ensure that these classifiers: (1) do not unfairly classify content belonging to users from minority groups as unsafe compared to those from majority groups and (2) that their behavior remains robust and consistent across similar inputs. In this work, we thus examine the fairness and robustness of four widely-used, closed-source ASM classifiers: OpenAI Moderation API, Perspective API, Google Cloud Natural Language (GCNL) API, and Clarifai API. We assess fairness using metrics such as demographic parity and conditional statistical parity, comparing their performance against ASM models and a fair-only baseline. Additionally, we analyze robustness by testing the classifiers’ sensitivity to small and natural input perturbations. Our findings reveal potential fairness and robustness gaps, highlighting the need to mitigate these issues in future versions of these models.

Introduction

AI Safety Moderation (ASM) classifiers act as the "invisible janitors" of the digital age. They perform two vital functions: filtering harmful content on social platforms and serving as guardrails to prevent Large Language Models (LLMs) from being fine-tuned on toxic data. However, as proprietary "black box" models, their internal biases and vulnerabilities are often poorly understood. This study provides a systematic audit of four major commercial ASM APIs—OpenAI, Perspective, Google Cloud, and Clarifai—revealing significant fairness gaps and robustness vulnerabilities that could unfairly silence minority voices or allow harmful content to bypass safety filters.

Methodology

The research evaluated the OpenAI Moderation API, Perspective API, Google Cloud Natural Language (GCNL) API, and Clarifai API across two primary dimensions:

  1. Fairness Analysis: The study utilized Demographic Parity (DP) to check for equal probability of "unsafe" labels across groups, and Conditional Statistical Parity (CSP) to control for legitimate factors like sentiment polarity. This ensured comparisons were made between comments of similar intent (e.g., negative comments about different genders).
  2. Robustness Testing: The models were tested against minimal perturbations, including Backtranslation (English to German and back) and LLM-based Paraphrasing using GPT-3.5-Turbo, to see if safety labels could be easily flipped.

Datasets

Two main sources were used: the Jigsaw Toxicity Dataset, containing Wikipedia comments with identity markers, and Reddit-Ideology, a new dataset of 1,147 comments from politically polarized subreddits annotated for political leaning.

Results and Discussion

Fairness Gaps and Identity Bias

A primary finding was the consistent bias against specific identity groups. Across nearly all models, the highest fairness errors occurred in the Sexual Orientation category of the Jigsaw dataset. Classifiers frequently misidentified safe content related to LGBTQ+ identities as "unsafe."

Comparison of Demographic Parity (DP) and Conditional Statistical Parity (CSP) across different sensitive attributes for the four evaluated ASM classifiers.

OpenAI’s Moderation API exhibited the largest fairness gap, showing significantly higher DP and CSP errors than its competitors. Conversely, while Google’s GCNL API appeared the most "fair" by these metrics, it was also the most aggressive, labeling a much higher proportion of comments as unsafe overall, suggesting that fairness can sometimes be a byproduct of over-censorship.

Robustness Vulnerabilities

The study revealed that ASM guardrails can be bypassed using simple paraphrasing. By swapping offensive terms with "softer" alternatives that retain the original harmful intent, unsafe comments were frequently reclassified as safe. OpenAI’s model was particularly sensitive, with a 20.09% change in predictions on gender-related data after LLM-based paraphrasing.

Example of how minor phrasing changes regarding mental health can flip an ASM classifier's safety prediction from unsafe to safe.

In qualitative tests, nearly 10% of harmful inputs from Jigsaw and 16% from Reddit became "harmless" to the classifiers after minimal rewriting, despite retaining their original toxic meaning. This highlights a significant vulnerability in using these APIs as reliable safety guardrails for LLM training.

Conclusion

This analysis highlights critical shortcomings in the current generation of commercial ASM classifiers. While they serve as necessary tools for safety, their susceptibility to identity bias—particularly regarding sexual orientation—and their lack of robustness against simple paraphrasing pose risks to both fair moderation and model safety. Future work should focus on intersectional fairness and expanding these audits to multimodal and multilingual contexts to ensure that AI safety tools do not inadvertently marginalize the very communities they are meant to protect.

Summary updated

BibTeX
@inproceedings{achara2025watching,
  author = {Akshit Achara and Anshuman Chhabra},
  title = {{Watching the AI Watchdogs: A Fairness and Robustness Analysis of AI Safety Moderation Classifiers}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=uTo7JJA6Ka},
}
Figure