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

U-Fold:面向用户中心任务的动态意图感知上下文折叠

U-Fold: Dynamic Intent-Aware Context Folding for User-Centric Agents

Zhejiang University(浙江大学);Tongyi Lab, Alibaba Group(通义实验室,阿里巴巴集团);Westlake University(西湖大学)

Jin Su, Runnan Fang, Yeqiu Li, Xiaobin Wang, Shihao Cai, Pengjun Xie, Ningyu Zhang, Fajie Yuan

AI总结:

U-Fold通过动态意图感知上下文折叠方法,提升用户为中心任务中长上下文处理的效率和准确性。

摘要:

基于大型语言模型(LLM)的智能体已在许多工具增强的场景中成功部署,但其扩展性从根本上受到上下文长度的限制。现有的上下文折叠方法通过总结过去的交互来缓解这一问题,但它们通常针对单查询或单意图场景进行设计。在更现实的以用户为中心的对话中,我们识别出两种主要的失败模式:(i)它们不可逆地丢弃了对后续决策至关重要的细粒度约束和中间事实;(ii)它们的摘要未能跟踪用户意图的演变,导致遗漏和错误操作。为了解决这些限制,我们提出了U-Fold,一种专门针对用户中心任务的动态上下文折叠框架。U-Fold保留完整的用户-智能体对话和工具调用历史,但在每一步都使用两个核心组件生成意图感知的演变对话摘要和紧凑的、任务相关的工具日志。在τ-bench、τ²-bench、VitaBench以及更难的上下文膨胀设置上的大量实验表明,U-Fold在长上下文设置中始终优于ReAct(在长上下文设置中达到71.4%的胜率)和先前的折叠基线(改进幅度高达27.0%),特别是在长、嘈杂、多轮任务中。我们的研究证明,U-Fold是将上下文管理技术从单查询基准转移到现实的以用户为中心的应用中的重要一步。

英文摘要:

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.

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

↑