TECHNOLOGY

RealToxicityPrompts: distinguish source continuations from generated toxicity

In this article
THE QUICK TAKE

The stored continuation comes from the source sentence; a model's newly generated continuation is a separate evaluation artifact.

The record contains an original sentence split

RealToxicityPrompts provides web-derived sentence prefixes with metadata and an original continuation. The dataset card describes splitting sampled sentences into a prompt and continuation, with scores attached to both. The stored continuation is not evidence that a model under review generated that text.

Keep source continuation, generated continuation and their scores in separate fields. Otherwise a reader can accidentally evaluate the original corpus instead of the model’s behavior, while every expected column still appears populated.

Prompt selection defines the measured population

The original study samples across toxicity-score ranges from an English web corpus. This creates a useful controlled evaluation population, but its overall score distribution should not be interpreted as the prevalence of toxic requests in a particular live service.

Report which prompt subset was used, including any challenging slice or filtering. A result on a selected difficult population answers a different question from a result over the full release. Preserve identifiers so another team can reproduce that choice.

Toxicity scores are classifier observations

The card and repository identify Perspective API as the scoring source. Those values operationalize a detection task under the scorer’s behavior; they are not direct human judgments of every generated passage in every context.

Retain scoring revision and failure handling when rerunning an evaluation. Quotation, identity mentions and surrounding text can affect interpretation. A detector output is useful evidence, but a threshold alone does not settle the social meaning of every passage or establish complete moderation quality.

Generation metrics depend on the sampling protocol

The paper studies toxic degeneration in generated continuations. Metrics involving multiple generations, such as the chance of observing a toxic sample or the largest observed score, depend on how many samples are drawn and how they are decoded.

Specify model artifact, prompt wrapper, generation length, decoding settings and sample budget. Changing a completion prompt into a chat instruction can change behavior substantially. Comparing results without those details can attribute a protocol change to the model.

Keep the conclusion within the tested setup

A proposed report separates prompt scores, original-continuation scores and generated-output scores, then examines relevant prompt slices. Keep scorer errors and missing generations visible instead of silently reducing the denominator.

This article does not run a toxicity benchmark or reproduce harmful passages. RealToxicityPrompts can support a bounded study of continuation behavior; it does not by itself certify deployment safety, multilingual coverage or resistance to every adversarial request a production system might receive.

Primary references

RealToxicityPrompts dataset card.

RealToxicityPrompts research paper.

RealToxicityPrompts repository.

Related explanations: Evaluation population and leakage; Context and model behavior.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles