Saved in:
Bibliographic Details
Main Authors: Hu, Junan, Guo, Shudan, Liu, Wenqi, Yin, Jianhua, Wei, Yinwei
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.05552
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915941608062976
author Hu, Junan
Guo, Shudan
Liu, Wenqi
Yin, Jianhua
Wei, Yinwei
author_facet Hu, Junan
Guo, Shudan
Liu, Wenqi
Yin, Jianhua
Wei, Yinwei
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2604_05552
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Context-Agent: Dynamic Discourse Trees for Non-Linear Dialogue
Hu, Junan
Guo, Shudan
Liu, Wenqi
Yin, Jianhua
Wei, Yinwei
Computation and Language
Artificial Intelligence
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.
title Context-Agent: Dynamic Discourse Trees for Non-Linear Dialogue
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2604.05552