ADTGuard: Adaptive Depth-Time Safeguard for Streaming Inference in Large Language Models
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
Large Language Models (LLMs) can generate fluent responses to diverse user requests, yet streaming may expose users to harmful content before generation is complete. Existing guardrails face two limitations in this setting. First, post-hoc moderation at response or chunk boundaries delays intervention, risking harmful exposure when content is released before verification. Second, even with token-level detection, coarse response-level supervision does not specify when harmful content begins, while fixed-layer readouts may miss relevant safety signals at other depths. To address these limitations, we introduce ADTGuard, which checks each token before release, progressively refines token-level training targets, and adapts layer selection to the current prefix. ADTGuard models risk across depth and time through Depth-Time Safety Dynamics (DTSD), which integrates safety evidence across layers at each token and uses it to guide risk accumulation over successive tokens. To adapt the choice of observation layers to the current prefix, we propose the Causal Depth Router (CDR). With only response-level labels available, we further develop Risk-Onset Target Refinement (RTR) to progressively construct token-level training targets for both components. Through extensive experiments across multiple safety benchmarks, we demonstrate that ADTGuard consistently achieves strong streaming detection performance, matching or surpassing state-of-the-art safeguards while requiring only 16M trainable parameters and maintaining competitive per-token latency.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 37 of its 40 references that are in the map. Submitted 27 Oct 2026.
Builds on
37 of 40 references.
Closest ancestors · 12
Same direction, newest first
- 2026SentGuard: Sentence-Level Streaming Guardrails for Large Language Models1 Jun
- 2026LLM Safety From Within: Detecting Harmful Content with Internal Representations20 Apr
- 2026Predict, Don't React: Value-Based Safety Forecasting for LLM Streaming5 Apr
- 2025Qwen3Guard Technical Report16 Oct
- 2025Kelp: A Streaming Safeguard for Large Models via Latent Dynamics-Guided Risk Detection9 Oct
- 2025LLMs Encode Harmfulness and Refusal Separately16 Jul
- 2025From Judgment to Interference: Early Stopping LLM Harmful Outputs via Streaming Content Monitoring11 Jun
- 2025Disentangled Safety Adapters Enable Efficient Guardrails and Flexible Inference-Time Alignment30 May
- 2025Aegis2.0: A Diverse AI Safety Dataset and Risks Taxonomy for Alignment of LLM Guardrails15 Jan
- 2024HiddenGuard: Fine-Grained Safe Generation with Specialized Representation Router3 Oct
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs26 Jun
- 2024Refusal in Language Models Is Mediated by a Single Direction17 Jun
Other references · 25
- 2017Attention Is All You Needcited by 62,125
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2025Qwen3 Technical Reportcited by 9,994
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 5,111
- 2018Neural Ordinary Differential Equationscited by 3,935
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,611
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
- 2016Temporal Ensembling for Semi-Supervised Learningcited by 1,074
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 1,038
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 908
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 520
- 2022Confident Adaptive Language Modelingcited by 348
13 more
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 294
- 2019Depth-Adaptive Transformercited by 256
- 2025Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teamingcited by 206
- 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 189
- 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 146
- 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Mannercited by 67
- 2026Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal Jailbreakscited by 56
- 2024S-Eval: Towards Automated and Comprehensive Safety Evaluation for Large Language Modelscited by 42
- 2020ProSelfLC: Progressive Self Label Correction for Training Robust Deep Neural Networkscited by 34
- 2019Dynamic Layer Aggregation for Neural Machine Translation with Routing-by-Agreementcited by 12
- 2026TrajGuard: Streaming Hidden-state Trajectory Detection for Decoding-time Jailbreak Defensecited by 6
- 2026Segment-Level Coherence for Robust Harmful Intent Probing in LLMscited by 6
- 2026A BERTology View of LLM Orchestrations: Token- and Layer-Selective Probes for Efficient Single-Pass Classificationcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026NExT-Guard: Training-Free Streaming Safeguard without Token-Level Labels
- 2026HaloGuard 2.0: An Open-Weights Constitutional Output Guard for Multilingual Response Safety
- 2026PGuard: A Native, Streaming, and Plug-in Guardrail for Multimodal Large Language Models
- 2026Stop Early, Spend Less: Hidden-State Probes as a Practical Recipe for Streaming Moderation of LLM Outputs
- 2025SafeRoute: Adaptive Model Selection for Efficient and Accurate Safety Guardrails in Large Language Models
- 2026Safety Targeted Embedding Exploit via Refinement
- 2024RigorLLM: Resilient Guardrails for Large Language Models against Undesired Content
- 2026Safe at One Loop, Risky at Another: Aligning Safety Across Recurrent Depths in Looped Language Models