Manuscript Offprint
arXiv:2611.02134HaloGuard 2.0: An Open-Weights Constitutional Output Guard for Multilingual Response Safety
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
An input guard determines whether a request should be forwarded to the model; however, it does not observe the model's subsequent output. Harm that emerges during generation, either due to a jailbreak bypassing the input layer or a benign request shifting into operational detail, becomes observable exclusively on the output side and only as tokens are generated. This work introduces HaloGuard 2.0, an open-weight streaming output guard that assigns a safe/unsafe probability to each response token in a single forward pass, enabling deployment systems to terminate the stream once harm is detected. The guard reuses the constitution of HaloGuard 1.0, the input guard, to organise a 478,532-response training corpus, and supervises each token beginning at the point where the response transitions to being harmful. We find that a guard trained on conventionally structured data develops a shortcut specific to streaming: it evaluates the prompt rather than the response, and correctly handles only 13.9% of matched safe and unsafe response pairs. We correct this with a second training phase on 106,043 counterfactual responses built around the base guard's own failure modes, and release the equal-weight average of the base and corrective models. On six English response-safety benchmarks, HaloGuard 2.0-0.8B reaches a macro F1 of 83.6 (83.3 on held-out halves of the decision-rule search), up from 72.8, with 38% fewer false positives. It matches the strongest full-response guards with 5–10x fewer parameters and is 2.6 points above the strongest streaming guard, Qwen3Guard-Stream-4B. A multilingual variant, HaloGuard 2.0-Poly-0.8B, trained on PolyGuardMix, reaches 83.1 F1 on the response labels of PolyGuardPrompts across 17 languages, 5.0 points above the strongest baseline. On one H100, the guard costs 0.37 ms per token per stream when moderating 64 concurrent responses. Both guards are hardened continuously through the weekly red-teaming protocol of HaloGuard 1.0, extended here to the output layer.
1 Introduction
Guard models now sit on both sides of most production LLM deployments. On the input side, a classifier inspects the user's request before generation. On the output side, a second classifier inspects what the model
A PREPRINT
produced. Our previous release, HaloGuard 1.0 [1], addressed the first of these layers. This report addresses the second, because screening the input is not enough on its own. Some harmful responses come from requests that look acceptable in isolation: a multi-turn conversation that escalates slowly, a role-play that drifts, or a jailbreak whose payload only resolves once the model starts answering. In agentic and retrieval-augmented settings, the model's context also contains text the user never wrote, including tool outputs, web pages and documents, any of which may carry an injected instruction. Aligned models still fail: a benign question about pesticide toxicity can produce a response that turns, several paragraphs in, into a synthesis route. Prompt-only scoring cannot see this. Typically, moderation occurs after response generation is complete. This approach is suitable for batch auditing but inadequate for interactive applications where responses are streamed to users incrementally. By the time a post-hoc classifier returns a verdict, potentially harmful content may already be visible to the user. An alternative is to buffer the entire response prior to release, which eliminates the latency advantage of streaming. A streaming guard avoids both drawbacks by incrementally scoring the response and halting generation once the content exceeds the policy boundary. Streaming makes the classification problem harder in a specific way. A response prefix is often ambiguous. For example, "To synthesise this compound, you would first need" may continue as a refusal, a textbook overview, or a detailed procedure. A guard that triggers on the prefix may interrupt legitimate educational responses, while a guard that waits for certainty may allow operational content to be delivered. The decision is no longer solely between safe and unsafe content. It also concerns the point at which evidence becomes sufficient. Streaming introduces two additional errors to the standard false positive (FP) and false negative (FN) errors: triggering on a prefix that would have remained safe, and triggering only after unsafe content has already been presented to the user.
The fundamental challenge remains the same as that which motivated the development of HaloGuard 1.0. Responses concerning weapons, malware, self-harm, drugs, or extremism are frequently legitimate. For instance, a security engineer may inquire about how a class of exploit works to facilitate patching, a nurse may ask about overdose thresholds, or a historian may inquire about chemical attacks in the First World War. Both harmful and harmless versions of such responses share similar topics and vocabulary. What distinguishes them is operational specificity, actionability, and the direction of intent. A guard that learns the vocabulary rather than the boundary interrupts responses in precisely those domains where users most require a capable model. Streaming introduces a second shortcut that does not occur on the input side. In typical response corpora nearly every harmful response is harmful from its first token, so a guard can score well by judging the prompt and never reading the answer. We test for it directly with matched pairs, in which one prompt has a safe and an unsafe completion and only the response can tell them apart (Section 6.2). A guard trained on conventionally shaped data separates few of these pairs, and this measurement is what motivates the corrective second phase of our recipe. We introduce HaloGuard 2.0, a constitutional response classifier that scores model outputs as they stream. It reuses the HaloGuard 1.0 constitution as the organising structure of its training corpus and carries the input-side techniques, boundary hard negatives and paired counterfactuals, over to responses. The English model, HaloGuard 2.0-0.8B, is built on Qwen3.5-0.8B with a token-level classification head. Its training data comprises 584,575 English responses in two phases: 478,532 constitution-organised responses in Phase 1 and 106,043 corrective counterfactuals in Phase 2, with every unsafe response supervised token by token from the point where harm begins. For multilingual coverage we train a second variant, HaloGuard 2.0-Poly-0.8B, on 1,055,192 response-labelled conversations from PolyGuardMix [2] in 17 languages. Our English corpus, 584,575 responses, is about half the size of Qwen3Guard's 1.19M samples [3] and about 1% of Shieldstral's 54.1M [4] (Table 6). We evaluate on six English response-safety benchmarks, HarmBench (HarmB), SafeRLHF, BeaverTails, XSTest-Response (XSTest-R), Aegis 2.0 and WildGuardTest (WildG), and on the response-harmfulness labels of PolyGuardPrompts for multilingual transfer. We compare against the open guards evaluated by Qwen3Guard [3] and Shieldstral [4]: LlamaGuard3-8B [5], LlamaGuard4-12B [6], WildGuard-7B [7], ShieldGemma-9B and -27B [8], NemoGuard-8B [9], PolyGuard-Qwen-7B [2], OmniGuard-7B [10], Nemotron-3.5-Safety-4B [11] and GPT-OSS-Safeguard-20B [12], as
A PREPRINT
well as Qwen3Guard-Gen and Qwen3Guard-Stream at 0.6B, 4B and 8B and Shieldstral-3B itself. We report precision, recall, F1, FP rate (FPR) and FN rate (FNR).
This report describes how we built a streaming output guard that reads the response. Our contributions are:
-
An open constitutional output guard. HaloGuard 2.0-0.8B is a Qwen3.5-0.8B backbone with a linear token head that emits a safe/unsafe probability for every response token in a single forward pass. Its training corpus is organised by the HaloGuard 1.0 constitution, so input and output verdicts for an interaction refer to the same policies (Section 4.1).
-
Onset-derived token supervision. Each unsafe training response carries an onset, the first character of the span that makes it unsafe. Tokens before the onset are labelled safe and tokens from it onward unsafe, and tokens near it are up-weighted in the loss, so the guard learns when to fire, not only whether to.
-
A two-phase method against the prompt shortcut. We introduce a matched-pair test for the shortcut and add it as a third FP mode beside the boundary and baseline modes of HaloGuard 1.0. A corrective second phase on counterfactual responses, merged into the base guard by weight averaging, raises six-benchmark macro F1 from 72.8 to 83.6 (83.3 held out) and removes 38% of FPs.
-
A multilingual variant. HaloGuard 2.0-Poly-0.8B, a second 0.8B model with the same architecture and objective, is trained on 1,055,192 response-labelled conversations from PolyGuardMix in 17 languages [2] and reaches 83.1 F1 on the response labels of PolyGuardPrompts, against 78.1 for the strongest baseline (Qwen3Guard-Gen-4B) and 75.8 for the strongest streaming guard (Qwen3Guard-Stream-8B).
-
Continuous red-teaming of both layers. The weekly red-teaming protocol of HaloGuard 1.0 now attacks a stack in which both guards are active, and attributes each successful attack to the layer that should have stopped it (Section B).
Section 2 reviews related work. Section 3 defines the streaming task and the onset. Section 4 describes the constitution on the response side and the training data. Section 5 covers the model, training and serving, and Section 6 the evaluation. Section 7 discusses limitations, and Section 8 concludes. Section A gives per-language results, and Section B describes the continuous red-teaming protocol.
A PREPRINT
mostly unsafe is confirmed by an LLM judge [3]. HaloGuard 2.0 is closest in shape to Qwen3Guard-Stream and closest in data philosophy to CCs. It differs in how onsets are obtained (in the corrective corpus they are constructed at generation time, so they are exact rather than estimated), in how they are used (up-weighted in the loss and paired with matched safe responses), and in how the model is trained (two phases, merged by weight averaging).
Constitutional AI showed that written principles can supervise model behaviour [15], and CCs used a constitution of restricted and permitted content to synthesise classifier training data [14]. HaloGuard 1.0 scaled this to a full safety constitution (Section 4.1) and paired every harmful prompt with a harmless counterfactual [1]. Counterfactually augmented data [16] and contrast sets [17] harden decision boundaries with minimally different examples of opposite label. For responses, the natural minimal pair is two completions to the same prompt, one harmful and one not. Averaging the weights of fine-tuned models from a shared initialisation, or interpolating a fine-tuned model with its starting point, often outperforms either endpoint and recovers robustness that fine-tuning lost [18, 19]. We use the simplest form, a uniform average of the base guard and its corrective fine-tune, and report what it gains and loses for a streaming output classifier. HarmB provides harmful behaviours and judged completions [20]. BeaverTails and SafeRLHF provide question–answer pairs with human safety labels [21, 22]. WildG includes response-harmfulness labels on adversarial and in-the-wild interactions [7], Aegis 2.0 provides response labels under the NVIDIA content-safety taxonomy [9], and XSTest-R labels responses to XSTest’s benign-but-risky-sounding prompts [7, 23]. Table 1 positions HaloGuard 2.0 against prior response guards.
| Model | Training data | Scored | Streaming | Token supervision |
|---|---|---|---|---|
| LlamaGuard [13] | collected + annotated | full response | no | – |
| WildGuard [7] | collected + synthetic | full response | no | – |
| ShieldGemma [8] | synthetic | full response | no | – |
| PolyGuard [2] | collected + translated | full response | no | – |
| Qwen3Guard-Stream [3] | collected + synthetic | every token | yes, open | first unsafe token, from rollouts + LLM judge |
| CCs [14] | constitution → synthetic | every token | yes, closed | prefixes trained toward the full-response label |
| Shieldstral [4] | collected + synthetic (54.1M) | full response | no | – |
| HaloGuard 2.0 (ours) | constitution → synthetic (English); PolyGuardMix (multilingual) | every response token | yes, open | onset constructed at generation (Phase 2) |
Table 1: Positioning of HaloGuard 2.0 relative to prior output guards.
3 Task Definition and Scope
HaloGuard 2.0 reads the user prompt together with the response and emits, at every response position , the probability that the response so far is unsafe:
Prompt positions are never scored. The prompt is context: whether “Sure, here is the recipe” is harmful depends entirely on what was asked. A probability per token is not yet a decision. A single threshold on fires on isolated spikes; requiring a long run of high scores cannot fire on a short harmful response at all. We use a two-arm rule:
A PREPRINT

Figure 1: HaloGuard 1.0 screens the request; HaloGuard 2.0 scores the response as it is generated and stops the stream once harm is confirmed. Both guards are built from the same constitution.
with and . The first arm catches a single high-confidence token, which is what a short compliance looks like (“Sure. Step 1: …”). The second arm catches sustained moderate evidence, which is what gradual drift looks like. The second arm is the two-token debounce that Qwen3Guard-Stream applies to every flag [3]; we pair it with a higher single-token arm so that very short harmful responses can still fire. The verdict is latched: once the rule fires, the response is unsafe and stays unsafe. If no such exists the response completes and is safe. For benchmark scoring, the streaming decision collapses to a binary verdict: UNSAFE if and only if exists. For the English model we hold every candidate rule to one structural constraint: it must be able to fire on a harmful response of one to three tokens. Rules that require long runs or window averages score well on benchmarks whose unsafe responses are long, but they are blind to short harmful answers by construction, and that blindness is invisible in aggregate F1 because such responses are rare in most test sets. The arms of Equation (2) together do satisfy it: the first can fire on a single token, the second from the second token on. Each training response also carries one of three behaviours. Complied: the model answers the request. Refused: it declines without providing harmful content. Mixed: it partly refuses and partly complies. The safety label depends only on content. A response that opens “I can’t help with that, but here is how it is generally done” and then gives a procedure is unsafe; the opening refusal does not change the label, and the onset occurs where the procedure begins.
HaloGuard 2.0 sits on the output side of an LLM application (Figure 1). It provides a signal; the application decides the action, such as stopping the stream, replacing the remainder with a safe completion, or letting the response finish and routing it to review. In scope are direct harmful completions, legitimate responses on sensitive topics, and responses where harm appears after a disclaimer, refusal, role-play frame or long benign lead-in. Tool calls, actions and retrieved documents are out of scope except as text that appears in the response. The response side needs one concept the input side does not: the onset, the first character of the earliest span that makes the response unsafe under its policy. A response that restates the question, adds a caveat and then gives a procedure has its onset at the procedure. A response that opens with the procedure has its onset at zero. The onset turns one response-level label into a label for every prefix (Equation (4)).
4 Constitution and Training Data
Training data comes in three corpora: one for each training phase of the English model (Table 2), and PolyGuardMix for the multilingual variant (Section 4.5). The Phase 1 corpus is organised by the constitution and is the response-side counterpart of the HaloGuard 1.0 corpus. The Phase 2 corpus is built after Phase 1, from an analysis of the base guard’s errors. For reference, the HaloGuard 1.0 prompt corpus has 1,259,451 records: 35.0% harmful, 47.9% harmless-boundary and 17.2% shared-harmless [1]. The Phase 1 response corpus draws more heavily on the harmful bucket (55.2% of responses, Table 2), because a harmful prompt yields refusals and safe answers as well as unsafe ones: only 30.2% of Phase 1 responses are unsafe.
A PREPRINT
| Corpus | Slice | Responses | Share |
|---|---|---|---|
| Phase 1(base) | Harmful pool | 264,059 | 55.2% |
| Harmless-boundary pool | 180,301 | 37.7% | |
| Shared-harmless pool | 34,172 | 7.1% | |
| Total | 478,532 | ||
| Phase 1,by behaviour | Complied | 350,646 | 73.3% |
| Refused | 94,455 | 19.7% | |
| Mixed | 33,431 | 7.0% | |
| Phase 2(corrective) | Safe | 52,761 | 49.8% |
| Unsafe | 53,282 | 50.2% | |
| Total | 106,043 | ||
| Unsafe responses with onset after token 0, Phase 1 | 3,122† | 2.2% | |
| Unsafe responses with onset after token 0, Phase 2 | 27,280 | 51.2% | |
Table 2: Training data. Pools follow the HaloGuard 1.0 constitution; †Of 144,721 unsafe Phase 1 responses, 141,599 are harmful from the first token. Pool and behaviour shares are over all Phase 1 responses.
4.1 The Constitution on the Response Side
HaloGuard 2.0 uses the HaloGuard 1.0 constitution without modification: 46 policies (29 harmful and 17 shared-harmless), 490 categories and 2,940 subcategories, with the four risk tiers and three safety buckets defined there [1]. Sharing one constitution across both layers has a practical benefit. An input verdict and an output verdict for the same interaction reference the same policy, enabling the deployer to compare outcomes and audit any disagreements. This subsection outlines the changes that occur when the constitution organises responses rather than prompts.
From harmful requests to harmful content. On the input side, a subcategory identifies a harmful request. On the output side, it identifies harmful content, defined as text whose presence renders a response unsafe. These categories can diverge in both directions. For example, a request for arson techniques is inherently harmful, but a response may be safe if it consists of a refusal or an explanation of fire investigation methods. Conversely, an innocuous request may result in harmful content if the model over-complies. Therefore, response labels are assigned exclusively to the response and are not inherited from the prompt.
Buckets on the Response side. The three buckets of HaloGuard 1.0 carry over with response-level meanings. Harmful responses contain content the constitution marks as harmful. Harmless-boundary responses address the topic of a harmful subcategory and use its vocabulary, but stay at a level of detail the constitution permits, for example a conceptual, defensive, clinical or historical treatment. Shared-harmless responses answer ordinary requests and anchor the guard's prior on routine traffic. HaloGuard 1.0's information_depth coverage axis does the work on the response side that it did on the prompt side: it spreads the harmless-boundary responses across levels of depth so that the guard learns where on that axis each policy's boundary sits, rather than learning that a topic is unsafe.
4.2 Phase 1: The Constitutional Response Corpus
The Phase 1 corpus contains 478,532 prompt-response pairs drawn from the three buckets of the constitution. Prompts come from the HaloGuard 1.0 prompt pool, so every response inherits its prompt's policy, category, subcategory and bucket. Responses were produced by a pool of generator models with different alignment profiles: aligned models supply natural refusals, partial compliance and hedged answers; models with reduced
A PREPRINT
safety tuning supply compliant harmful answers. Using several generators keeps the guard from keying on any one model's writing style. Each response has a safety label (safe, unsafe) and, if unsafe, an onset. The Phase 1 corpus has a property that turns out to matter more than its size: almost every unsafe response is unsafe from its first token (Figure 2). Only 3,122 of 144,721 unsafe responses (2.2%) have any safe text before the harm. This is the natural shape of harmful completions from compliant generators, which tend to start answering immediately. It is also the condition under which a guard can minimise its loss by deciding from the prompt (Section 6.2).

Figure 2: Almost every unsafe response in the Phase 1 corpus is harmful from its first token; half of the Phase 2 corpus turns harmful mid-response.
4.3 Three FP Modes
HaloGuard 1.0 distinguished two kinds of FP. A boundary FP flags a legitimate response near a policy edge for its topic or vocabulary, such as a defensive explanation of an exploit class. A baseline FP flags an ordinary response for an incidental feature. On responses the baseline mode is mostly lexical: the guard fires on “crack” meaning a pastry, “coke” meaning the drink, “shoot” meaning photography, or “kill the lights”. Streaming adds a third mode, which we call the prompt-driven FP: a safe response is flagged because of the prompt it answers. The guard activates at or near the initial response token, prior to any substantive content in the response, and it triggers identically for refusals, educational answers, and harmful responses. Prompt-driven FPs resemble over-refusal in aggregate metrics; however, their underlying causes and corresponding solutions differ. Increasing harmless-boundary data does not eliminate these FPs; only safe responses paired with an unsafe response to the same prompt remove them. Table 3 maps each mode to the data that targets it.
| Mode | Failure pattern | Data response |
|---|---|---|
| Boundary | A legitimate response near a policy edge is flagged for its topic or vocabulary. | Harmless-boundary pool spread across information depth (Phase 1); safe twins of harmful responses (Phase 2). |
| Baseline (lexical) | An ordinary response is flagged for a harm-adjacent word used innocently. | Shared-harmless pool (Phase 1); lexical-collision responses with innocuous referents (Phase 2). |
| Prompt-driven | A safe response to a harmful-sounding prompt is flagged before it says anything harmful. | Matched safe/unsafe responses to the same prompt; unsafe responses with a safe lead-in and a late onset (Phase 2). |
Table 3: The three FP modes targeted by HaloGuard 2.0. The third is specific to streaming output guards.
A PREPRINT
4.4 Phase 2: The Corrective Corpus
The Phase 2 corpus is built from what the base output guard gets wrong. We collected errors from our internal development split and the six evaluation benchmarks, adjudicated these errors against the constitution (Table 4), removed benchmark mislabels and policy disagreements, and categorised the remaining genuine errors into failure archetypes: prompt-driven firing, lexical collisions, responses that initially refuse and then comply, subtle compliant harm in everyday-harm policies (property crime, privacy, drugs), and short responses. We converted each archetype into a set of generation seeds, and expanded each seed into multiple new responses. Generation was governed by four rules.
| Error source | Share of 3,107 errors |
|---|---|
| Genuine model error | 66.6% |
| Benchmark mislabel | 19.4% |
| Policy disagreement | 18.1% |
Table 4: Adjudicated benchmark errors for an intermediate model. The shares exceed 100% because certain errors are attributed to two causes.
-
Every safe response has an unsafe twin. The unsafe twin addresses the same prompt, utilises similar vocabulary and length, and differs solely in the presence or absence of uplift. An initial experiment that relabelled 19,033 borderline responses as safe, without including matched unsafe examples, halved the FPR but cost 17 points of recall, indicating that the guard model began classifying the entire topic as safe.
-
Both twins come from the same generator. Otherwise, the generator's stylistic features may serve as a proxy for labelling. In an early corrective corpus where twins were sourced from different generators, matched-pair accuracy (Section 6.2) on the held-out set increased from 13.9% to 88%. However, the six-benchmark F1 score improved by only 0.16. We attribute part of this gap to the generator confound.
-
Onset is constructed, not inferred. Approximately half of unsafe responses (51.2%) begin with a safe segment, such as a restatement, caveat, refusal, or overview, and subsequently transition to harmful content. The safe span and the harmful continuation are generated as separate pieces, so the onset is exact by construction.
-
Every pair is checked. An independent judge verifies both labels before a pair is included in the corpus. Each response is compared to a hash blocklist containing all 12,347 benchmark evaluation rows and is also screened for near-duplicates.
4.5 Multilingual Data
The multilingual variant adds PolyGuardMix [2]. Of its 1,910,372 rows, 830,180 contain no response and are dropped; of the remaining 1,080,192, we hold out 5,000 for validation and 20,000 as a development pool and train on 1,055,192. Responses are 96.6% unique across roughly 660K prompts, so many prompts carry several responses, which suits an output guard. PolyGuardMix carries response-level labels only. We verified that none of the 29,325 prompt-response pairs of PolyGuardPrompts (29,053 of which carry a response label) appears in PolyGuardMix. Table 5 summarises the three training corpora. Table 6 compares this training data with that of the two closest open guards, Qwen3Guard and Shieldstral.
A PREPRINT
| Corpus | Language | Responses | Unsafe | Unsafe share | Onset > 0 |
|---|---|---|---|---|---|
| Phase 1: Constitutional | English | 478,532 | 144,721 | 30.2% | 2.2% |
| Phase 2: Corrective-constitutional | English | 106,043 | 53,282 | 50.2% | 51.2% |
| English total | 584,575 | 198,003 | 33.9% | ||
| PolyGuardMix (multilingual) | 17 | 1,055,192 | 251,791 | 23.9% | n/a |
| Total | 1,639,767 | 449,794 | 27.4% |
Table 5: Training data by corpus and language. Onset > 0 is the share of unsafe responses that open with safe text before the harm. PolyGuardMix contributes the 1,080,192 of its 1,910,372 rows that contain a response; 5,000 are held out for validation and 20,000 as a development pool, leaving 1,055,192 for training. It shares no prompt-response pair with PolyGuardPrompts.
| Model | Sizes | Training data | Languages | Streaming |
|---|---|---|---|---|
| Qwen3Guard-Gen [3] | 0.6B, 4B, 8B | >1.19M (58.8% responses) | 119 | no |
| Qwen3Guard-Stream [3] | 0.6B, 4B, 8B | derived from Gen pool | 119 | token-level |
| Shieldstral [4] | 3B | 54.1M (45.2M text, 4.4M synthetic, 4.5M image) | multilingual | no |
| HaloGuard 2.0-0.8B | 0.8B | 584.6K En | English | token-level |
| HaloGuard 2.0-Poly-0.8B | 0.8B | PolyGuardMix + corrective | 17 | token-level |
Table 6: Training data and scope relative to the two closest open guards.
5 Model, Training and Serving
5.1 Architecture
The guard’s input is a short policy preamble, followed by the user prompt and the response. The preamble is a one-paragraph definition of safe and unsafe responses (refusals, caveats, redirection and academic or defensive framing are safe; operational uplift is unsafe, including a response that refuses first and then complies) and the list of 27 constitution categories. HaloGuard 1.0 is a generative classifier: it reads the whole prompt and then writes a label. That interface does not suit streaming, because producing a label at every response token would multiply inference cost by the label length. HaloGuard 2.0 instead places a linear head on the final hidden state of a Qwen3.5-0.8B backbone [24]:
where is the final-layer state at response position . Because the backbone is causal, depends only on and , so one forward pass yields a verdict for every prefix. The vision tower and language-model head of the base checkpoint are dropped. Two details of this setup mattered in practice. First, the head is initialised to zero. Qwen3.5’s final hidden states have a root-mean-square of about 4.2, so the usual initialisation produces logits with a standard deviation of about 2.7 before any training. In our runs that led to a first-step gradient norm above 500 and a collapse to a constant prediction. With a zero head, training starts at a loss of exactly ln 2. Second, the backbone is hybrid: 18 of its 24 layers are Gated DeltaNet linear-attention layers [25] with a recurrent state, and 6 are full attention. For streaming inference this is an advantage, because the 18 recurrent layers carry a fixed-size state from token to token. For training it rules out sequence packing (Section 5.3).
A PREPRINT
5.2 Token Labels and Loss
The onset is stored as a character offset and mapped to the first token whose span ends after it. A token that straddles the onset is therefore labelled unsafe. For a response with onset token ,
Positions labelled are excluded from the loss. There is no masked tolerance band after the onset: the first unsafe token is supervised as unsafe.
The loss is a weighted token-level cross-entropy over supervised positions :
where the up-weighting applies only to responses with a safe-to-unsafe transition (). A response that is unsafe from its first token has no transition in the response and receives uniform weight. The weight concentrates gradient on the few tokens that decide when the guard fires; we use in Phase 1 and in Phase 2, where transitions are 23 times more frequent.
5.3 Two-Phase Training
Phase 1: Base training. The backbone and head are trained jointly on the 478,532-response corpus for two epochs. The base guard reaches a macro F1 of 72.8 on the six benchmarks and, as Section 6.2 shows, learns largely to judge the prompt. Figure 3 summarises the recipe and Table 7 gives the configuration.

