arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2607.01792cs.CLcs.LG
收藏

PARTREP: 学习在仅解码器LLM中重复什么

PARTREP: Learning What to Repeat for Decoder-only LLMs

Bandung Institute of Technology(万隆理工学院);Pohang University of Science and Technology(浦项科技大学)

Andikawati P Widjaja, Yongjun Kim, Hyounghun Kim, Jaeho Lee

AI总结:

针对仅解码器LLM因果注意力导致的信息流不对称问题,提出PartRep方法,通过选择最不可预测的token进行重复,在保留大部分性能提升的同时显著降低KV缓存和预计算开销。

摘要:

虽然仅解码器LLM在大量自然语言任务上表现出色,但因果注意力导致信息流不对称:后面的token比前面的token具有更丰富的上下文基础。一个简单有效的补救措施是提示重复——在生成前仅附加提示的第二份副本即可重新分配各位置的基础信息并提高推理性能。然而,原始提示的完整重复会使KV缓存占用翻倍,并在预填充阶段使注意力成本增加四倍,这使得它在长上下文场景中不实用。我们提出PartRep,一种选择性增强方法,仅附加信息量最大的token而非整个提示。我们使用token级别的负对数似然(NLL)作为选择信号,基于以下假设:越不可预测的token越难以从周围上下文中恢复,因此更能从后期位置重复中受益。为了避免完整前向传播进行评分的高昂成本,我们训练一个轻量级门控网络,从早期层隐藏状态预测高NLL的token,从而在预填充中期通过提前退出实现token选择。在八个基准测试(包括MMLU、GSM8K和RULER)和三个模型系列(Qwen2.5、Llama3.2、Gemma4)上,PartRep保留了完整重复的大部分收益,同时仅使用其59.4%的KV缓存和79.0%的预填充FLOPs。

英文摘要:

While decoder-only LLMs excel at a vast array of natural language tasks, it suffers from an asymmetric information flow induced by causal attention: later tokens are richer in contextual grounding than earlier ones. A simple and effective remedy is prompt repetition -- just appending a second copy of prompt before generation can redistribute grounding across positions and improve reasoning performance. However, full repetition of the original prompt doubles the KV cache footprint and quadruples attention cost during prefill, making it impractical for long-context settings. We propose PartRep, a selective augmentation method that appends only the most informative tokens -- rather than the entire prompt. We use token-wise negative log-likelihood (NLL) as a selection signal, motivated by the hypothesis that less predictable tokens are less recoverable from surrounding context and therefore benefit more from late-position repetition. To avoid the heavy cost of a full forward pass for scoring, we train a lightweight gate that predicts high-NLL tokens from early-layer hidden states, enabling token selection during mid-prefill via early exit. Across eight benchmarks (including MMLU, GSM8K, and RULER) and three model families (Qwen2.5, Llama3.2, Gemma4), PartRep retains most of the gains of full repetition while using only 59.4\% of its KV cache and 79.0\% of its prefill FLOPs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