在与ARACH说话前进行总结:一种无需训练的推理时插件,通过全局注意力重新分配增强LLM
Summarize Before You Speak with ARACH: A Training-Free Inference-Time Plug-In for Enhancing LLMs via Global Attention Reallocation
AI总结:
ARACH是一种无需训练的推理时插件,通过自适应上下文集聚合上下文并重新分配注意力,提升LLM性能,无需参数更新。
摘要:
大型语言模型(LLMs)取得了显著的性能,但进一步的提升往往需要昂贵的训练。这促使人们关注训练后的技术,特别是无需训练的方法,这些方法在推理时间提高模型性能而不需要更新权重。大多数无需训练的方法将模型视为黑箱,并通过输入/输出层面的干预来改进输出,如通过重复采样、重排序/验证或搜索进行测试时间扩展。相比之下,它们很少提供一种即插即用的机制来干预模型的内部计算。我们提出了ARACH(通过自适应上下文集的注意力重新分配),这是一种无需训练的推理时插件,通过自适应上下文集来聚合上下文并重新分配注意力。在多个语言建模任务上的广泛实验显示,通过适度的推理开销和无参数更新,实现了稳定的提升。注意力分析进一步表明,ARACH缓解了注意力sink现象。这些结果表明,工程化模型的内部计算提供了一种不同的推理时间策略,与基于提示的测试时间方法和基于训练的后训练方法根本不同。
英文摘要:
Large language models (LLMs) achieve remarkable performance, yet further gains often require costly training. This has motivated growing interest in post-training techniques-especially training-free approaches that improve models at inference time without updating weights. Most training-free methods treat the model as a black box and improve outputs via input/output-level interventions, such as prompt design and test-time scaling through repeated sampling, reranking/verification, or search. In contrast, they rarely offer a plug-and-play mechanism to intervene in a model's internal computation. We propose ARACH(Attention Reallocation via an Adaptive Context Hub), a training-free inference-time plug-in that augments LLMs with an adaptive context hub to aggregate context and reallocate attention. Extensive experiments across multiple language modeling tasks show consistent improvements with modest inference overhead and no parameter updates. Attention analyses further suggest that ARACH mitigates the attention sink phenomenon. These results indicate that engineering a model's internal computation offers a distinct inference-time strategy, fundamentally different from both prompt-based test-time methods and training-based post-training approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。