arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.05552cs.CLcs.AI
收藏

上下文代理:非线性对话的动态 discourse 树

Context-Agent: Dynamic Discourse Trees for Non-Linear Dialogue

Shandong University(山东大学)

Junan Hu, Shudan Guo, Wenqi Liu, Jianhua Yin, Yinwei Wei

AI总结:

本文提出 Context-Agent 框架,通过动态树结构建模对话历史,解决非线性对话中的上下文管理问题,并引入 NTM 评估基准,提升多轮对话任务完成率和效率。

摘要:

大型语言模型在许多语言任务中表现出色,但在管理人类非线性对话流方面仍面临根本性挑战。将对话历史视为扁平线性序列的常见方法与自然话语的层次和分支结构不匹配,导致上下文利用效率低下和长期交互中连贯性丧失。为解决这一限制,我们引入 Context-Agent,一种将多轮对话历史建模为动态树结构的新框架。该方法反映了对话的内在非线性,使模型能够维护和导航多个对话分支,对应不同话题。此外,为促进稳健评估,我们引入了非线性任务多轮对话(NTM)基准,专门用于评估模型在长视距非线性场景中的性能。我们的实验表明,Context-Agent 提高了任务完成率,并在各种 LLM 上改进了 token 效率,凸显了结构化上下文管理在复杂动态对话中的价值。数据集和代码可在 GitHub 上获取。

英文摘要:

Large Language Models demonstrate outstanding performance in many language tasks but still face fundamental challenges in managing the non-linear flow of human conversation. The prevalent approach of treating dialogue history as a flat, linear sequence is misaligned with the intrinsically hierarchical and branching structure of natural discourse, leading to inefficient context utilization and a loss of coherence during extended interactions involving topic shifts or instruction refinements. To address this limitation, we introduce Context-Agent, a novel framework that models multi-turn dialogue history as a dynamic tree structure. This approach mirrors the inherent non-linearity of conversation, enabling the model to maintain and navigate multiple dialogue branches corresponding to different topics. Furthermore, to facilitate robust evaluation, we introduce the Non-linear Task Multi-turn Dialogue (NTM) benchmark, specifically designed to assess model performance in long-horizon, non-linear scenarios. Our experiments demonstrate that Context-Agent enhances task completion rates and improves token efficiency across various LLMs, underscoring the value of structured context management for complex, dynamic dialogues. The dataset and code is available at GitHub.

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

↑