What it is
A safeguard classifier is a filter built from a machine-learning model. It sits around a chatbot or API, reads the conversation, and decides whether a request or a reply crosses a line. It is a separate piece from the main model, so it can be updated without retraining the model itself. Labs sometimes call these misuse classifiers.
Think of a security guard at the door of a library. The librarian, the main model, is helpful about almost everything. The guard looks only for a short list of dangerous requests and stops them.
How it works
A classifier takes text in and returns a label or score, such as "allowed" or "harmful." A safeguard classifier is trained on examples of both. Because real misuse examples are rare and risky to collect, builders often generate training data with other models, guided by written rules about what is permitted and what is not. Anthropic has published research on this approach under the name constitutional classifiers.
Classifiers can check different points:
- Input checks read the request before the model answers.
- Output checks read the reply, sometimes as it streams, and can cut it off.
- Combined checks read the reply in the context of the request, which helps catch attacks that split a harmful goal into harmless-looking pieces.
When a classifier trips, the system refuses, blocks the reply, or flags the account for review.
Why it matters
Training a model to refuse bad requests, through post-training and RLHF, is not enough on its own, because determined users find jailbreaks. A second layer that is trained and updated separately makes the system harder to talk around. It also gives a lab a dial: tighten the classifier before releasing a more capable model.
The trade-offs are real. Classifiers add cost and delay, and they sometimes block harmless requests, which people notice as a refusal that makes no sense. Researchers also keep finding bypasses, so a classifier lowers risk without removing it. That is why labs pair them with red teaming, monitoring and account-level enforcement.
What to look for
When a lab says it has "safeguards" on a model, ask which risks they cover, whether they run on inputs, outputs or both, and whether they were switched off for a given test. Results measured with safeguards disabled describe the model's raw capability, not how the public product behaves.
Safeguard classifiers are one tool within AI guardrails, and they work alongside the instruction hierarchy and prompt injection defenses.