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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Su, Jin, Fang, Runnan, Li, Yeqiu, Wang, Xiaobin, Cai, Shihao, Xie, Pengjun, Zhang, Ningyu, Yuan, Fajie
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914280564064256
author Su, Jin
Fang, Runnan
Li, Yeqiu
Wang, Xiaobin
Cai, Shihao
Xie, Pengjun
Zhang, Ningyu
Yuan, Fajie
author_facet Su, Jin
Fang, Runnan
Li, Yeqiu
Wang, Xiaobin
Cai, Shihao
Xie, Pengjun
Zhang, Ningyu
Yuan, Fajie
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2601_18285
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle U-Fold: Dynamic Intent-Aware Context Folding for User-Centric Agents
Su, Jin
Fang, Runnan
Li, Yeqiu
Wang, Xiaobin
Cai, Shihao
Xie, Pengjun
Zhang, Ningyu
Yuan, Fajie
Computation and Language
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.
title U-Fold: Dynamic Intent-Aware Context Folding for User-Centric Agents
topic Computation and Language
url https://arxiv.org/abs/2601.18285