An AI safety filter that can stop and ask first let fewer attacks through
Researchers built an AI safety filter that can warn the user or ask for a check before helping. It let fewer attacks through and stayed more useful than yes-or-no filters.

The short version
- Most AI safety filters can only say yes or no. A team at Renmin University of China built one that can also warn the user, or ask for a check before helping.
- On a public test of pictures used to trick an AI into harmful answers, the share that got through fell from 40.78% to 25.30%.
- If you run an AI assistant that looks at customer photos, a blunt "no" isn't your only safe option.

The problem with yes or no
More AI assistants now look at pictures as well as text. A customer sends a photo of a damaged product and asks what to do.
Sometimes the picture turns a normal question into a risky one. The paper's example is simple. A user asks where the elevator is. The photo they send shows flames and smoke.
Pointing the user to the elevator could put them in danger. Refusing to answer leaves them with nothing. The right reply is to warn them about the fire and guide them to a safe exit.
The paper adds a second step. The photo also shows a fire extinguisher with a label that can't be read. Before recommending it, the assistant would need to check which kinds of fire it can put out.
Many safety filters can't make these calls. They label a request safe or unsafe, and that's it.
Four answers instead of two
The researchers gave their filter four choices:
- allow, when ordinary help is fine;
- warn, when help is fine but needs a warning or a limit;
- review, when something must be checked or asked before helping;
- refuse, when the help itself is not allowed.
The filter works in two places. It can judge the user's request before the assistant answers. It can also judge the assistant's draft answer before the user sees it.
To teach it, the team built a set of 20,126 worked examples. Each example records what the picture shows and how it changes the request. It also notes which rules apply and what the right action is. Many examples come in matched pairs or sets of four, where only one detail changes. That teaches the filter which detail should change its decision.
Before deciding, the filter writes three short notes. One says what the picture and text establish. One says what condition the help depends on. One says how the rules apply. It then checks those notes against the original input. Afterwards it can point to the text and image areas behind its decision, which leaves a record someone can audit.
The filter is built on a small existing AI model. The team has published its code and training examples.
What it found
On the team's own test, the biggest gain came from judging how a picture changes a request. The filter scored 52.74% on that, against 5.97% for the model it was built on.
It also adapted better when the rules changed. On that measure it scored 70.18%, against 17.71% for a larger version of the starting model.
On nine public tests from other researchers, it beat the best existing filters on a score that combines safety and usefulness. On one of them, the share of attacks that got through fell from 40.78% to 25.30%.
The researchers ran all of these tests themselves.
What it means for your business
Banks and telcos in Indonesia are adding assistants that read photos and documents. A filter that refuses anything unclear frustrates honest customers. A filter that lets everything through creates risk.
The four-way choice fits how a trained staff member already works. They help, add a caution, ask a follow-up question, or say no. The "review" option is the one many systems lack. It lets the assistant ask for a clearer photo or a missing detail instead of guessing.
The audit record matters too. When a regulator or a customer asks why the assistant refused, you can show the evidence it used.
What to do
- List the photo and document questions your assistant receives that sit in a grey area.
- For each, decide which of the four answers a good staff member would give.
- Check whether your current safety setup can warn or ask for a check, or only allow and refuse.
- Test your assistant with matched pairs, where one detail in the photo changes the right answer.
- Keep a record of why each risky request was refused or flagged.
