TL;DR
Inside Out introduces a structured, evolvable memory framework called PersonaTree to maintain long-term user profiles in dialogue systems. By training a lightweight MemListener model using reinforcement learning to execute atomic tree operations (ADD, UPDATE, DELETE, NO_OP), the system compresses massive dialogue histories into a clean, hierarchical schema, matching or exceeding the performance of massive reasoning models at a fraction of the context cost.
What Problem Does This Paper Address?
Long-term personalized dialogue agents need to remember user traits and history over time, but they face a fundamental bottleneck: the contradiction between unbounded conversation history and finite LLM context windows.
Simply stuffing entire histories into the prompt ("Full Context") causes context saturation, drives up computational costs, and introduces irrelevant noise that degrades reasoning. Existing alternatives fall short: static user profiles are too rigid to capture implicit preferences over time, while vector-retrieval methods treat memories as fragmented text snippets without a trained mechanism to decide what is actually worth keeping. This lack of value-based judgment leads to bloated memory repositories and inconsistent agent personas.
Methods
The Inside Out framework addresses these challenges through three core components:
- PersonaTree Initialization: The framework establishes a hierarchical memory tree grounded in an interdisciplinary Biopsychosocial schema (scientifically organizing user traits into Biological, Psychological, and Social dimensions). This structure constrains memory growth and ensures interpretability.
- MemListener: Instead of using a massive model to manage memory, the authors train a lightweight model (
MemListener) to act as a dedicated memory editor. It processes dialogue chunks and outputs standardized atomic operations:ADD,UPDATE,DELETE, orNO_OP. - Process-Reward RL Training: To ensure precise tree editing,
MemListeneris trained via Supervised Fine-Tuning (SFT) followed by Reinforcement Learning (RL). It uses the Direct Alignment Policy Optimization (DAPO) loss within a Group Relative Policy Optimization (GRPO) framework, guided by an LLM-as-a-judge to score the accuracy of the generated operations. - Adaptive Response Generation: During inference, the system dynamically switches between two modes:
- Fast Mode: Directly injects the structured
PersonaTreeinto the context for latency-sensitive, standard interactions. - Agentic Recall Mode: Triggered for complex, long-tail queries, using the tree to guide deep parallel retrieval and context fusion from the full dialogue history.
Datasets
- PersonaMem: The primary benchmark used for evaluation, featuring multi-turn conversations that track static and evolving user attributes across 15 real-world task categories.
- HaluMem & PersonaMem Subsets: Used to construct a high-quality dataset of 28k instructions. The authors leveraged DeepSeek-R1-0528 to generate the initial supervision signals for training the memory-operation model.
Key Insights and Ideas
- Small Models for Memory, Large Models for Generation: The paper demonstrates a powerful collaborative paradigm. Memory maintenance doesn't require a massive, expensive model; a specialized 7B or 8B model can execute precise structural updates, leaving the heavy lifting of response generation to a separate LLM.
- Direct Generation Wins: When translating raw dialogue into tree updates, directly generating the operation sequence outperforms a two-stage "extract-then-transform" approach. The two-stage method tends to accumulate errors and lose subtle semantic or temporal cues.
- Massive Context Compression: Moving from raw dialogue text to the structured
PersonaTreecompresses the context from ~32K tokens down to just 2.2K–2.6K tokens on average, filtering out background noise while retaining core persona details.
Key Results
- State-of-the-Art Personalization: On the PersonaMem benchmark,
PersonaTree-ALLcombined with a trainedQwen3-8B-RLmodel achieved an overall accuracy of 75.38% (using Longcat-Flash-Chat as the generator), outperforming the raw "ALL Dialogue" baseline by +13.58% and beating the strongest comparative memory system, MemoryOS, by +10.35%. - Comparable to Heavyweight Reasoners: The lightweight, RL-tuned
MemListenerachieved memory-operation decision performance comparable to, or even surpassing, frontier models like DeepSeek-R1-0528 and Gemini-3-Pro.
Limitations and Future Work
- Fixed Schema Boundaries: The current implementation relies on a predefined biopsychosocial schema. The authors note that future iterations could benefit from composable subtrees or plugin-style modules to handle finer-grained domain knowledge or cross-domain user states.
- Temporal and Provenance Metadata: While text rewrites work well for stable traits, memories requiring strict temporal tracking or version coexistence would benefit from adding explicit timestamps, confidence scores, and source pointers.
- Privacy and Governance: Although an explicit tree structure makes memory deletion and auditing straightforward, real-world deployment will require tighter integration with user-facing privacy controls and data-minimization policies.
Summary updated