Abstract
Perception of toxicity evolves over time and often differs between geographies and cultural backgrounds. Similarly, black-box commercially available APIs for detecting toxicity, such as the Perspective API, are not static, but frequently retrained to address any unattended weaknesses and biases. We evaluate the implications of these changes on the reproducibility of findings that compare the relative merits of models and methods that aim to curb toxicity. Our findings suggest that research that relied on inherited automatic toxicity scores to compare models and techniques may have resulted in inaccurate findings. Rescoring all models from HELM, a widely respected living benchmark, for toxicity with the recent version of the API led to a different ranking of widely used foundation models. We suggest caution in applying apples-to-apples comparisons between studies and lay recommendations for a more structured approach to evaluating toxicity over time.
Introduction
In the effort to develop safer Large Language Models (LLMs), the research community has largely converged on automated metrics to measure "toxicity." Because human annotation is both prohibitively expensive and psychologically taxing for workers, commercial black-box APIs—most notably Google’s Perspective API—have become the de facto gold standard for evaluation.
However, these APIs are not static instruments. To improve accuracy and mitigate internal biases, they are frequently retrained and updated. These updates often occur without public notice or versioning, creating a "moving target" for researchers. This paper investigates how these silent updates impact the reproducibility of NLP research, questioning whether model rankings and reported safety gains remain valid when the underlying metric is constantly shifting.
Methodology
To quantify the impact of API drift, we conducted a large-scale rescoring experiment. We selected several landmark datasets and model outputs that were originally evaluated using older versions of the Perspective API and re-evaluated them using the version available in early 2023. Our analysis focused on three primary areas:
- Distributional Shifts: Measuring how toxicity scores for a standard dataset, RealToxicityPrompts (RTP), changed over a three-year period.
- Benchmark Stability: Analyzing how model rankings within the Holistic Evaluation of Language Models (HELM) benchmark shifted when rescored.
- Research Reproducibility: Determining if the reported effectiveness of toxicity mitigation techniques (such as UDDIA or DExperts) held up when baselines and new methods were evaluated on the same API version.
Key Findings
The "Vanishing" Toxicity
Our most significant observation is that the Perspective API has become substantially more "lenient" over time. When rescoring the RealToxicityPrompts (RTP) dataset, we found a 49% reduction in the number of prompts classified as toxic compared to the original 2020 scores. A prompt labeled as toxic three years ago now has a high probability of being labeled non-toxic, suggesting that the "ruler" used to measure safety has fundamentally changed its scale.
Fragility of Leaderboards
Model rankings are often treated as absolute, yet they prove highly sensitive to API updates. In our rescoring of the HELM benchmark, which includes 37 foundation models, we observed 24 changes in ranking for the "Toxic Fraction" metric. For instance, OpenAI’s text-curie-001 improved its position by 12 places simply by being evaluated with a newer version of the API. This suggests that a model appearing "safer" than another in a 2022 paper might actually appear more toxic if both were re-evaluated today.
The Apples-to-Oranges Trap
It is common practice for researchers to "inherit" scores from previous literature to save time and computational resources. We demonstrate that this practice is fundamentally invalid. For example, when evaluating the UDDIA mitigation technique, the Expected Maximum Toxicity (EMT) score dropped from 33.2% to 23.6% solely due to the API update, not due to any improvement in the model itself. Comparing a 2023 result against a 2021 baseline without rescoring the baseline is an apples-to-oranges comparison that can lead to false claims of state-of-the-art performance.
Semantic Drift
By analyzing word clouds of the shifted scores, we found that the API’s perception of specific identity-related terms (e.g., "black," "white," "sex") has changed significantly. This likely reflects intentional efforts by API maintainers to reduce false-positive toxicity flags for marginalized groups, but it introduces significant variance in longitudinal research.
Recommendations for the Research Community
To address these challenges and restore rigor to toxicity evaluation, we propose the following guidelines:
- API Versioning: We call on API providers to offer pinned, versioned endpoints (e.g.,
v2022-01-01) to ensure researchers can use a consistent metric. - Mandatory Rescoring: Researchers should no longer cite toxicity scores from previous papers. All baselines must be rescored using the exact same API version as the new method being proposed.
- Temporal Transparency: Papers must explicitly report the date and, if available, the version number of the API used for scoring.
- Control Sets: Benchmarks like HELM should implement "control sets"—fixed sequences of text that are rescored periodically to detect and report metric drift to the community.
Conclusion
While black-box APIs provide a necessary service for safety evaluation, their dynamic nature poses a threat to scientific reproducibility. By acknowledging that these metrics are moving targets, the research community can adopt more rigorous standards that ensure safety gains are the result of better models, not just changing metrics.
Summary updated