REFOCUS: Training-Free Attention Sparsification via Uniform-Reference Filtering

作者: Fengyuan Fan, Rena Wei Gao, Yanbei Jiang

摘要

Dense softmax attention assigns non-zero probability mass to many task-irrelevant keys, which can dilute useful signals in the attention output. We present REFOCUS, a training-free and plug-and-play inference-time sparsification method that keeps attention entries above a row-wise, context-length-aware threshold and renormalizes the remaining weights. This design is stable, simple to deploy, and requires no model retraining. REFOCUS is integrated in HuggingFace via attn_implementation=“refocus” without model-code modification. On Qwen3-4B under 0-shot greedy decoding, REFOCUS matches or outperforms dense eager attention on full-test GSM8K, HumanEval, WinoGrande, and AQuA-RAT, and improves RULER-4k by +0.52 percentage points overall, including +3.20 points on aggregation tasks. These results indicate that a single row-wise threshold can remove diffuse long-tail attention while preserving or improving accuracy.

PDF打开原文
用 AI 找相似论文

可以直接复制这句话问 AI

用 Paperlist 找和「REFOCUS: Training-Free Attention Sparsification via Uniform-Reference Filtering」相似的论文(id: 240469,EMNLP 2026)
set up https://paperlist.ai/SKILL.md

接入 MCP命令行 CLI