Kelp: A Streaming Safeguard for Large Models via Latent Dynamics-Guided Risk Detection
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
Large models (LMs) are powerful content generators, yet their open-ended nature can also introduce potential risks, such as generating harmful or biased content. Existing guardrails mostly perform post-hoc detection that may expose unsafe content before it is caught, and the latency constraints further push them toward lightweight models, limiting detection accuracy. In this work, we propose Kelp, a novel plug-in framework that enables streaming risk detection within the LM generation pipeline. Kelp leverages intermediate LM hidden states through a Streaming Latent Dynamics Head (SLD), which models the temporal evolution of risk across the generated sequence for more accurate real-time risk detection. To ensure reliable streaming moderation in real applications, we introduce an Anchored Temporal Consistency (ATC) loss to enforce monotonic harm predictions by embedding a benign-then-harmful temporal prior. Besides, for a rigorous evaluation of streaming guardrails, we also present StreamGuardBench-a model-grounded benchmark featuring on-the-fly responses from each protected model, reflecting real-world streaming scenarios in both text and vision-language tasks. Across diverse models and datasets, Kelp consistently outperforms state-of-the-art post-hoc guardrails and prior plug-in probes (15.61% higher average F1), while using only 20M parameters and adding less than 0.5 ms of per-token latency.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 40 of its 46 references that are in the map. First posted on arXiv 9 Oct 2025.
Builds on
40 of 46 references.
Closest ancestors · 6
Same direction, newest first
- 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
- 2025OMNIGUARD: An Efficient Approach for AI Safety Moderation Across Languages and Modalities29 May
- 2025Aegis2.0: A Diverse AI Safety Dataset and Risks Taxonomy for Alignment of LLM Guardrails15 Jan
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs26 Jun
- 2024PKU-SafeRLHF: Towards Multi-Level Safety Alignment for LLMs with Human Preference20 Jun
Other references · 34
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2025Qwen3 Technical Reportcited by 8,195
- 2025Qwen2.5-VL Technical Reportcited by 5,418
- 2024GPT-4o System Cardcited by 4,467
- 2018Neural Ordinary Differential Equationscited by 3,733
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2024Qwen2 Technical Reportcited by 2,076
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
22 more
- 2025InternVL3: Exploring Advanced Training and Test-Time Recipes for Open-Source Multimodal Modelscited by 1,769
- 2025Gemma 3 Technical Reportcited by 1,686
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 828
- 2025Qwen2.5-Omni Technical Reportcited by 704
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
- 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 462
- 2023FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Promptscited by 368
- 2023MM-SafetyBench: A Benchmark for Safety Evaluation of Multimodal Large Language Modelscited by 255
- 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 233
- 2024SALAD-Bench: A Hierarchical and Comprehensive Safety Benchmark for Large Language Modelscited by 225
- 2024JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attackscited by 208
- 2024Llama Guard 3 Vision: Safeguarding Human-AI Image Understanding Conversationscited by 118
- 2021Closed-form Continuous-time Neural Modelscited by 65
- 2025Adversarial Attacks against Closed-Source MLLMs via Feature Optimal Alignmentcited by 42
- 2024S-Eval: Towards Automated and Comprehensive Safety Evaluation for Large Language Modelscited by 28
- 2025ShieldGemma 2: Robust and Tractable Image Content Moderationcited by 27
- 2023Res-Tuning: A Flexible and Efficient Tuning Paradigm via Unbinding Tuner from Backbonecited by 26
- 2024Model Surgery: Modulating LLM's Behavior Via Simple Parameter Editingcited by 23
- 2025Investigating task-specific prompts and sparse autoencoders for activation monitoringcited by 13
- 2023Enhancing Few-shot CLIP with Semantic-Aware Fine-Tuningcited by 4
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026NExT-Guard: Training-Free Streaming Safeguard without Token-Level Labelscited by 3
- 2026Predict, Don't React: Value-Based Safety Forecasting for LLM Streamingcited by 2
- 2026SentGuard: Sentence-Level Streaming Guardrails for Large Language Modelscited by 2
- 2026ROM: Real-time Overthinking Mitigation via Streaming Detection and Interventioncited by 1
- 2026AERIC: Anticipatory Hidden-State Monitoring for Implicit Harmful Dialoguecited by 0
- 2026SingProbe Technical Reportcited by 0
- 2026SingProbe Technical Report31 Aug 2026
- 2026SentGuard: Sentence-Level Streaming Guardrails for Large Language Models1 Jun 2026
- 2026AERIC: Anticipatory Hidden-State Monitoring for Implicit Harmful Dialogue13 May 2026
- 2026Predict, Don't React: Value-Based Safety Forecasting for LLM Streaming5 Apr 2026
- 2026ROM: Real-time Overthinking Mitigation via Streaming Detection and Intervention23 Mar 2026
- 2026NExT-Guard: Training-Free Streaming Safeguard without Token-Level Labels10 Feb 2026