Figure 3: Two-phase training of HaloGuard 2.0-0.8B. Phase 1 trains a base guard on the constitution-organised response corpus. Phase 2 analyses the base guard's errors, builds a corrective corpus of matched responses, fine-tunes a copy of the base guard on it, and releases the equal-weight average of the two models (the node, Equation (6)).
Phase 2: Corrective refinement. A copy of the base guard is fine-tuned on the 106,043-response corrective corpus alone, for three epochs, with the same objective. The released model averages the two sets of weights:
A PREPRINT
applied to every backbone and head parameter. Averaging is not a cosmetic step. The corrective model on its own scores below the base guard on the benchmarks, and so does retraining from scratch on the corrective data mixed into the Phase 1 corpus (69.1 and 70.7 respectively, against 72.8 for the base guard, measured in an earlier Phase 2 round). The corrective model’s errors are not the base guard’s errors: it fixes the prompt shortcut and the lexical triggers but compresses its scores, so that no single threshold separates the classes as well as before. Averaging keeps most of the correction and restores the score scale.
Packing. We train without sequence packing. In the hybrid backbone, FlashAttention-2’s variable-length kernel [26] isolates packed examples in the six full-attention layers, but the recurrent state of the linear-attention layers runs across the boundary between packed examples. On a two-layer probe, the same example produced hidden states differing by up to 0.23 depending on what was packed before it. Training is unpacked, with length-grouped batching to limit padding.
Multilingual variant. HaloGuard 2.0-Poly-0.8B uses the same architecture, objective and decision-rule form. It is trained on the PolyGuardMix corpus (Section 4.5) from Qwen3.5-0.8B for two epochs (65,950 steps, 6.9 h on 2×H100); benchmark F1 plateaued after about 40,000 steps. The PolyGuardMix-trained base is then refined with corrective supervision mined from its benchmark failures, following the same recipe as the English model, and the result is averaged with the base at equal weight, as in Equation (6). It uses a single run arm: the guard fires when 3 consecutive response tokens are all ≥ 0.675, latched. Unlike Equation (2), this rule cannot fire on a response shorter than three tokens.
| Setting | Phase 1: Base Training | Phase 2: Corrective fine-tuning |
|---|---|---|
| Initialisation | Qwen3.5-0.8B; head zero-init | Phase 1 base guard |
| Head | linear, 1024→2 | inherited |
| Training responses | 478,532 | 106,043 |
| Epochs / steps | 2 / 29,910 | 3 / 9,942 (released: step 9,000) |
| Learning rate | , head 10× | , head 10×; 3% warm-up, linear decay |
| Effective batch | 32 (8 × 2 accum. × 2 GPUs) | 32 |
| Onset weight λ / window | 5.0 / ±16 tokens | 3.0 / ±16 tokens |
| Max length | 2,048 tokens, unpacked | 2,048 tokens, unpacked |
| Precision / parallelism | bf16, FlashAttention-2, DDP | same |
| Hardware / wall clock | 2×H100 80GB / 4.6 h | 2×H100 80GB / 62 min |
| Decision rule | max or two consecutive , latched (Equation (2)) | |
Table 7: Training and serving configuration of HaloGuard 2.0-0.8B.
5.4 Serving
At inference the guard reads the policy preamble and the prompt once, then receives response tokens as the generator emits them. Each new token advances the recurrent state of the linear-attention layers and the key-value cache of the full-attention layers, and produces one new . The rule of eq. (2) is applied after every token. On a single idle H100 with fused linear-attention kernels (flash-linear-attention 0.5.0, causal-conv1d 1.7.0, PyTorch 2.11), and a 512-token prefill of preamble and prompt, the incremental step costs 22.2 ms at batch size 1 and 23.7 ms at batch size 64, or 0.37 ms per token per stream when moderating 64 concurrent responses: 2,705 response tokens per second in aggregate. The step is constant in response length: 22.6, 22.2 and 22.8 ms measured 128, 512 and 1,024 response tokens into the cache, roughly 1,536 tokens of total context at the deepest point, because the eighteen recurrent layers carry a fixed-size state and only the six full-attention layers grow theirs. At batch 1 the step is dominated by kernel-launch overhead
A PREPRINT
rather than computation — scaling from batch 1 to 64 costs 6.7% more wall time — so single-stream latency would fall substantially under CUDA-graph capture, which we do not apply here. Because the guard scores token while the generator produces , it adds latency only when its step exceeds the generator's; in deployment, where one guard serves many concurrent streams, the batch-64 figure is the operative one. The guard was trained on inputs of up to 2,048 tokens. For longer responses we score two windows, one anchored at the start of the response and one at the end, and take the element-wise maximum where they overlap. Scoring only the head window lets an attacker bury a payload after a long filler; scoring only the tail lets them bury it at the start. With both windows, the guard covers roughly twice its training length.
6 Evaluation
We evaluate response harmfulness on six English benchmarks (Table 8) and on the response labels of PolyGuardPrompts. For each benchmark we use the response-level safety label; refusal labels are not used.
| Benchmark | Responses | Unsafe | Notes |
|---|---|---|---|
| HarmBench [20] | 400 | 50.0% | judged completions to harmful behaviours |
| SafeRLHF [22] | 5,978 | 55.2% | test split, response safety |
| BeaverTails [21] | 3,021 | 57.4% | test split, QA pairs |
| WildGuardTest [7] | 1,689 | 16.7% | response harmfulness |
| Aegis 2.0 [9] | 813 | 48.5% | response-labelled test split |
| XSTest-Response [7, 23] | 446 | 17.5% | responses to XSTest prompts |
| Total | 12,347 | ||
| PolyGuardPrompts [2] (response) | 29,053 | 16.6% | 1,709 conversations × 17 languages |
Table 8: Response-safety evaluation suite.
HaloGuard 2.0 is scored by its streaming verdict: a response is unsafe if Equation (2) fires at any response token. Only response tokens are scored. This is stricter than full-response classification because the guard commits before it sees the end. One decision rule is used for all benchmarks; we do not tune thresholds per benchmark, because a deployed guard cannot know which distribution a request comes from, and in our measurements per-benchmark thresholds inflate macro F1 by about three points. The two thresholds of Equation (2) were selected by a grid search (step 0.025) on the benchmarks themselves. To estimate the optimism this introduces, we split every benchmark in half, chose the rule on one half and scored it on the other, for two random seeds in both directions. The held-out macro F1 is 83.3 (83.5 and 83.2 for the two seeds), against 83.6 in-sample.
6.1 Results
Table 9 places the two HaloGuard guards side by side, in the format Qwen3Guard uses to summarise its family [3]: HaloGuard 1.0 on prompts and HaloGuard 2.0 on responses, in English and across 17 languages. Table 10 then reports response-harmfulness F1 per benchmark against open baselines and Table 11 the error rates behind it, and Table 12 gives the input-layer results of HaloGuard 1.0; the operating points of both released models are compared in Section 6.3.
Over the base guard, the largest gains (Figure 4) are on XSTest-R (+17.4) and WildG (+13.0), the two benchmarks dominated by safe responses to harmful-sounding prompts, where the prompt-driven and lexical FP modes concentrate. FPs fall from 1,465 to 912. Across the six benchmarks, HaloGuard 2.0-0.8B has
A PREPRINT
| Model | Size | English | Multilingual (PolyGuardPrompts) | ||
|---|---|---|---|---|---|
| Prompt | Response | Prompt | Response | ||
| LlamaGuard3 | 8B | 79.4 | 70.5 | 68.0 | 65.7 |
| LlamaGuard4 | 12B | 75.9 | 68.9 | 62.1§ | 53.4 |
| ShieldGemma | 27B | 70.0 | 65.6 | – | 50.4 |
| WildGuard | 7B | 85.8 | 81.4 | 73.0§ | 63.5 |
| NemoGuard | 8B | 82.9 | 78.1 | – | 69.5 |
| PolyGuard-Smol | 0.5B | – | – | 83.8 | 66.8 |
| PolyGuard-Ministral | 8B | – | – | 86.0 | 73.8 |
| PolyGuard-Qwen | 7B | 87.0 | 72.9 | 87.1 | 74.1 |
| Qwen3Guard-Gen | 0.6B | 84.7 | 81.3 | – | 74.2 |
| Qwen3Guard-Gen | 4B | 85.6 | 83.6 | – | 78.1 |
| Qwen3Guard-Gen | 8B | 86.2 | 83.6 | 84.3§ | 77.6 |
| Qwen3Guard-Stream | 0.6B | 84.7 | 78.8 | – | 70.6 |
| Qwen3Guard-Stream | 4B | 86.2 | 81.0 | – | 75.5 |
| Qwen3Guard-Stream | 8B | 86.7 | 80.4 | – | 75.8 |
| Shieldstral | 3B | 88.9‡ | 82.5 | 84.6§ | 78.3§ |
| GPT-OSS-Safeguard | 20B | 88.1‡ | 80.9 | 83.0§ | 80.0§ |
| HaloGuard 1.0 | 0.8B | 90.9 | – | 86.1 | – |
| HaloGuard 1.0 | 4B | 92.1 | – | 88.0 | – |
| HaloGuard 2.0 | 0.8B | – | 83.6 | – | – |
| HaloGuard 2.0-Poly | 0.8B | – | – | – | 83.1 |
Table 9: The HaloGuard family across tasks (F1). English prompt: average over the seven prompt benchmarks of HaloGuard 1.0 (OAI, Aegis, Aegis 2.0, ToxicChat, SimpleSafetyTests, HarmBench, WildGuardTest). English response: average over the six benchmarks of Table 10. Multilingual: PolyGuardPrompts, 17 languages. – marks a task the model does not perform or a score no source reports. Bold marks the best score per column; in the English response column HaloGuard 2.0-0.8B leads at two decimals (83.63 against 83.57 for Qwen3Guard-Gen-4B and -8B, Table 10) with 5–10× fewer parameters. English baselines as reported in Sangameswaran et al. [1] and the Qwen3Guard report [3] (Tables 2, 3 and 11; Qwen3Guard in strict mode). Multilingual baselines as reported in the PolyGuard paper [2] (Table 1) and the Qwen3Guard report (Tables 6 and 15), which agree to within 0.1 where they overlap. ‡Mean of the seven per-benchmark scores reported by Calvi et al. [4] (Figure 5); that paper's scores for WildGuard, LlamaGuard4 and Qwen3Guard-8B on the same benchmarks are within 0.5 of the values above. §PolyGuard F1 as reported by Calvi et al. [4] (Figure 5) on its own 29,240-sample split, with Qwen3Guard averaged over its strict and loose modes, so indicative only (Section 6.3). On prompts, PolyGuard-Qwen is the only model scored under both protocols, and the two differ by 1.2 (85.9 against 87.1); on responses, five models overlap (Section 6.3).
the highest average of any model in Table 10, 83.63, ahead of Qwen3Guard-Gen-4B and -8B (83.57 each) with 5–10× fewer parameters. The margin over those two is small; the size gap is not. Figure 5 plots these averages against model size, the counterpart of the size plot in HaloGuard 1.0 [1]. It is also above every streaming baseline: the best Qwen3Guard-Stream model, at 4B, averages 81.0, and the 0.6B model, the closest in size, 78.8. The gap is not uniform. HaloGuard 2.0-0.8B is the strongest model on HarmB (96.4 against 88.2 for GPT-OSS-Safeguard-20B) and SafeRLHF (81.7 against 70.5 for Qwen3Guard-Gen-8B), and trails the best baseline on the other four, by 3.6 points on BeaverTails, 4.1 on Aegis 2.0, 8.8 on WildG and 9.3 on XSTest-R. Those two deficits differ in kind (Table 11). On XSTest-R, where 82.5% of responses are safe, the remaining errors are mostly false positives: FPR 5.4 against FNR 6.4, or about 20 FPs against 5 FNs. On WildG they are mostly misses: the FPR is 4.9 but the FNR is 30.1, about 69 FPs against 85 FNs, so the guard misses close to a third of WildG's harmful responses. WildG remains the weakest benchmark at 71.9 and is the main target of the next corrective round. On Aegis 2.0 the corrective phase bought recall alone: the FNR fell from 23.9 to 7.9 while the FPR barely moved, from 27.7 to 27.0. It is the one benchmark
A PREPRINT
| Model | Size | HarmB | SafeRLHF | BeaverTails | XSTest-R | Aegis 2.0 | WildG | Avg. |
|---|---|---|---|---|---|---|---|---|
| LlamaGuard3† | 8B | 84.5 | 45.2 | 67.9 | 89.8 | 66.1 | 69.5 | 70.50 |
| LlamaGuard4† | 12B | 83.3 | 42.5 | 68.6 | 88.9 | 63.7 | 66.4 | 68.90 |
| WildGuard† | 7B | 86.3 | 64.2 | 84.4 | 94.7 | 83.2 | 75.4 | 81.37 |
| ShieldGemma† | 9B | 60.4 | 44.2 | 62.4 | 86.3 | 70.8 | 49.9 | 62.33 |
| ShieldGemma† | 27B | 62.9 | 52.6 | 67.6 | 83.0 | 74.9 | 52.4 | 65.57 |
| NemoGuard† | 8B | 81.4 | 57.6 | 78.5 | 86.2 | 87.6 | 77.5 | 78.13 |
| PolyGuard-Qwen† | 7B | 71.1 | 63.3 | 79.5 | 63.4 | 81.9 | 77.9 | 72.85 |
| OmniGuard‡ | 7B | 79.9 | 64.2 | 83.3 | 85.1 | 85.5 | 72.1 | 78.35 |
| Nemotron-3.5-Safety‡ | 4B | 85.3 | 63.2 | 83.3 | 86.9 | 84.9 | 77.6 | 80.20 |
| GPT-OSS-Safeguard‡ | 20B | 88.2 | 63.8 | 83.8 | 93.8 | 75.2 | 80.7 | 80.92 |
| Shieldstrat† | 3B | 87.0 | 62.0 | 85.0 | 93.5 | 87.2 | 80.4 | 82.52 |
| Qwen3Guard-Gen† | 0.6B | 85.0 | 66.6 | 86.1 | 89.7 | 84.2 | 76.3 | 81.32 |
| Qwen3Guard-Gen† | 4B | 86.7 | 69.8 | 86.6 | 92.7 | 86.1 | 79.5 | 83.57 |
| Qwen3Guard-Gen† | 8B | 87.2 | 70.5 | 86.6 | 92.1 | 86.1 | 78.9 | 83.57 |
| Qwen3Guard-Stream† | 0.6B | 83.1 | 62.8 | 84.5 | 84.8 | 81.4 | 76.3 | 78.82 |
| Qwen3Guard-Stream† | 4B | 84.3 | 67.6 | 86.0 | 88.5 | 83.1 | 76.4 | 80.98 |
| Qwen3Guard-Stream† | 8B | 85.0 | 64.6 | 85.9 | 87.5 | 82.6 | 77.0 | 80.43 |
| HaloGuard 2.0, base guard (Phase 1) | 0.8B | 91.6 | 71.7 | 72.3 | 68.0 | 74.1 | 58.9 | 72.76 |
| HaloGuard 2.0-0.8B (Ours) | 0.8B | 96.4 | 81.7 | 83.0 | 85.4 | 83.5 | 71.9 | 83.63 |
Table 10: Response-harmfulness F1 on six English benchmarks. HaloGuard 2.0 is scored by its streaming verdict under one global decision rule; the released model's held-out average is 83.3. The base guard is shown at its own best global rule. Best score per column in bold. The Avg. column is given to two decimals because the top three averages are within 0.06: HaloGuard 2.0-0.8B (83.63, 0.8B) and Qwen3Guard-Gen-4B and -8B (83.57). Baseline averages are the mean of the reported per-benchmark scores. †As reported by Qwen Team [3] (Qwen3Guard models in strict mode). ‡As reported by Calvi et al. [4]. Qwen3Guard's Think column is not part of our suite.
where the FP modes of Section 4.3 did not respond to the corrective data. Pooled over all six benchmarks the released model misses more than it over-flags (Table 14). Table 11 shows where: false positives concentrate on Aegis 2.0, BeaverTails and SafeRLHF, misses on WildG, SafeRLHF and BeaverTails.
| Benchmark | Base guard (Phase 1) | HaloGuard 2.0-0.8B | ||
|---|---|---|---|---|
| FPR ↓ | FNR ↓ | FPR ↓ | FNR ↓ | |
| HarmB | 0.0 | 15.5 | 0.0 | 7.0 |
| SafeRLHF | 28.5 | 31.2 | 17.7 | 21.1 |
| BeaverTails | 26.0 | 32.5 | 18.3 | 19.4 |
| XSTest-R | 14.1 | 14.1 | 5.4 | 6.4 |
| Aegis 2.0 | 27.7 | 23.9 | 27.0 | 7.9 |
| WildG | 14.1 | 28.7 | 4.9 | 30.1 |
Table 11: FPR and FNR (%) per benchmark for the base guard and the released HaloGuard 2.0-0.8B, each under its own decision rule (base guard: or three consecutive ). Pooled rates for both are in Table 14.
The input layer. Table 12 reproduces the prompt results of HaloGuard 1.0 [1], the input guard that HaloGuard 2.0 is deployed behind (Figure 1), so that both layers of the stack are reported in one place. On seven prompt-harmfulness benchmarks the 0.8B input guard averages 90.9 and the 4B model 92.1, the two highest averages among the open guards compared. At its released operating point the 0.8B input guard has an FPR of 4.3 and an FNR of 9.5 (precision 91.8, recall 90.5) [1]. Three benchmarks label both prompts and responses, and on each of them response classification is the harder task for the same model size: HarmBench
A PREPRINT

