Manuscript Offprint

arXiv:2611.02134

HaloGuard 2.0: An Open-Weights Constitutional Output Guard for Multilingual Response Safety

Ashmiya Lenin, Navaneeth Sangameswaran, Preetham S

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:

  1. 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).

  2. 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.

  3. 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.

  4. 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).

  5. 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.

References (23)