TERM improves jailbreak robustness while keeping over-refusal low
TERM increases resistance to jailbreak attacks without raising over-refusal rates
AI/ML arXiv 10 Nov 2026 Defense Prototype evidence
Published as “POEM: Output-Relative Block-Sparse Attention for Long-Context Prefilling”
Why it matters
The method enables substantially faster inference for very long prompts without major loss of quality, which is valuable for applications like document retrieval or long-form generation.
Summary
POEM achieves up to a 6.5× speedup over dense FlashAttention-2 while keeping accuracy essentially on par with full attention on long-context benchmarks up to 128K tokens. It does this by scoring blocks with a combined attention-mass and output-deviation metric and calibrating per-head retention thresholds offline. The evidence comes from experiments on LongBench and RULER across three LLMs where POEM matches dense scores within about 1 point and is the fastest among compared sparse methods.
What they found 2
- POEM attains up to a 6.5× attention speedup over FlashAttention-2.
“achieving up to a 6.5× attention speedup over FlashAttention-2.”
- POEM maintains accuracy parity with dense attention.
“POEM maintains accuracy parity with dense attention while achieving up to a 6.5× attention speedup over FlashAttention-2.”
Caveats 3
- On Llama-3.1-8B the average score drops from 88.97 (dense) to 87.74 (POEM), a 1.23-point loss.
- On Qwen3-8B the average score falls from 86.52 (dense) to 84.94 (POEM), a 1.58-point loss.
- Future work could estimate block outputs more accurately before attention and extend the output-relative criterion to KV cache eviction during decoding and to trainable sparse attention.
What’s new here 4
- A training-free block-sparse attention method that adds an output-deviation term to the usual attention-mass importance proxy.
- Derivation of a theoretical bound linking head-level output error to overall prediction divergence, guiding per-head threshold calibration.
- An offline, sensitivity-aware calibration procedure that sets different retention thresholds for groups of heads.
- A two-stage selection pipeline that first uses cheap mass estimates then refines with the output-relative score.