Figure 4: F1 per benchmark, base guard vs. HaloGuard 2.0-0.8B, with the change above each pair. The largest gains are on the two benchmarks dominated by safe responses, XSTest-R and WildG.
98.7 on prompts against 96.4 on responses, Aegis 2.0 87.9 against 83.5, and WildG 95.9 against 71.9. The gap is largest on WildG, where adversarial prompts are easy to flag but the harmful responses among them are hard to recall. Each guard is scored on its own label, so this compares the two tasks, not the two models.
| Model | Size | OAI | Aegis | Aegis 2.0 | ToxicC | SimpST | HarmB | WildG | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| LlamaGuard4 | 12B | 73.5 | 67.8 | 70.6 | 51.3 | 98.0 | 97.2 | 73.0 | 75.9 |
| WildGuard | 7B | 72.1 | 89.4 | 80.7 | 70.8 | 99.5 | 98.9 | 88.9 | 85.8 |
| ShieldGemma | 27B | 80.5 | 69.0 | 71.6 | 72.9 | 84.4 | 57.3 | 54.3 | 70.0 |
| NemoGuard | 8B | 81.0 | 81.4 | 86.8 | 75.6 | 98.5 | 75.2 | 81.6 | 82.9 |
| PolyGuard-Qwen | 7B | 74.1 | 90.3 | 86.3 | 71.5 | 100.0 | 98.7 | 88.1 | 87.0 |
| Qwen3Guard-Gen | 0.6B | 66.5 | 90.8 | 85.0 | 65.1 | 99.0 | 98.7 | 87.7 | 84.7 |
| Qwen3Guard-Gen | 4B | 68.3 | 90.8 | 85.8 | 69.5 | 99.5 | 100.0 | 85.6 | 85.6 |
| Qwen3Guard-Gen | 8B | 68.8 | 91.4 | 86.1 | 68.9 | 99.5 | 100.0 | 88.9 | 86.2 |
| HaloGuard 1.0 | 0.8B | 83.7 | 86.7 | 87.9 | 83.5 | 100.0 | 98.7 | 95.9 | 90.9 |
| 4B | 87.4 | 88.0 | 89.2 | 84.5 | 100.0 | 99.2 | 96.2 | 92.1 |
Table 12: Prompt harmfulness (F1) of the input guard, HaloGuard 1.0, across seven safety benchmarks: OpenAI Moderation (OAI), Aegis, Aegis 2.0, ToxicChat (ToxicC), SimpleSafetyTests (SimpST), HarmB and WildG. All values as reported in Sangameswaran et al. [1] (Table 14). Best per column in bold.
6.2 Streaming Behaviour
Benchmark F1 says whether the guard eventually reaches the right verdict. It does not say whether it fires at the right time. For that we use a held-out onset set of 664 generated responses forming 332 matched pairs: one prompt, an unsafe response whose harm begins mid-response, and a safe twin that never crosses. The set was frozen before any Phase 2 data was generated and shares no prompts with training. It was, however, produced by the same pipeline as the Phase 2 corpus, so it favours models trained on that corpus; we read it alongside the benchmarks, not instead of them. On this set the base guard handles only 13.9% of pairs correctly, firing on the unsafe response and not on its safe twin. It fires on both in 45.8% of pairs and on neither in 40.4%. It never fires on the safe twin alone. A guard that read the responses would at least sometimes get a pair backwards; a guard that never does is deciding on what the twins share, which is the prompt. Its median first fire on the unsafe responses comes 40 tokens before the onset. The same signature
A PREPRINT

