atlas

Research map / Large language models / Language, safety and interpretability

From Judgment to Interference: Early Stopping LLM Harmful Outputs via Streaming Content Monitoring

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Safety alignment of LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Builds FineHarm (29K prompt-response pairs with POS-based token-level harm labels) and trains a Qwen2.5-based Streaming Content Monitor with holistic/token dual supervision and a logic-consistency loss for early stopping of harmful LLM outputs.

Problem

Existing content moderators judge harmfulness only on complete LLM outputs, causing latency; partial detection moderators trained on full responses suffer a training-inference gap, and fine-grained token-level harmful annotations are lacking.

Approach

A streaming token-level harm monitor (SCM) trained with hierarchical consistency-aware learning, where a holistic response-level scorer on the last token is tied to token-level scores via a propositional logic loss; token labels come from a sentence-then-POS heuristic annotation, and Delay-k rule decides early termination.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use native streaming detection with SCM instead of cumulative full detectionQwen2.5-0.5B · FineHarm testmacro F1: 88.77 -> 95.64Helped
Use native streaming detection with SCM instead of cumulative full detectionQwen2.5-1.5B · FineHarm testmacro F1: 87.79 -> 97.91Helped
Use native streaming detection with SCM instead of cumulative full detectionQwen2.5-7B · FineHarm testmacro F1: 78.60 -> 97.45Helped
Add logic consistency loss (ablation)SCM-0.5B · FineHarm testmacro F1: 94.78 -> 95.64Helped
Add holistic response-level loss (ablation)SCM-0.5B · FineHarm testmacro F1: 92.78 -> 95.64Helped
Add logic consistency loss (ablation)SCM-1.5B · FineHarm testmacro F1: 92.53 -> 97.91Helped
Add holistic response-level loss (ablation)SCM-1.5B · FineHarm testmacro F1: 93.79 -> 97.91Helped
Add logic consistency loss (ablation)SCM-7B · FineHarm testmacro F1: 96.13 -> 97.45Helped
Add holistic response-level loss (ablation)SCM-7B · FineHarm testmacro F1: 90.78 -> 97.45Helped
Use SCM token-level signals for alignment instead of sequence-level DPOLlama-3.1-8B-Uncensored · PKU-SafeRLHF, Emotional harmharmlessness score: 2.60 -> 7.20Helped
Use SCM token-level signals for alignment instead of sequence-level DPOLlama-3.1-8B-Uncensored · MT-Benchhelpfulness score (avg): 5.61 -> 5.42Hurt
Use POS-based filtering to annotate harmful words rather than the Direct, Diff, or Delete strategiesSCM-1.5B · FineHarm annotation studymacro F1: 95.38; 89.92; 92.76 -> 97.91Helped

Surprising findings

Limitations

Experimental setup

Datasets: FineHarm WildGuard WildJailbreak PKU-SafeRLHF MT-Bench ToxicChat ToxiGen

Benchmarks: FineHarm ToxicChat ToxiGen MT-Bench PKU-SafeRLHF

Metrics: macro F1 precision recall F1 helpfulness score harmlessness score latency

Baselines: HateBERT ToxDectRoBERTa Google Perspective OpenAI Moderation LlamaGuard-3-8B ModernBERT Qwen2.5 (partial detection) DPO

Builds on: Qwen2.5 ModernBERT DPO

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy