AI Glossary Term

What does “Safety Filter” mean?

Definition

A moderation layer that blocks or rewrites unsafe model inputs or outputs.

How Safety Filter works

Diagram for Safety Filter, steps in order: User input; then Input filter; then Model; then Output filter; then Delivered reply, or blocked.User inputInput filterModelOutput filterDelivered reply, or blocked

Example

A chatbot for kids has a layer that checks each reply. If a draft contains disallowed content, the filter blocks it or replaces it with a safe message before it appears.

Why it matters

Filters add a defense independent of the model's own training. They can wrongly block harmless content or miss clever evasions.

Common questions

What do filters catch?

Categories such as hate, self-harm, explicit content, or personal data, depending on how they are set up.

Are they perfect?

No. They produce both false positives and false negatives.

Are filters built by classifiers?

Often, a smaller model or rule set scores text for risk categories.

Learn more in our free guides

Test yourself

See also