Figure 5: Smaller model, higher average. Response F1 against model size (log scale). (a) Average over the six English benchmarks of Table 10; HaloGuard 2.0-0.8B has the highest average (83.63, against 83.57 for Qwen3Guard-Gen-4B and -8B) at 5–10× smaller size, and is the highest-scoring streaming guard. Hollow markers are streaming guards. (b) PolyGuardPrompts response F1 (Section 6.3); baselines on the same labels as reported by Kumar et al. [2] and Qwen Team [3]. The dashed line is the Pareto frontier: no model is both smaller and more accurate than a model on it.
is visible on the benchmarks: in an intermediate model, 37.4% of FPs fired within the first three response tokens, and the score at the first response token was 0.59 on responses the model would falsely flag against 0.24 on those it would not, a gap that can only come from the prompt. The corrective model learns to read the response. Averaging gives part of that back. We averaged one corrective model with the base guard at several weights, all under the same decision rule, in an earlier Phase 2 round. Moving from the equal average to the corrective model alone raises onset recall from 47.6% to 72.6% while macro F1 falls from 81.0 to 76.3, about five points of onset recall for each point of F1.
6.3 Multilingual Evaluation
We evaluate multilingual transfer on PolyGuardPrompts [2], using its response-harmfulness labels across 17 languages: 29,053 responses, 1,709 conversations each rendered in 17 languages. The benchmark is built from translations of WildGuardMix and natural multilingual interactions. HaloGuard 2.0-Poly-0.8B is trained on PolyGuardMix (Section 4.5), which shares none of the benchmark's prompt-response pairs. Its corrective data is generated from seeds gathered from the benchmark's failures (Section 5.3). HaloGuard 2.0-Poly-0.8B reaches a response F1 of 83.1, macro-averaged over the 17 languages (Table 16, Section A). That is 5.0 points above the strongest baseline on the same labels, Qwen3Guard-Gen-4B (78.1, five times the size; Table 13), and 7.3 points above the strongest streaming guard, Qwen3Guard-Stream-8B (75.8). Baselines come from two reports, the PolyGuard paper [2] and the Qwen3Guard report [3]; for the two models both report, they agree to within 0.1 (LlamaGuard3 65.74 and 65.8, PolyGuard-Qwen 74.08 and 74.0), so we treat them as one protocol. Table 14 sets the operating points of the two released models side by side, and they have opposite error profiles. HaloGuard 2.0-0.8B misses more than it over-flags. HaloGuard 2.0-Poly-0.8B over-flags more than it misses: its errors are 1,482 false positives against 360 false negatives, so its remaining headroom is in
A PREPRINT
precision, not recall. Part of this is base rate. Only 16.6% of PolyGuardPrompts responses are unsafe, so even a low FPR produces more false positives than the guard has misses.
The corrective phase also works through a different error here. Over the PolyGuardMix-only base guard it adds 18.2 points of F1, against 10.9 for the English model (Table 14). The English gain came mainly from fewer FPs, which fell by 38%. The multilingual gain comes mainly from fewer misses: FNs fall by 76%, from 1,531 to 360, while FPs fall by 26%, from 1,999 to 1,482. The same recipe works for both models, through a different mechanism in each. Table 15 breaks the result down by language group and Table 16 (Section A) by language. The European and CJK groups and Arabic stay within 4.4 points of English; performance falls for Thai (73.9) and most sharply for Hindi (64.2). Recall drops most for Hindi: its FNR reaches 22.2, against 4.6 for English, so the guard misses more than one harmful response in five. Shieldstral [4] reports separate PolyGuard prompt and response F1 scores for ten guards (its Figure 5), under a different protocol: 29,240 samples rather than the 29,053 response-labelled rows, and Qwen3Guard averaged over its strict and loose modes. Five of its models are also scored on the same labels above, and for four of them the two figures are within 2 points (LlamaGuard4 54.6 against 53.4, WildGuard 65.3 against 63.5, PolyGuard-Qwen 74.8 against 74.1, Qwen3Guard-8B 78.1 against 77.6); the fifth, ShieldGemma-9B, differs widely (31.8 against 46.8). We list Shieldstral's scores only for the five models with no same-label score, in a separate block: the strongest is GPT-OSS-Safeguard-20B at 80.0, and Shieldstral-3B scores 78.3. The comparison with these rows is indicative rather than exact.
6.4 SOTA Status and Evaluation Scope
SOTA Status. HaloGuard 2.0-0.8B is the strongest open streaming output guard in our comparison. Across six English response-safety benchmarks it reaches a macro F1 of 83.6 under one global streaming rule. That is 2.6 points above the best Qwen3Guard-Stream model (4B, 81.0) and 4.8 above the one closest in size (0.6B, 78.8). It is level with the strongest full-response guards, Qwen3Guard-Gen-4B and -8B (83.57), which see the complete response before deciding and have 5–10x more parameters. It is the best model on HarmBench (96.4) and on SafeRLHF (81.7, 11.2 points above the next model). Pooled over 12,347 responses it operates at 84.1 precision and 80.5 recall (FPR 14.3%, FNR 19.5%), and its remaining error is mostly missed harm, concentrated on WildG. HaloGuard 2.0-Poly-0.8B reaches 83.1 response F1 on PolyGuardPrompts, macro-averaged over 17 languages. That is 5.0 points above Qwen3Guard-Gen-4B (78.1) and 7.3 above the strongest streaming guard, Qwen3Guard-Stream-8B (75.8), with a 6.1% FPR and 7.5% FNR. Its remaining headroom is in precision (75.5) rather than recall (92.5), and in Hindi and Thai. Together with HaloGuard 1.0, which leads the open input guards at 90.9 (0.8B) and 92.1 (4B) prompt F1, the 0.8B input and output guards form a complete moderation stack of 1.6B parameters.
Evaluation scope. Three evaluations reported by recent guards are not part of this release. RTP-LX, as in HaloGuard 1.0, measures the toxicity of stand-alone utterances (insults, slurs, identity attacks). Our constitution does not treat that as harmful response content: a response that is rude but gives no harmful uplift is safe under our policy. For the same reason we do not use Shieldstral's per-language results, which pool RTP-LX with PolyGuard. Reasoning traces: Qwen3Guard also scores responses that include the model's chain of thought. HaloGuard 2.0 was trained only on final responses. A trace of several hundred tokens that deliberates over a harmful request before declining it is a different input distribution, and covering it requires reasoning-trace training data, which we leave to a future release. Refusal detection: WildGuard and Qwen3Guard also label whether a response is a refusal. HaloGuard 2.0 labels harm only: a refusal is safe, and a response that refuses and then complies is unsafe from its onset. PolyGuardPrompts' response labels, by contrast, match our task definition exactly. The gap between our English score on the benchmark (87.1) and the other 16 languages therefore measures how far the guard's response boundary transfers across
A PREPRINT
| Model | Size | Response F1 |
|---|---|---|
| Same response labels | ||
| ShieldGemmab | 9B | 46.8 |
| MD-Judge [27]a | 7B | 49.12 |
| ShieldGemmab | 27B | 50.4 |
| LlamaGuard4b | 12B | 53.4 |
| WildGuardb | 7B | 63.5 |
| LlamaGuard2 [28]a | 8B | 63.62 |
| LlamaGuard3a | 8B | 65.74 |
| PolyGuard-Smola | 0.5B | 66.82 |
| NemoGuardb | 8B | 69.5 |
| Qwen3Guard-Streamb | 0.6B | 70.6 |
| PolyGuard-Ministrala | 8B | 73.75 |
| PolyGuard-Qwena | 7B | 74.08 |
| Qwen3Guard-Genb | 0.6B | 74.2 |
| Qwen3Guard-Streamb | 4B | 75.5 |
| Qwen3Guard-Streamb | 8B | 75.8 |
| Qwen3Guard-Genb | 8B | 77.6 |
| Qwen3Guard-Genb | 4B | 78.1 |
| Different protocol§ | ||
| OmniGuard | 7B | 69.1 |
| Nemotron-Safety [29] | 8B | 73.7 |
| Nemotron-3.5-Safety | 4B | 75.3 |
| Shieldstral | 3B | 78.3 |
| GPT-OSS-Safeguard | 20B | 80.0 |
| HaloGuard 2.0-Poly-0.8B | 0.8B | 83.1 |
Table 13: PolyGuardPrompts response harmfulness F1 (17 languages), sorted by score. Upper block: same response labels as HaloGuard 2.0-Poly-0.8B; a as reported in the PolyGuard paper [2] (Table 1), b as reported in the Qwen3Guard report [3] (Tables 6 and 15; Qwen3Guard at its reported mode). Scores are given at the precision each source reports. § Lower block: PolyGuard scores as reported by Calvi et al. [4] (Figure 5, response panel) for models with no same-label score, on 29,240 samples, so these rows are indicative only.
| Metric | English (6 benchmarks, 12,347) | Multilingual (PolyGuardPrompts, 29,053) | ||
|---|---|---|---|---|
| Base guard | HaloGuard 2.0-0.8B | Base guard | HaloGuard 2.0-Poly-0.8B | |
| Macro F1 ↑ | 72.8 | 83.6 | 64.9 | 83.1 |
| Precision ↑ | 74.0 | 84.1 | 62.4 | 75.5 |
| Recall ↑ | 69.8 | 80.5 | 68.3 | 92.5 |
| FPR ↓ | 23.0 | 14.3 | 8.3 | 6.1 |
| FNR ↓ | 30.2 | 19.5 | 31.7 | 7.5 |
Table 14: Operating points of the two released models and their Phase 1 base guards, each at its own decision rule. Macro F1 is averaged over the six benchmarks (English) or the 17 languages (multilingual). Precision, recall, FPR and FNR are pooled over all responses for English and macro-averaged over languages for the multilingual models; PolyGuardPrompts is balanced across languages, so its pooled and macro values differ by at most 0.4.
languages, which is the question the multilingual variant was built to answer.
A PREPRINT
| Language group | FPR ↓ | FNR ↓ | F1 ↑ |
|---|---|---|---|
| English (reference) | 4.7 | 4.6 | 87.1 |
| CJK | 6.0 | 7.5 | 83.1 |
| Indic | 12.8 | 22.2 | 64.2 |
| Arabic-script | 6.2 | 7.4 | 82.7 |
| European | 5.2 | 5.8 | 85.5 |
| Southeast Asian | 10.0 | 12.0 | 73.9 |
Table 15: HaloGuard 2.0-Poly-0.8B on PolyGuardPrompts by language group (%). Groups follow HaloGuard 1.0 [1]: CJK is Chinese, Japanese and Korean; Indic is Hindi; Arabic-script is Arabic; Southeast Asian is Thai; European is the remaining ten languages. The macro average over all 17 languages is in Table 14; it is not the mean of these six rows.
7 Limitations
Every harmful response that is caught has already emitted the tokens between its onset and the fire. Deployers who cannot tolerate any leakage on the most severe policies should hold back a short buffer of output before display. The averaging step that produces the benchmark gain costs mid-stream detection (Section 6.2). A deployment that cares more about catching harm early than about overall F1 may prefer a model weighted toward the corrective side. An earlier model in this line could be evaded by prepending a single refusal sentence to a harmful response, and by placing a payload after a long benign filler. The second is addressed in serving by dual-window scoring (Section 5.4); the first is addressed in training by unsafe responses that refuse and then comply. Both attack classes are tracked in the weekly red-teaming protocol (Section B), which is how new evasions reach the corrective data. In the Phase 2 corpus onsets are exact by construction. In the Phase 1 corpus they were inferred during corpus construction: a judge returned a verbatim quote of the first span that makes the response unsafe, and the quote was located in the response text by exact, normalised or prefix match to give the character offset. Responses on which two judges disagreed carry no onset, are marked contested, and are excluded from the loss (Equation (4)). The boundary between analytical detail and a usable procedure is sometimes genuinely contested. The multilingual variant has no onset supervision outside English: PolyGuardMix carries response-level labels only, so every unsafe multilingual response is supervised as unsafe from its first token. The English model misses more than it over-flags, most of all on WildG, while the multilingual model over-flags more than it misses (Table 14). A deployment should therefore calibrate each model's threshold to its own error profile rather than reuse one operating point across both. The multilingual rule needs three tokens and cannot flag a one- or two-token harmful response. Hindi and Thai miss substantially more harmful content than the European and CJK groups (Table 15). Every training record is monolingual, so code-switched input is only partly covered.
8 Conclusion
HaloGuard 2.0 builds on HaloGuard 1.0 by shifting from per-prompt decisions to per-token decisions in the model's output. The core rules stay the same, but now the system can look at both sides of each policy boundary, making it easier to see exactly where harm starts. The main idea is that a streaming guard needs to set two boundaries. The first is the content boundary, which works like input moderation and separates responses that encourage harm from those that just discuss harmful topics. The second is a temporal boundary, specific to streaming, that marks the point in a response where there is enough evidence to step in. If the guard is only trained on completions that are harmful from the start, it might miss this temporal boundary and focus only on the prompt. Comparing response pairs makes this issue clear. Adding a corrective training step
A PREPRINT
with these pairs, and then averaging the model weights, raises the six-benchmark F1 score from 72.8 to 83.6. HaloGuard 2.0-Poly-0.8B (the multilingual version) uses the same training objective as PolyGuardMix and supports 17 languages, achieving an F1 of 83.1 on the PolyGuardPrompts response labels. Next up is finding training methods that maintain the streaming improvements during averaging. We also plan to try out larger models as the 0.8B version hasn't been tried above that parameter count yet. In the future we'd like to look at conversation level scoring, category attribution, tool call scoring and joint evaluation of input and output guards on shared test concepts.
References
[1] Navaneeth Sangameswaran, Preetham S, and Ashmiya Lenin. HaloGuard 1.0: An open weights constitutional classifier for multilingual AI safety. arXiv:2607.02079, 2026.
[2] Priyanshu Kumar, Devansh Jain, Akhila Yerukola, Liwei Jiang, Himanshu Beniwal, Thomas Hartvigsen, and Maarten Sap. PolyGuard: A multilingual safety moderation tool for 17 languages. arXiv:2504.04377, 2025.
[3] Qwen Team. Qwen3Guard technical report. arXiv:2510.14276, 2025.
[4] Antonia Calvi, Avinash Sooriyarachchi, Giada Pistilli, Guillaume Lample, Maarten Buyl, Maximilian Augustin, Maximilian Müller, Pierre Stock, Tom Bewley, Wassim Bouaziz, Yimu Pan, et al. Shieldstral. arXiv:2607.25857, 2026.
[5] Aaron Grattafori, Abhimanyu Dubey, Abhinav Jauhri, et al. The Llama 3 herd of models. arXiv:2407.21783, 2024.
[6] Meta. Llama Guard 4: Model card. https://developer.meta.com/ai/docs/model-cards-and-prompt-formats/llama-guard-4/, 2025.
[7] Seungju Han, Kavel Rao, Allyson Ettinger, Liwei Jiang, Bill Yuchen Lin, Nathan Lambert, Yejin Choi, and Nouha Dziri. WildGuard: Open one-stop moderation tools for safety risks, jailbreaks, and refusals of LLMs. arXiv:2406.18495, 2024.
[8] Wenjun Zeng, Yuchi Liu, Ryan Mullins, Ludovic Peran, et al. ShieldGemma: Generative AI content moderation based on Gemma. arXiv:2407.21772, 2024.
[9] Shaona Ghosh, Prasoon Varshney, Makesh Narsimhan Sreedhar, Aishwarya Padmakumar, Traian Rebedea, Jibin Rajan Varghese, and Christopher Parisien. AEGIS2.0: A diverse AI safety dataset and risks taxonomy for alignment of LLM guardrails. In Proceedings of NAACL 2025 (Volume 1: Long Papers), pages 5992–6026, 2025.
[10] Boyu Zhu, Xiaofei Wen, Wenjie Jacky Mo, Tinghui Zhu, Yanan Xie, Peng Qi, and Muhao Chen. OmniGuard: Unified omni-modal guardrails with deliberate reasoning. arXiv:2512.02306, 2025.
[11] Varun Singh, Isabel Hulseman, Anuj Doshi, and Shyamala Prayaga. Nemotron 3.5 Content Safety: Customizable multimodal safety for global enterprise AI. https://huggingface.co/nvidia/Nemotron-3.5-Content-Safety, 2026.
[12] OpenAI. Introducing GPT-OSS-Safeguard. https://openai.com/index/introducing-gpt-oss-safeguard/, 2025.
[13] Hakan Inan, Kartikeya Upasani, Jianfeng Chi, Rashi Rungta, et al. Llama Guard: LLM-based input-output safeguard for human-AI conversations. arXiv:2312.06674, 2023.
[14] Mrinank Sharma, Meg Tong, Jesse Mu, Jerry Wei, et al. Constitutional classifiers: Defending against universal jailbreaks across thousands of hours of red teaming. arXiv:2501.18837, 2025.
A PREPRINT
[15] Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, et al. Constitutional AI: Harmlessness from AI feedback. arXiv:2212.08073, 2022.
[16] Divyansh Kaushik, Eduard Hovy, and Zachary C. Lipton. Learning the difference that makes a difference with counterfactually-augmented data. In ICLR, 2020.
[17] Matt Gardner, Yoav Artzi, Victoria Basmov, Jonathan Berant, et al. Evaluating models' local decision boundaries via contrast sets. In Findings of EMNLP, pages 1307–1323, 2020.
[18] Mitchell Wortsman, Gabriel Ilharco, Jong Wook Kim, Mike Li, Simon Kornblith, et al. Robust fine-tuning of zero-shot models. In CVPR, 2022.
[19] Mitchell Wortsman, Gabriel Ilharco, Samir Yitzhak Gadre, Rebecca Roelofs, et al. Model soups: Averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. In ICML, 2022.
[20] Mantas Mazeika, Long Phan, Xuwang Yin, Andy Zou, et al. HarmBench: A standardized evaluation framework for automated red teaming and robust refusal. arXiv:2402.04249, 2024.
[21] Jiaming Ji, Mickel Liu, Juntao Dai, Xuehai Pan, Chi Zhang, Ce Bian, Ruiyang Sun, Yizhou Wang, and Yaodong Yang. BeaverTails: Towards improved safety alignment of LLM via a human-preference dataset. arXiv:2307.04657, 2023.
[22] Jiaming Ji, Donghai Hong, Borong Zhang, Boyuan Chen, et al. PKU-SafeRLHF: Towards multi-level safety alignment for LLMs with human preference. arXiv:2406.15513, 2024.
[23] Paul Röttger, Hannah Rose Kirk, Bertie Vidgen, Giuseppe Attanasio, Federico Bianchi, and Dirk Hovy. XSTest: A test suite for identifying exaggerated safety behaviours in large language models. arXiv:2308.01263, 2024.
[24] Qwen Team. Qwen3.5: Towards native multimodal agents. https://qwen.ai/blog?id=qwen3.5, February 2026.
[25] Songlin Yang, Jan Kautz, and Ali Hatamizadeh. Gated delta networks: Improving Mamba2 with delta rule. In ICLR, 2025.
[26] Tri Dao. FlashAttention-2: Faster attention with better parallelism and work partitioning. arXiv:2307.08691, 2023.
[27] Lijun Li, Bowen Dong, Ruohui Wang, Xuhao Hu, Wangmeng Zuo, Dahua Lin, Yu Qiao, and Jing Shao. SALAD-Bench: A hierarchical and comprehensive safety benchmark for large language models. arXiv:2402.05044, 2024.
[28] Llama Team, AI @ Meta. Meta Llama Guard 2: Model card. https://huggingface.co/meta-llama/Meta-Llama-Guard-2-8B, 2024.
[29] Raviraj Joshi, Rakesh Paul, Kanishk Singla, Anusha Kamath, Michael Evans, Katherine Luna, Shaona Ghosh, Utkarsh Vaidya, Eileen Long, Sanjay Singh Chauhan, and Niranjan Wartikar. CultureGuard: Towards culturally-aware dataset and guard model for multilingual safety applications. In Proceedings of IJCNLP-AACL 2025, 2025.
A Per-Language Results
Table 16 lists the response F1 of HaloGuard 2.0-Poly-0.8B for each of the 17 languages of PolyGuardPrompts, sorted by score. The macro average is 83.1.
A PREPRINT
| Language | F1 | Language | F1 |
|---|---|---|---|
| Spanish | 88.4 | Chinese | 83.5 |
| English | 87.1 | Japanese | 83.4 |
| Italian | 86.6 | Russian | 83.3 |
| Swedish | 86.2 | Arabic | 82.7 |
| French | 86.0 | Korean | 82.5 |
| Polish | 85.9 | Czech | 82.1 |
| Portuguese | 85.9 | Thai | 73.9 |
| German | 85.3 | Hindi | 64.2 |
| Dutch | 85.2 |
Table 16: PolyGuardPrompts response F1 of HaloGuard 2.0-Poly-0.8B per language.
B Continuous Adversarial Red-Teaming
Static benchmarks saturate once a defender adapts to them. HaloGuard 1.0 is therefore hardened by an always-on red-teaming competition run in rolling seven-day cycles: a four-day submission window in which an open pool of red teamers attacks a guarded, tool-using agent, followed by a three-day training window in which successful attacks are curated and used to retrain the guard [1]. We extend the same protocol to the output layer (Figure 6).

