On the Challenges of Using Black-Box APIs for Toxicity Evaluation in Research
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 44 papers in the map (data through 7 Oct 2026). Builds on 21 of its 41 references that are in the map. First posted on arXiv 24 Apr 2023.
Builds on
21 of 41 references.
References · 21
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2018Model Cards for Model Reportingcited by 1,068
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 557
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 377
- 2019Racial Bias in Hate Speech and Abusive Language Detection Datasetscited by 208
9 more
- 2022A New Generation of Perspective API: Efficient Multilingual Character-level Transformerscited by 181
- 2021Challenges in Detoxifying Language Modelscited by 169
- 2022Exploring the Limits of Domain-Adaptive Training for Detoxifying Large-Scale Language Modelscited by 67
- 2022Is Your Toxicity My Toxicity? Exploring the Impact of Rater Identity on Toxicity Annotationcited by 67
- 2017Like trainer, like bot? Inheritance of bias in algorithmic content moderationcited by 34
- 2022Unified Detoxifying and Debiasing in Language Generation via Inference-time Adaptive Optimizationcited by 32
- 2022Metadata Archaeology: Unearthing Data Subsets by Leveraging Training Dynamicscited by 26
- 2022Reward Modeling for Mitigating Toxicity in Transformer-based Language Modelscited by 17
- 2018But Who Protects the Moderators? The Case of Crowdsourced Image Moderationcited by 9
Built on by
Citing papers per year: 2023: 15; 2024: 21; 2025: 5; 2026: 3.
44 papers.
Sort:
By area:
- 2023PaLM 2 Technical Reportcited by 1,154
- 2023Bias and Fairness in Large Language Models: A Surveycited by 626
- 2023Prometheus: Inducing Fine-grained Evaluation Capability in Language Modelscited by 558
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 180
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2024Black-Box Access is Insufficient for Rigorous AI Auditscited by 123
- 2023Evaluating the Social Impact of Generative AI Systems in Systems and Societycited by 91
- 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Modelcited by 79
- 2023The Data Provenance Initiative: A Large Scale Audit of Dataset Licensing & Attribution in AIcited by 73
- 2023Locally Differentially Private Document Generation Using Zero Shot Promptingcited by 63
- 2023Elo Uncovered: Robustness and Best Practices in Language Model Evaluationcited by 58
- 2024Consent in Crisis: The Rapid Decline of the AI Data Commonscited by 45
32 more
- 2023Open, Closed, or Small Language Models for Text Classification?cited by 34
- 2024Uncovering Bias in Large Vision-Language Models at Scale with Counterfactualscited by 27
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
- 2024Can LLMs Recognize Toxicity? A Structured Investigation Framework and Toxicity Metriccited by 23
- 2023Which Prompts Make The Difference? Data Prioritization For Efficient Human LLM Evaluationcited by 18
- 2024From One to Many: Expanding the Scope of Toxicity Mitigation in Language Modelscited by 18
- 2023Bring Your Own Data! Self-Supervised Evaluation for Large Language Modelscited by 17
- 2024Walking in Others' Shoes: How Perspective-Taking Guides Large Language Models in Reducing Toxicity and Biascited by 17
- 2024PolygloToxicityPrompts: Multilingual Evaluation of Neural Toxic Degeneration in Large Language Modelscited by 16
- 2024Diffusion Guided Language Modelingcited by 15
- 2024HateDay: Insights from a Global Hate Speech Dataset Representative of a Day on Twittercited by 12
- 2024RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Frameworkcited by 11
- 2024DESTEIN: Navigating Detoxification of Language Models via Universal Steering Pairs and Head-wise Activation Fusioncited by 9
- 2024Large Language Models can be Strong Self-Detoxifierscited by 7
- 2024Toxicity of the Commons: Curating Open-Source Pre-Training Datacited by 7
- 2024LLM See, LLM Do: Guiding Data Generation to Target Non-Differentiable Objectivescited by 6
- 2024FrenchToxicityPrompts: a Large Benchmark for Evaluating and Mitigating Toxicity in French Textscited by 5
- 2024Cross-Lingual Transfer of Debiasing and Detoxification in Multilingual LLMs: An Extensive Investigationcited by 5
- 2025Aligned Probing: Relating Toxic Behavior and Model Internalscited by 5
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
- 2024Investigating Adversarial Trigger Transfer in Large Language Modelscited by 4
- 2024Exploring Human-LLM Conversations: Mental Models and the Originator of Toxicitycited by 4
- 2024Hatred Stems from Ignorance! Distillation of the Persuasion Modes in Countering Conversational Hate Speechcited by 2
- 2024Leveraging Open-Source Large Language Models for Native Language Identificationcited by 2
- 2025Designing Synthetic Discussion Generation Systems: A Case Study for Online Facilitationcited by 2
- 2025Something Just Like TRuST : Toxicity Recognition of Span and Targetcited by 2
- 2026Test-Time Detoxification without Training or Learning Anythingcited by 2
- 2024Characterization of Political Polarized Users Attacked by Language Toxicity on Twittercited by 1
- 2026Bye Bye Perspective API: Lessons for Building and Governing Measurement Infrastructurecited by 1
- 2023Breaking the Silence: the Threats of Using LLMs in Software Engineeringcited by 0
- 2025Hatevolution: What Static Benchmarks Don't Tell Uscited by 0
- 2026Beyond Static Benchmarks: Synthesizing Harmful Content via Persona-based Simulation for Robust Evaluationcited by 0
- 2026Bye Bye Perspective API: Lessons for Building and Governing Measurement Infrastructure28 Apr 2026
- 2026Beyond Static Benchmarks: Synthesizing Harmful Content via Persona-based Simulation for Robust Evaluation18 Apr 2026
- 2026Test-Time Detoxification without Training or Learning Anything14 Jan 2026
- 2025Hatevolution: What Static Benchmarks Don't Tell Us13 Jun 2025
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directions8 Jun 2025
- 2025Something Just Like TRuST : Toxicity Recognition of Span and Target2 Jun 2025
- 2025Aligned Probing: Relating Toxic Behavior and Model Internals17 Mar 2025
- 2025Designing Synthetic Discussion Generation Systems: A Case Study for Online Facilitation13 Mar 2025
- 2024Cross-Lingual Transfer of Debiasing and Detoxification in Multilingual LLMs: An Extensive Investigation18 Dec 2024
- 2024HateDay: Insights from a Global Hate Speech Dataset Representative of a Day on Twitter23 Nov 2024
- 2024Toxicity of the Commons: Curating Open-Source Pre-Training Data29 Oct 2024
- 2024RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Framework24 Oct 2024
32 more
- 2024Large Language Models can be Strong Self-Detoxifiers4 Oct 2024
- 2024Leveraging Open-Source Large Language Models for Native Language Identification15 Sep 2024
- 2024Diffusion Guided Language Modeling8 Aug 2024
- 2024Walking in Others' Shoes: How Perspective-Taking Guides Large Language Models in Reducing Toxicity and Bias22 Jul 2024
- 2024Consent in Crisis: The Rapid Decline of the AI Data Commons20 Jul 2024
- 2024Characterization of Political Polarized Users Attacked by Language Toxicity on Twitter17 Jul 2024
- 2024Exploring Human-LLM Conversations: Mental Models and the Originator of Toxicity8 Jul 2024
- 2024LLM See, LLM Do: Guiding Data Generation to Target Non-Differentiable Objectives1 Jul 2024
- 2024FrenchToxicityPrompts: a Large Benchmark for Evaluating and Mitigating Toxicity in French Texts25 Jun 2024
- 2024Uncovering Bias in Large Vision-Language Models at Scale with Counterfactuals30 May 2024
- 2024PolygloToxicityPrompts: Multilingual Evaluation of Neural Toxic Degeneration in Large Language Models15 May 2024
- 2024Investigating Adversarial Trigger Transfer in Large Language Models24 Apr 2024
- 2024DESTEIN: Navigating Detoxification of Language Models via Universal Steering Pairs and Head-wise Activation Fusion16 Apr 2024
- 2024Hatred Stems from Ignorance! Distillation of the Persuasion Modes in Countering Conversational Hate Speech18 Mar 2024
- 2024From One to Many: Expanding the Scope of Toxicity Mitigation in Language Models6 Mar 2024
- 2024Can LLMs Recognize Toxicity? A Structured Investigation Framework and Toxicity Metric10 Feb 2024
- 2024Black-Box Access is Insufficient for Rigorous AI Audits25 Jan 2024
- 2023Breaking the Silence: the Threats of Using LLMs in Software Engineering13 Dec 2023
- 2023Elo Uncovered: Robustness and Best Practices in Language Model Evaluation29 Nov 2023
- 2023The Data Provenance Initiative: A Large Scale Audit of Dataset Licensing & Attribution in AI25 Oct 2023
- 2023Locally Differentially Private Document Generation Using Zero Shot Prompting24 Oct 2023
- 2023Which Prompts Make The Difference? Data Prioritization For Efficient Human LLM Evaluation22 Oct 2023
- 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Model14 Oct 2023
- 2023Prometheus: Inducing Fine-grained Evaluation Capability in Language Models12 Oct 2023
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Models11 Oct 2023
- 2023Bias and Fairness in Large Language Models: A Survey2 Sep 2023
- 2023Open, Closed, or Small Language Models for Text Classification?19 Aug 2023
- 2023OctoPack: Instruction Tuning Code Large Language Models14 Aug 2023
- 2023Bring Your Own Data! Self-Supervised Evaluation for Large Language Models23 Jun 2023
- 2023Evaluating the Social Impact of Generative AI Systems in Systems and Society9 Jun 2023
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicity22 May 2023
- 2023PaLM 2 Technical Report17 May 2023
- 2023Prometheus: Inducing Fine-grained Evaluation Capability in Language Modelscited by 558
- 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Modelcited by 79
- 2024Large Language Models can be Strong Self-Detoxifierscited by 7
- 2024Investigating Adversarial Trigger Transfer in Large Language Modelscited by 4
- 2024Large Language Models can be Strong Self-Detoxifiers4 Oct 2024
- 2024Investigating Adversarial Trigger Transfer in Large Language Models24 Apr 2024
- 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Model14 Oct 2023
- 2023Prometheus: Inducing Fine-grained Evaluation Capability in Language Models12 Oct 2023
- 2024Diffusion Guided Language Modelingcited by 15
- 2024Diffusion Guided Language Modeling8 Aug 2024
- 2023PaLM 2 Technical Reportcited by 1,154
- 2023PaLM 2 Technical Report17 May 2023
- 2023Bias and Fairness in Large Language Models: A Surveycited by 626
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 180
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2024Black-Box Access is Insufficient for Rigorous AI Auditscited by 123
- 2023Evaluating the Social Impact of Generative AI Systems in Systems and Societycited by 91
- 2023The Data Provenance Initiative: A Large Scale Audit of Dataset Licensing & Attribution in AIcited by 73
- 2023Locally Differentially Private Document Generation Using Zero Shot Promptingcited by 63
- 2023Elo Uncovered: Robustness and Best Practices in Language Model Evaluationcited by 58
- 2024Consent in Crisis: The Rapid Decline of the AI Data Commonscited by 45
- 2023Open, Closed, or Small Language Models for Text Classification?cited by 34
- 2024Can LLMs Recognize Toxicity? A Structured Investigation Framework and Toxicity Metriccited by 23
- 2023Which Prompts Make The Difference? Data Prioritization For Efficient Human LLM Evaluationcited by 18
12 most cited of 35 All 35 (JSON)
- 2026Bye Bye Perspective API: Lessons for Building and Governing Measurement Infrastructure28 Apr 2026
- 2026Test-Time Detoxification without Training or Learning Anything14 Jan 2026
- 2025Hatevolution: What Static Benchmarks Don't Tell Us13 Jun 2025
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directions8 Jun 2025
- 2025Something Just Like TRuST : Toxicity Recognition of Span and Target2 Jun 2025
- 2025Aligned Probing: Relating Toxic Behavior and Model Internals17 Mar 2025
- 2025Designing Synthetic Discussion Generation Systems: A Case Study for Online Facilitation13 Mar 2025
- 2024Cross-Lingual Transfer of Debiasing and Detoxification in Multilingual LLMs: An Extensive Investigation18 Dec 2024
- 2024HateDay: Insights from a Global Hate Speech Dataset Representative of a Day on Twitter23 Nov 2024
- 2024Toxicity of the Commons: Curating Open-Source Pre-Training Data29 Oct 2024
- 2024RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Framework24 Oct 2024
- 2024Leveraging Open-Source Large Language Models for Native Language Identification15 Sep 2024
12 newest of 35 All 35 (JSON)