StateTree: Enhancing Long-Term Dialogue Reasoning via Reinforcement Learning
Naen Xu, Wanqing Cui, Yibo Hu, Shixin Hong, Hengyu An, Meiguang Jin, Junfeng Ma, Tianyu Du
Abstract
Large language models deployed as personalized assistants must reason over long, evolving interaction histories. However, in long-term dialogue reasoning, relevant evidence is scattered across sessions, preferences may be revised over time, and standard long-context training fails to address these challenges under data scarcity and prohibitive computational costs. We propose StateTree, a data-driven RL method that constructs a challenging auxiliary task from scarce dialogues with verifiable ground truth. StateTree augments multi-session dialogues with a tree-structured path-tracing task: key-value records are embedded across sessions to form a binary tree. Solving the task requires the model to traverse from root to leaf by retrieving records across sessions and comparing timestamps to resolve branches, then recover the hidden target question among distractor leaves. We apply curriculum RL training progressively increasing tree depth and introduce a compositional variant whose edges carry step-level reasoning fragments, training the model to compose partial cues into coherent queries. Trained on 10K-token contexts, StateTree generalizes to 128K tokens without full-length RL costs and exhibits capabilities including cross-session retrieval, temporal reasoning, knowledge update, and compositional multi-hop reasoning. StateTree outperforms both SFT and RL-based baselines while preserving short-context general reasoning. StateTree-7B achieves gains up to +23.60% on LongMemEval (128k), and StateTree-14B reaches 59.00% accuracy on LongMemEval, surpassing QwenLong-L1-32B (45.20%).
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
- Comments
- NeurIPS 2026
Related papers
APDMem: Agent-Controlled Progressive Disclosure for Query-Adaptive Long-Term Memory
Shared title terminologycs.CLChin-Lun Fu, Anagha Kulkarni, Hong Ni et al.
Mem++: Non-Destructive Memory for Long-Term Organizational LLM Agents
Shared title terminologycs.CLAhmad Yehia, Aly O. Abdelkareem, Islam Ahmed et al.
ReHoPER: Receding-Horizon Planning for Enhanced Reasoning
Shared title terminologycs.CLSaeed Ahmadnia, Cornelia Caragea
Can LLMs Reason Over Long Horizons? An Empirical Evaluation of Context Strategies for Longitudinal Clinical Reasoning
Shared title terminologycs.CLTaye Akinrele, Noorbakhsh Amiri Golilarz, Subash Neupane et al.
Lightweight Reasoning Transfer via Chain-of-Thought Vector Projection
Shared title terminologycs.CLYulin Qi, Shuo Xu, Shuxia Lin et al.
Tells of a Lying Machine: Analyzing LLM-Generated Strategic Dialogue in Chinese Werewolf
Shared title terminologycs.CLXian Cui, Gan Yang, Dongqi Han et al.