让大模型对话更懂用户意图,动态保留关键信息
U-Fold: Dynamic Intent-Aware Context Folding for User-Centric Agents
- 按用户意图动态折叠对话,保留关键细节和工具调用历史
- 在长对话中胜过ReAct 71.4%的胜率,最多提升27.0%
- 适合需要持续理解用户需求的复杂多轮交互场景
基于大语言模型的智能体在工具增强场景中已广泛应用,但其可扩展性受限于上下文长度。现有上下文折叠方法虽能压缩历史交互,但多针对单次查询或单一意图场景。在真实用户中心对话中,存在两大缺陷:(i) 会不可逆地丢弃影响后续决策的细粒度约束与中间事实;(ii) 摘要无法跟踪用户意图演变,导致遗漏与错误行为。为此,我们提出U-Fold,一种面向用户中心任务的动态上下文折叠框架。U-Fold保留完整的用户-代理对话与工具调用历史,每轮通过两个核心组件生成意图感知、持续演进的对话摘要和紧凑的任务相关工具日志。在τ-bench、τ²-bench、VitaBench及更具挑战性的上下文膨胀设置下的实验表明,U-Fold在长上下文场景下显著优于ReAct(胜率71.4%)和已有折叠基线(最高提升27.0%),尤其在长时、嘈杂、多轮任务中表现突出。研究证明,U-Fold是将上下文管理技术从单次查询基准迁移到真实用户中心应用的重要一步。
原文摘要 · Abstract (English)
Large language model (LLM)-based agents have been successfully deployed in many tool-augmented settings, but their scalability is fundamentally constrained by context length. Existing context-folding methods mitigate this issue by summarizing past interactions, yet they are typically designed for single-query or single-intent scenarios. In more realistic user-centric dialogues, we identify two major failure modes: (i) they irreversibly discard fine-grained constraints and intermediate facts that are crucial for later decisions, and (ii) their summaries fail to track evolving user intent, leading to omissions and erroneous actions. To address these limitations, we propose U-Fold, a dynamic context-folding framework tailored to user-centric tasks. U-Fold retains the full user--agent dialogue and tool-call history but, at each turn, uses two core components to produce an intent-aware, evolving dialogue summary and a compact, task-relevant tool log. Extensive experiments on $τ$-bench, $τ^2$-bench, VitaBench, and harder context-inflated settings show that U-Fold consistently outperforms ReAct (achieving a 71.4% win rate in long-context settings) and prior folding baselines (with improvements of up to 27.0%), particularly on long, noisy, multi-turn tasks. Our study demonstrates that U-Fold is a promising step toward transferring context-management techniques from single-query benchmarks to realistic user-centric applications.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。