Figure 6: The continuous red-teaming loop with both guards active. Each successful attack is attributed to the layer that should have stopped it and becomes training data for that guard in the next cycle.
Two guards, one attack. Red teamers now attack a stack in which HaloGuard 1.0 screens the prompt and HaloGuard 2.0 screens the response, so a successful attack has to pass both layers. Each success is attributed to the layer that should have caught it. If the prompt itself was harmful under the constitution and passed the input guard, the attack becomes input-guard training data. If the prompt was acceptable, or harmful in a way the input guard could not have recognised, and the response turned harmful, the attack becomes output-guard training data. For the output guard, the response is labelled at the token level like any other corrective example: the curator marks the onset, and the attack enters the next Phase 2 corpus with a matched safe response to the same prompt, so that the correction teaches the guard what changed rather than which prompt to avoid.
Output-specific attack classes. Three attack classes target the output layer and are tracked separately. Late-onset attacks have the model produce a long benign lead-in before the harmful content, testing whether the guard keeps reading and whether its context window can be exhausted. Refuse-then-comply attacks have the model open with a refusal or disclaimer and then provide the content, testing whether an opening refusal suppresses the guard. Format-shift attacks have the model emit harmful content in an encoding, a code block or another language, testing whether the guard follows the content across surface changes.
Scoring. As in HaloGuard 1.0, each cycle covers two axes. Content attacks are scored by an ensemble
A PREPRINT
of LLM judges with a graded rubric (full success, partial success, refusal); agentic attacks are scored by exact-string matching against secrets planted in the agent's environment, which a judge cannot be talked into accepting. Submissions are deduplicated with a similarity filter, and attacks aimed at the judge rather than the agent are disallowed.