atlas

Research map / Large language models / Retrieval and knowledge

From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMs

ICLR 2025 · Large language models › Retrieval and knowledge · approach: Retrieval-augmented reasoning · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes MemTree, an online tree-structured memory in which new information is inserted top-down via embedding similarity with LLM-based summary aggregation along the path, evaluated against flat and offline hierarchical memory methods on dialogue and document QA.

Problem

LLM long-term memory is typically a flat lookup table of isolated entries, which fails to capture structure and cannot be updated online by offline hierarchical methods (RAPTOR, GraphRAG) without full rebuilds.

Approach

Maintain a dynamic tree memory where new content is routed top-down by cosine similarity against an adaptive depth-dependent threshold, creating leaves or merging into parents; ancestor summaries are updated by LLM aggregation, enabling online hierarchical memory with collapsed-tree retrieval.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace flat MemoryStream memory with dynamic tree memoryGPT-4o on MSC-E · MSC-Eoverall accuracy: 80.7 -> 82.5Helped
replace flat MemoryStream memory with dynamic tree memoryGPT-4o on MSC · MSCaccuracy: 84.4 -> 84.8No clear effect
replace flat MemoryStream memory with dynamic tree memoryLlama-3.1-70B on QuALITY · QuALITY Overallaccuracy: 43.8 -> 59.8Helped
replace flat MemoryStream memory with dynamic tree memoryGPT-4o on MultiHop RAG · MultiHop RAG Comparisonaccuracy: 64.8 -> 73.9Helped
replace flat MemoryStream memory with dynamic tree memoryGPT-4o on MultiHop RAG · MultiHop RAG Temporalaccuracy: 59.3 -> 68.4Helped
use traversal retrieval instead of collapsed retrieval with k ≤ 5 (ablation)MemTree · MultiHop RAG, especially temporal queriesaccuracyHurt
use traversal retrieval with k=10 instead of collapsed retrieval (ablation)MemTree · MultiHop RAGaccuracyNo clear effect
construct the tree with GPT-4o-mini and text-embed-3-small instead of GPT-4o and text-embed-3-large (ablation)MemTree · MultiHop RAG Overallaccuracy: 80.5 -> 78.4Hurt
construct the tree with Llama-3.1-8B and text-embed-3-small instead of GPT-4o and text-embed-3-large (ablation)MemTree · MultiHop RAG Overallaccuracy: 80.5 -> 78.1Hurt
vary the adaptive threshold parameters θ0 and λ (ablation)MemTree · MultiHop RAG OverallaccuracyNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Multi-Session Chat MSC-E (extended, generated with GPT-4o-style prompting) QuALITY MultiHop RAG

Benchmarks: Multi-Session Chat MSC-E QuALITY MultiHop RAG

Metrics: accuracy ROUGE-L recall

Baselines: MemoryStream MemGPT RAPTOR GraphRAG Full history (naive concatenation)

Builds on: RAPTOR MemoryStream MemGPT GraphRAG OTD online top-down clustering

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy