Deterministic guard withholds any chunk that completes a dangerous lexical pair
The pair-completion guard reliably withholds every chunk that makes both lexical predicates observable
AI/ML arXiv 10 Aug 2026 Method Prototype evidence
Published as “Withholding the Completing Chunk: Deterministic Pair-Completion Guardrails for Streaming LLM Output”
Why it matters
The technique offers a low-variance backstop for deterministic lexical policies in streaming LLM deployments, but must be combined with broader semantic moderation and careful chunk-size choices to be practical.
Summary
The deterministic pair-completion guard always withholds the first chunk that completes a configured lexical predicate pair, matching a buffered scanner in every trial (32/32). It produced zero flags on 338 human-derived safe AEGIS responses and also zero detections on 394 jury-labelled unsafe responses, showing exactness for its limited policy but very low coverage of general harmful output. The evidence is strong for the specific conformance claim but limited to the small set of four predicate pairs and synthetic fixtures.
What they found 3
- All synthetic pair trials were detected and the completing chunk was withheld.
“All 32 pair trials were detected, all 32 labels matched the buffered scanner, and all 32 completing chunks were withheld.”
- Zero flags on a human-derived safe AEGIS subset (338 responses).
“The scanner flagged 0/338 responses, giving an observed conditional flag incidence of 0%.”
- Zero detections on 394 jury-labelled unsafe AEGIS responses.
“The fixed-pair scanner detected 0/394 responses (observed detection rate 0%; two-sided Wilson 95% interval 0%-0.97%).”
Caveats 5
- The guard detected none of the 394 unsafe responses, indicating very limited recall for general harmful content.
- Fine-grained chunking incurs high latency (up to 829 ms for 8-char chunks on long outputs), which may be impractical for low-latency deployments.
- The construction is exact only with respect to its fixed predicates; it does not estimate general harmful-output recall, infer intent, or prevent release of the first predicate before the second appears.
- The number 32 is not evidence about the prevalence or diversity of real attacks.
- The result does not show that the guard has a false-positive rate below 1% with 95% confidence; the upper Wilson bound on conditional flag incidence is approximately 1.12%.
What’s new here 4
- Provides an exact, deterministic mechanism that withholds the chunk completing a lexical predicate pair in streaming LLM output.
- Separates mechanism correctness from safety recall by using a bounded reproducible evaluation matrix of synthetic fixtures.
- Compares four streaming release strategies (full-prefix, bounded window, chunk-local, complete buffer) for the same deterministic policy.
- Measures the computational cost and concurrency characteristics of repeated full-prefix rescanning at various chunk granularities.