Withholding the Completing Chunk: Deterministic Pair-Completion Guardrails for Streaming LLM Output
Christopher M. Frost
Key points
From the paper's conclusion- We study a narrow deterministic construction in which each committed danger signature is the conjunction of two lexical predicates.
Abstract
Streaming language-model output creates a release-timing problem: complete-response moderation acts after streamed text has escaped, whereas repeated semantic classification of partial text can be costly and unstable. We study a narrow deterministic construction in which each committed danger signature is the conjunction of two lexical predicates. The guard scans the accumulated prefix before every release and withholds the first chunk that makes both predicates observable. Across four signature families, eight chunk sizes, and 32 mechanism trials, streaming decisions matched the buffered scanner and withheld every pair-completing chunk; eight single-predicate controls passed. In a separate 512-trial strategy comparison, full-prefix scanning and complete buffering detected all configured pairs, a 512-character window detected 96/128, and chunk-local scanning detected 38/128. Fixed pairs flagged 0/338 human-derived safe responses and detected 0/394 jury-labelled unsafe responses, confirming narrow rather than general harm coverage. A calibrated official Llama Guard 3 1B baseline classified 310/338 safe responses as safe and 202/394 unsafe responses as unsafe. Repeated-prefix scanner time on 16,384-character responses ranged from 13.261 ms to 829.640 ms across tested chunk sizes. Pair completion is therefore an exact release-boundary backstop for a small fixed policy, not a substitute for semantic moderation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- HaloGuard 2.0: An Open-Weights Constitutional Output Guard for Multilingual Response SafetyarXiv · 2026
- Run One, Get Two: Near-Free Streaming Safety Checks for Local LLMsarXiv · 2026
- C-SafeGen: Certified Safe LLM Generation with Claim-Based Streaming GuardrailsarXiv · 2026
- PGuard: A Native, Streaming, and Plug-in Guardrail for Multimodal Large Language ModelsarXiv · 2026
- No Perfect Guardrail & No Perfect Guard: On the Decidability of Output Policies for Large Language ModelsarXiv · 2026
- Answering While You Type: Optimizing Time-to-Answer with Streaming GenerationarXiv · 2026