← Back to products
YanAn Red Shield · Model protection

YanAn Red Shield

YanAn Red Shield checks an answer as the model writes it. Cleared text reaches the user, while segments that reach the risk threshold stay on the server. Teams can review what triggered a block, adjust its threshold or restore a previous safeguard version.

A wooden gate holds a red slip while two slips marked with green dots have passed through, representing blocked and released answer segments.

A policy question can pass through request screening, knowledge retrieval and answer generation. The available interface determines where Red Shield can check it. Access to model signals enables scoring and interception during generation. A text-only API supports checks on input and output text.

One answer, checked at every stepSample: a request wrapped as fictionMain modelWeights unchangedCognitiveRISK SCORE0.000.040.080.130.210.360.580.86Threshold 0.80Risk probeWORD-LEVEL CUES0123Cut offOn screenOutput stopped at step 7The rest stays on the serverHeld on server · not sent
Illustrative scene, not live product data. Cognitive Sense scores every generation step and Risk Probe flags word-level cues; when either crosses the line you set, output stops and the unreleased remainder stays on the server.

From request to final answer

For a policy inquiry, a reviewer can trace the original question, the policy version cited and the text the user received. The checkpoints depend on which interfaces the service exposes.

User request

Apply the service’s rules to decide whether a request proceeds to retrieval or answer generation.

Retrieved context

The knowledge base filters records by role. Link the authorized passages, their sources and their versions to the request.

Pending output

When model signals are available, Red Shield scores each segment and holds back text that crosses the configured threshold.

Audit record

A case ID connects the entry decision, retrieved evidence and final answer. The business application checks permissions and approvals for tool actions.

The check keeps pace with generation, and stops mid-sentence

YanAn produces a risk judgment at every step of generation. When the score crosses the line you set, output stops immediately, the remainder stays on the server, and the user gets a clear message. Every step carries a chance to check, and content reaches the screen only after it passes.

One answer, two places to check The answer streams out token by token, left to right Check after it ends the full text goes out first ✓ check By the time it runs, the user has read all of it YanAn scored at every step cut off on crossing risk score threshold held on the server, never released The cutoff lands before that sentence reaches the screen.
Schematic of where the check happens — no time axis and no measured data. The threshold and the handling policy are set by your own business rules.

After a cutoff, the trigger, the score at that moment and the associated cues are written to the record together, so the safety team can review what happened. Alerting, pausing and handoff to a person are configured to your requirements.

Risk scores and word-level cues

A generator and a text reviewer built on related models can miss the same risk. Red Shield also reads internal model signals. Its scores guide release decisions, and the associated cues give reviewers evidence to examine.

Cognitive Sense · risk scoring

The scoring engine reads signals the model has already computed for the current segment and assesses the risk of releasing it.

At the configured threshold, Red Shield stops further output and records the score and active safeguard configuration.

Risk Probe · cue detection

In a government service exchange, internal signals can contain privacy-related cues before personal information appears in a reply.

When the cues reach the configured threshold, Red Shield pauses release. A reviewer reads the question, context and pending text to determine whether the answer breaches policy.

Performance on seven public benchmarks

Red Shield averaged 87.3 across seven content safety benchmarks in the lab’s internal evaluation. Qwen3Guard 4B averaged 83.4 across the same benchmarks in the published results, a difference of 3.9 points.

YanAn Red Shield 87.3 Qwen3Guard 4B 83.4
The Red Shield score comes from Coolwei AI Lab’s November 2026 customer briefing. The benchmarks are Aegis 1.0, Aegis 2.0, ToxicChat, OpenAI Moderation, WildGuard, SafeRLHF and BeaverTails. Published comparison, Table 1

Each step adds one check of fixed cost

Have a second model re-read the whole prefix after every token and the duplicated work piles up as the answer grows. YanAn reuses the signals the main model has already computed and performs one incremental check per step — so as the answer gets longer, the added cost of each check stays constant.

Two panels. Left: an analyst re-reading an open volume between two tall stacks of tagged paper. Right: the same analyst at a screen showing a short list of three flagged items
Left: re-reading everything from the beginning each time the stack grows. Right: reading only what has just been added. The first gets slower as the stack grows; the second does not.
Added cost of one check as the answer grows Schematic — shape only, no measured values and no scale added cost of one check length of the answer so far a second model re-reads the whole answer each step YanAn · fixed cost per step The longer the answer runs, the wider the gap.
Schematic of the principle, not measured proportions. Model and checking configuration held fixed; only the added checking cost is compared, excluding the main model's own generation.

