Research map / Large language models / Language, safety and interpretability
LLM Safety From Within: Detecting Harmful Content with Internal Representations
Difan Jiao, Yilun Liu, Ye Yuan, Zhenwei Tang, Linfeng Du, Haolun Wu, Ashton Anderson
University of Toronto · LMU Munich · McGill University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add adaptive layer weighting instead of uniform aggregation (ablation) | SIREN (Qwen3-0.6B) · average over 7 safety benchmarks | macro F1: 84.3 -> 85.6 | Improved |
| add adaptive layer weighting instead of uniform aggregation (ablation) | SIREN (Llama3.2-1B) · average over 7 safety benchmarks | macro F1: 84.4 -> 85.7 | Improved |
| raise neuron selection threshold eta from 0.2 to 0.6-0.9 (ablation) | SIREN (Qwen3-0.6B) · average over 7 safety benchmarks | macro F1: 82.6 -> 85.6 | Improved |
| use all neurons (eta=1.0) instead of safety-neuron selection (eta=0.8) (ablation) | SIREN (Qwen3-0.6B) · average over 7 safety benchmarks | macro F1: 85.6 -> 84.9 | Hurt |
| enlarge candidate set of regularization strength C (ablation) | SIREN · average over 7 safety benchmarks | macro F1: 85.6 -> 85.6 | No clear effect |
| use cross-layer aggregation instead of a single-layer probe (ablation) | SIREN · average over benchmarks (Qwen3-4B probes) | F1: about 8 points | Improved |
| use middle-layer probe instead of terminal layer | linear probe · average over benchmarks (Qwen3-4B) | F1: peak around 79% | Improved |
| combine SIREN from several backbones with stacked ensemble | SIREN · average over 7 safety benchmarks | macro F1: 86.7 -> 87.7 | Improved |
| train SIREN on guard model internals instead of using the guard directly | Qwen3Guard-4B · average over 7 safety benchmarks | macro F1: 83.4 -> 87.6 | Improved |
| train SIREN on guard model internals instead of using the guard directly | LlamaGuard3-8B · average over 7 safety benchmarks | macro F1: 77.0 -> 87.1 | Improved |
| use SIREN instead of fine-tuned guard (trainable parameters) | Qwen3-4B · trainable parameters | parameters: 14M vs billion-level (250x fewer) | Improved |
| use SIREN instead of generative guard (inference FLOPs) | guard models · inference FLOPs | FLOPs: guards about 4x higher cost | Improved |
Open problems in safety alignment of LLMs
How can LLM safety be shown to hold across languages, multi-turn use and models beyond small open ones?
- Safety is tested in English or a few languages only. · 30 papers state it
- Results come from a few open models, mostly small or mid-sized. · 26 papers state it
- Scores depend on an LLM judge that may be biased. · 23 papers state it
Closest papers by meaning
- From Judgment to Interference: Early Stopping LLM Harmful Outputs via Streaming Content Monitoring (NeurIPS 2025 · similarity 0.89)
- WildGuard: Open One-stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs (NeurIPS 2024 · similarity 0.89)
- LLMs Encode Harmfulness and Refusal Separately (NeurIPS 2025 · similarity 0.88)
- HarmAug: Effective Data Augmentation for Knowledge Distillation of Safety Guard Models (ICLR 2025 · similarity 0.88)
- RSafe: Incentivizing proactive reasoning to build robust and adaptive LLM safeguards (NeurIPS 2025 · similarity 0.88)
- SG-Bench: Evaluating LLM Safety Generalization Across Diverse Tasks and Prompt Types (NeurIPS 2024 · similarity 0.87)
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.