arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.21278cs.CLcs.AIcs.HC
收藏

对话树架构:一种面向上下文感知多分支LLM对话的结构化框架

Conversation Tree Architecture: A Structured Framework for Context-Aware Multi-Branch LLM Conversations

Pandemonium Research(Pandemonium研究院)

Pranav Hemanth, Sampriti Saha

AI总结:

本文提出对话树架构(CTA),通过层次化结构管理LLM对话,解决传统扁平结构导致的上下文污染问题,提供结构化对话上下文管理方法。

摘要:

大型语言模型(LLMs)越来越多地用于扩展、多主题对话,但当前对话接口的扁平、只追加结构导致上下文集中在一个无界窗口中,使不同主题的对话线相互干扰,逐步降低响应质量。我们称之为逻辑上下文污染。本文引入对话树架构(CTA),一种层次化框架,将LLM对话组织为由离散、上下文隔离节点构成的树。每个节点维护自己的本地上下文窗口;结构化机制规定上下文如何在父节点和子节点之间流动,下游在分支创建时和上游在分支删除时。我们还引入了易逝节点、短暂分支,其本地上下文必须在清除前被选择性合并或永久丢弃。我们正式化了架构的基本原理,刻画了上下文流动中的开放设计问题,将我们的框架与LLM内存管理的先前工作联系起来,并描述了一个工作原型实现。CTA为结构化对话上下文管理提供了原则性基础,并自然扩展到多代理设置。

英文摘要:

Large language models (LLMs) are increasingly deployed for extended, multi-topic conversations, yet the flat, append-only structure of current conversation interfaces introduces a fundamental limitation: all context accumulates in a single unbounded window, causing topically distinct threads to bleed into one another and progressively degrade response quality. We term this failure mode logical context poisoning. In this paper, we introduce the Conversation Tree Architecture (CTA), a hierarchical framework that organizes LLM conversations as trees of discrete, context-isolated nodes. Each node maintains its own local context window; structured mechanisms govern how context flows between parent and child nodes, downstream on branch creation and upstream on branch deletion. We additionally introduce volatile nodes, transient branches whose local context must be selectively merged upward or permanently discarded before purging. We formalize the architecture's primitives, characterize the open design problems in context flow, relate our framework to prior work in LLM memory management, and describe a working prototype implementation. The CTA provides a principled foundation for structured conversational context management and extends naturally to multi-agent settings.

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

↑