Adaptation training costs roughly two orders of magnitude less, so when an industry's requirements change, rules and configuration are updated as needed rather than rebuilt. Acceptance rests on three numbers: added cost per thousand requests, added waiting time on the answer, and the request volume your existing resources can carry.

Four places where YanAn is worth evaluating

Organizations running their own LLM

Every outward-facing answer carries service availability and brand exposure, so a dependable check belongs in front of release.

AI service desks that touch personal data

Handling a case means handling personal records; privacy boundaries and public-opinion exposure have to be settled before content reaches the screen.

High-volume consumer applications

Many topics, many rules, a very large number of checks — the cost of a single check sets the long-run cost of running the service.

Agents that take real actions

They send messages, place orders and modify data, so a mistake becomes a real action. Alongside the cutoff, a permission check belongs in front of execution.

Hosted API and on-premises deployment

The safeguard attaches to the existing service. Teams can pilot it through the hosted API or deploy it in their own data center to keep both data and logs on the internal network.

Hosted · API

Call the YanAn service directly, billed by usage. Suited to a POC and to starting at low traffic, confirming the result on your own live questions first.

On-premises · appliance

The whole system runs inside your environment, data stays on the internal network, and adaptation and operations handover are included. One-time delivery plus annual service.

Four steps to production, any of them abortable

Start on a narrow slice, then open up. Every step has a defined acceptance artifact, every step can be stopped, and every step is judged on the same three numbers: how much risk was missed, how many ordinary questions were intercepted, and how much extra time and resource it cost.

Two colleagues at a desk reviewing a dashboard on a laptop while one of them marks up a printed checklist
Every step is read the same way: the monitoring view on one side, the acceptance artifact on the other.

01 · Shadow run

Monitor only, intercept nothing, and see which answers would raise an alert. Acceptance artifact: a missed-risk and false-interception comparison report.

02 · Tune to your policy

Adjust rules and thresholds to your requirements to bring down both missed risks and false interceptions. Acceptance artifact: a build tuned to your policy.

03 · Turn on live interception

Enable the cutoff at low traffic first and test speed, the user-facing message and handoff to a person. Acceptance artifact: production thresholds and a contingency plan.

04 · Full traffic, ongoing

Once it holds, widen to full traffic and keep the business rules current. Acceptance artifact: full-traffic operation plus annual service.

Updating and rolling back safeguards

The safeguard module and its thresholds are managed independently of the main model. Once the service owner approves a policy change, the technical team can update, test and release the safeguard.

Adjust the threshold

When the policy stays the same, tune the threshold to tighten or relax blocking. Use the same business cases to compare missed risks and false blocks.

Update the safeguard

When the policy changes, retrain the lightweight safeguard on the revised criteria. Test it on new and existing cases before replacing the active version.

Roll back and review

Keep the module and its threshold together so both can be restored. Reviewers can trace a past block to the configuration that was active at the time.

Nine things your technical team should confirm before deployment

They fall on three lines: integration, running cost, and how well the checking works; the implementation itself is packaged inside the product. The acceptance principle is one comparison — run the same batch of live questions through your current approach and through YanAn, confirm the checking result first, then compare speed, resource use and cost.

Integration conditions

Confirm whether the existing service can integrate, and pick the integration form.

Running cost

Compare the added cost and resource use per thousand requests.

Waiting time

Check whether the added wait on an answer meets the business requirement.

Checking result

Read missed risks and false interceptions separately, never as a single score.

Real-time cutoff

Confirm that unreleased content actually stops once the score crosses the line.

Policy updates

After a policy update, verify that ordinary questions are unaffected.

Handling policy

Settle how alerts, pauses and handoff to a person are handled.

Review records

Agree what is recorded, how long it is kept, and who can read it.

Delivery form

Hosted API or on-premises deployment, chosen against your data and compliance conditions.

Red Team’s questions become Red Shield’s checklist

Red Team records each problematic answer and why it broke the rules. Once Red Shield is connected, ask those questions again: unsafe answers should be stopped and normal requests should still get through. The same record helps you check the next model or policy change.

Explore YanAn Red Team →

YanAn Red Shield is now open for trials

Enterprise and government teams: contact us for a demonstration, a shadow run on your own traffic, and a delivery plan. Hosted API and on-premises appliance are both available.

Contact the business team →