On the Challenges of Using Black-Box APIs for Toxicity Evaluation in Research

Luiza Pozzobon, Beyza Ermis, Patrick Lewis, Sara Hooker
4/24/2023
cs.CLcs.AI

No official code found. Best implementation: Cohere-Labs-Community/black-box-api-challenges (8 stars, MIT, last commit 2023-05-11).

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. Code and data are available at https://github.com/for-ai/black-box-api-challenges.

View on arXivView PDF

Code Implementations(1)

MIT
80Python, Jupyter NotebookApr 17, 20233 years agoMIT

Similar Papers

Cite this paper

@article{pozzobon2023challenges,
  title  = {On the Challenges of Using Black-Box APIs for Toxicity Evaluation in Research},
  author = {Luiza Pozzobon and Beyza Ermis and Patrick Lewis and Sara Hooker},
  year   = {2023},
  eprint = {2304.12397},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.12397v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.12397.svg)](https://codeofpaper.com/paper/2304.12397)

Discussion