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
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Reasoning, Memory & RAG › Agent Memory Management · Type: new method · Keywords: long-term dialogue reasoning, reinforcement learning pseudo-task, tree-structured retrieval, cross-session memory, temporal reasoning, compositional multi-hop reasoning
Areas: LLM Reasoning › Reasoning Strategies › Agent Memory and Reasoning; Memory › Agent Memory Systems › Memory-Augmented Agents; Long Context › Long-context mechanisms › Agent memory representations; AI Agents › Agent Capabilities › LLM Agent Memory; RL for LLMs & Agents › Language Model Agents › LLM Agent Skills
Summary
StateTree introduces a data-driven reinforcement learning pseudo-task that builds a tree-structured auxiliary task from multi-session dialogues, enabling long-term dialogue reasoning with cross-session retrieval, temporal reasoning, knowledge update, and compositional multi-hop reasoning.
Explained to a 5-year-old
Imagine you have a friend who talks to you every day and tells you stories. Sometimes you need to remember something from a week ago when you talk today. It can be hard because the old stories are mixed with new ones. The researchers wanted to help computers remember long conversations better. They created a game where the computer follows a tree path to find hidden questions using old memories.
Explained to a 5-year-old, longer
Imagine you have a friend who talks to you every day and tells you stories. Sometimes you need to remember something from a week ago when you talk today. It can be hard because the old stories are mixed with new ones. The researchers wanted to help computers remember long conversations better. They created a special puzzle that looks like a tree, where each branch holds a piece of a memory. The computer has to walk from the start of the tree to the end, picking up clues from different days. Along the way it compares dates to know which branch to take. At the end it finds a hidden question and answers it. They teach the computer to solve this puzzle step by step, starting with easy trees and getting harder. They also added a version where each step gives a tiny piece of reasoning, so the computer learns to put pieces together. After learning on short conversations, the computer can handle very long ones without needing a lot of extra computing power. This helps the computer understand and answer questions that need memory from many past sessions. It also lets the computer update its knowledge when new information comes in. The result is a smarter assistant that can keep track of long-term conversations and answer questions that need remembering over time.
For a technical reader
The paper presents a reinforcement learning pseudo-task that turns multi-session dialogues into a tree-structured retrieval problem, allowing models to practice cross-session and temporal reasoning. A curriculum schedule gradually deepens the tree, and a compositional variant injects step-level reasoning fragments to encourage multi-hop inference. Trained on short contexts, the approach generalizes to very long contexts without the full computational cost of standard long-context RL, achieving significant gains on a long-term dialogue benchmark.
Problem
Long-term dialogue reasoning in personalized assistants is challenging because relevant evidence is scattered across sessions, preferences may change over time, and standard long-context training is limited by data scarcity and high computational costs.
Method
The approach constructs a tree-structured auxiliary task from scarce multi-session dialogues, embedding key-value records across sessions into a binary tree and training the model via curriculum reinforcement learning that progressively increases tree depth. A compositional variant adds step-level reasoning fragments on edges, encouraging the model to compose partial cues into coherent queries.
Results
The approach yields up to +23.60% improvement on LongMemEval with a 7B model and reaches 59.00% accuracy with a 14B model, surpassing the baseline QwenLong-L1-32B (45.20%).
Contributions
It introduces a data-driven reinforcement learning pseudo-task that creates a tree-structured auxiliary task for multi-session dialogues, enabling cross-session retrieval, temporal reasoning, knowledge update, and compositional multi-hop reasoning while scaling to long contexts without full-length RL costs.
Practical relevance
Enables personalized dialogue assistants to maintain and reason over long-term user interactions efficiently, reducing computational overhead.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction