A text moderation classifier for request moderation, response moderation and request-response pair classification, built first for monitoring of logged conversations and also usable online. It reads the whole conversation and returns an independent violation probability for each of 14 fixed harm categories, for the last user request and for the model’s reply, in one pass.
See the blog post here.
The classifier reads a chat conversation and returns, for each of 14 harm categories, a probability that the conversation is violative in that category. It scores two things separately:
-
The request: the last user message, read in the context of the conversation before it. A high request score means the request is likely violative: the user is asking for something that category’s policy says a model should refuse.
-
The response: the assistant’s reply to that last user message, if you include one. A high response score means the reply itself violates that category’s policy, for example by delivering the prohibited content. A refusal should score low on the response head even when the request scores high.
The model is a language model with two small classifier heads on top: a request head and a response head. Each head has one output per category, and each output is an independent yes/no probability (a sigmoid, not a softmax). Scores therefore do not sum to 1, and a conversation can score high in several categories at once.
Where it fits
Iris Content Guard is designed for monitoring. Score logged conversations in batches to audit replies, filter datasets, or spot accounts that repeatedly send requests your policy flags, even when the model refuses them. Each call scores the final exchange in context. To review every reply, score the conversation up to each reply in turn. The Beam Responsible Use Guide explains how monitoring fits into a broader safeguard system.
You can also screen a conversation as it happens if scoring fits your latency budget. Before the model answers, use the request scores to decide how to handle the prompt. Once the model has answered, include its reply in the conversation and use the response scores to decide whether to deliver the reply or hold it for review.
Pages in this section
Get started:
-
Quickstart: classify your first conversation and turn the scores into flags.
-
Serve the classifier: Grab the weights and serve them with your favorite inference engine.
Guides:
Reference:
Last modified on November 30, 2026