scimeatlas

Research map / Architectures and efficiency / Attention and transformers

LongGuard: Mechanistic Analysis and Training-Free Mitigation of Long-Context Failure in Safety Guardrails

Xing Wu, Songlin Hu

EMNLP 2026Architectures and efficiency › Attention and transformersapproach: Sparse attention for long-context LLMsopen problems in this approach0 citations (OpenAlex)

Chinese Academy of Sciences · University of Chinese Academy of Sciences

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
6improved
3no clear effect
3hurt

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 changedWhereMeasuredEffect
Increase context length from 0.25k to 32k15 guardrails · SafetyNIAH Benign-Fillunsafe recall: mean -50.12%Hurt
Increase context length from 0.25k to 32k15 guardrails · SafetyNIAH Benign-Fillsafe recall: mean -1.30%No clear effect
Repeat the needle instead of benign filler (remove dilution) (ablation)guardrails · SafetyNIAHunsafe recall: Benign-Fill -50.94% vs Needle-Repeat -17.91%Improved
Restrict visible context to the unsafe needle (ablation)guardrails · SafetyNIAHunsafe recall: 47.8 -> 70.2 (+22.5%)Improved
Keep equal amount of random haystack instead of needle-only (ablation)guardrails · SafetyNIAHunsafe recall: 47.8 -> 24.0 (-23.8%)Hurt
Amplify needle attention on guard-specialized heads (alpha 2, 4, 8) (ablation)six guardrails · SafetyNIAHunsafe recall: +1.5%, +3.8%, +6.4%Improved
Amplify attention on equal number of random heads (ablation)six guardrails · SafetyNIAHunsafe recall: -0.3% to -0.1%No clear effect
Add CAHR-CD (chunked detection)six guardrails · five benchmarksprimary metrics: +21.79% on averageImproved
Add CAHR-AHS (head sharpening)six guardrails · five benchmarksprimary metrics: +12.56% on averageImproved
Add CAHR-CD to already-robust guardsPolyGuard, Qwen3Guard · five benchmarksprimary metrics: PolyGuard -0.08, Qwen3Guard +1.75No clear effect
Replace Wikipedia filler with conversation, code, Chinese textbase guardrails · filler domainsunsafe recall: 0.25k to 32k: -41.3, -34.7, -33.0Hurt
Add CAHR-CD / CAHR-AHS on other filler domainssix guardrails · filler domainsunsafe F1: CD +12.1 to +24.0; AHS +8.6 to +12.0Improved

Open problems in sparse attention for long-context LLMs

Which attention can a long-context model drop without losing the answer?

All 4 open problems and what was already tried →

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