Robots Atlas>ROBOTS ATLAS
Safety

Prompt filtering

ActivePublished: 9 November 2026Updated: 9 November 2026Published
Key innovation
Shifts content moderation from the model output to the input — a risky or disallowed prompt is detected and blocked before it ever reaches the generative model.
Category
Safety
Abstraction level
Technika
Operation level
InferenceServingApplication
Use cases
Input moderation in conversational assistantsDefense against jailbreaks and prompt injectionCopyright protection in music and image generatorsBlocking prompts that infringe likeness and personal identityContent-policy enforcement in generative productsFiltering unsafe content (violence, self-harm, adult content)

How it works

An incoming prompt passes through a filtering layer placed in front of the model. The layer classifies the input: it matches patterns and terms against blocklists, runs a safety classifier that returns risk categories (e.g. violence, sexual content, hate, self-harm), or queries a separate judge model for policy compliance. Based on the result and decision thresholds, the prompt is passed unchanged, rewritten/sanitized, flagged for review, or rejected outright with a refusal message. Only a passing query reaches the generative model.

Problem solved

Generative models do not themselves enforce content policy or law, so an adversarial or careless user can steer them into producing harmful, illegal, or rights-infringing content. Prompt filtering addresses this at the earliest stage — it stops a risky input before the model performs any costly generation.

Components

Safety classifierInput risk scoring

A model that classifies the input content and returns risk categories with confidence scores.

Blocklists and allowlistsDeterministic decision rules

Sets of terms, phrases, and patterns that are always blocked or always allowed.

Pattern matchingFast detection of known abuse

Regular expressions and heuristics detecting known attack structures (e.g. jailbreak phrases).

LLM-as-judgeNuanced policy adjudication

A separate language model that judges a prompt’s compliance with content policy in ambiguous cases.

Content policyDecision source for the filter

A defined set of rules and categories specifying what is disallowed and how the system responds.

Execution paradigm

Primary mode
Conditional

The decision (pass / rewrite / reject) depends conditionally on the content of the specific prompt.

Activation pattern
Input dependent

Parallelism

Parallelism level
Fully parallel

Each prompt is filtered independently, so filtering parallelizes across requests.

Scope
Inference