arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.06869cs.CL
收藏

Rhea: 以角色意识的启发式片段注意力用于对话大语言模型

Role-aware Heuristic Episodic Attention for Conversational LLMs

National Key Laboratory of Parallel and Distributed Computing(平行与分布式计算国家重点实验室);College of Computer Science and Technology(计算机科学与技术学院);National University of Defense Technology(国防科学技术大学)

Wanyang Hong, Zhaoning Zhang, Yi Chen, Libo Zhang, Baihui Liu, Linbo Qiao, Zhiliang Tian, Dongsheng Li

AI总结:

Rhea通过角色意识启发式片段注意力框架,有效缓解多轮对话中上下文衰减问题,提升对话模型的准确性和指令一致性。

摘要:

大型语言模型(LLMs)在单轮任务上取得了显著成效,但其在多轮对话中的效果却显著下降。我们将这种现象定义为累积上下文衰减——由注意力污染、稀释和漂移引起的上下文完整性逐步退化。为解决这一挑战,我们提出了Rhea(角色意识启发式片段注意力),一种新的框架,将对话历史分为两个功能独立的记忆模块:(1)一个指令记忆(IM),通过结构优先机制持续存储高保真的全局约束;(2)一个片段记忆(EM),通过不对称噪声控制和启发式上下文检索动态管理用户-模型交互。在推理过程中,Rhea通过应用其优先注意力构建高信噪比的上下文:选择性整合相关片段信息,同时始终优先考虑全局指令。为了验证这种方法,我们在多个多轮对话基准上进行了实验,包括MT-Eval和Long-MT-Bench+,结果显示Rhea缓解了性能衰减,并在10点尺度上将整体准确性提高了1.04点(比强基线高出16%)。此外,Rhea在长周期交互中保持了接近完美的指令保真度(IAR>8.1)。这些结果表明,Rhea为构建更精确、指令一致的对话LLM提供了一个系统且有效的框架。

英文摘要:

Large language models often lose track of persistent instructions and relevant information as multi-turn conversations grow. We study this cumulative contextual decay through three related failure modes: attention pollution, dilution, and drift. We propose REA(Role-aware Heuristic Episodic Attention), a context-management framework that assigns different persistence and representation policies to instructions and episodic interactions. Instructional Memory retains identified global constraints in a dedicated prefix. Episodic Memory preserves user inputs and compresses model replies, while heuristic retrieval selects raw text, compressed representations, or omission for each historical turn. On Long-MT-Bench+, REA improves the judge score from 6.32 to 7.36 on a 10-point scale, a 16.5% relative gain over the Vanilla baseline, and reduces average latency by 2.91x. Additional evaluations show aggregate gains on three backbones spanning 1.7B-7B parameters and on Chinese and English role-playing tasks. These results support role-aware context management as a practical approach to maintaining conversational continuity and instruction adherence.

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

↑