Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

Recent advancements in large language models have significantly improved their context windows, yet challenges in effective long-term memory management remain. We introduce MemTree, an algorithm that leverages a dynamic, tree-structured memory representation to optimize the organization, retrieval, and integration of information, akin to human cognitive schemas. MemTree organizes memory hierarchically, with each node encapsulating aggregated textual content, corresponding semantic embeddings, and varying abstraction levels across the tree's depths. Our algorithm dynamically adapts this memory structure by computing and comparing semantic embeddings of new and existing information to enrich the model's context-awareness. This approach allows MemTree to handle complex reasoning and extended interactions more effectively than traditional memory augmentation methods, which often rely on flat lookup tables. Evaluations on benchmarks for multi-turn dialogue understanding and document question answering show that MemTree significantly enhances performance in scenarios that demand structured memory management.

Alireza Rezazadeh, Zichao Li, Wei Wei, Yujia Bao• 2024

Related benchmarks

TaskDatasetResultRank
Long-context Memory EvaluationLongMemEval
Average Score36.92
103
Long-context MemoryLocomo
F1 Score34.85
25
Long-context Memory Retrieval and ReasoningLOCOMO (Evaluation)
Single-Hop Retrieval F138.73
20
Long-term Conversational Memory Question AnsweringLoCoMo (test)
Single Hop F148.35
15
Long-term Conversational Memory Question AnsweringLocomo
F1 Score15.1
13
Long-horizon Conversational Memory Answer-QualityRealMem
LLM Accuracy53.6
9
Question AnsweringLongMemEval MAB
LLM-judge Accuracy54.3
9
Question AnsweringLocomo
LLM-judge Accuracy36.9
9
Question AnsweringRealMem
LLM-Judge Accuracy59.7
9
Long-horizon Conversational Memory Answer-QualityLongMemEval MAB
Accuracy48.3
9
Showing 10 of 12 rows

Other info

Follow for update