AI CompendiumA public chart of the language
Home / Safety & Alignment / Moderation
Safety & Alignment

Moderation

Filtering inputs and outputs against a policy.

Definition

Automated classification of user input and model output for policy violations — harassment, self-harm, sexual content, violence — usually via a dedicated classifier, separate from the generation model.

Keep moderation as a distinct step: it is easier to test, tune and audit than policy embedded in a prompt, and it produces a signal you can log and appeal.

Architecturally it is usually a separate classifier rather than the generation model, for a practical reason: you want it to be cheap, fast, independent and consistently calibrated, and a prompt-based check inherits the same context distractions as everything else in the request.

How people use it
Launching a public-facing chat feature.
"Both directions get moderated, and every block is logged with a reason so support can explain it."
Worked example

Moderating input and output separately

A support assistant where customers describe distressing situations.

Input moderation here causes harm by blocking legitimate requests. Output moderation catches the narrower case you actually care about. Applying both indiscriminately produces a system that refuses people who need help, which is its own failure mode.

Sources
Related terms