[Paper Review] TA-Mem: Tool-Augmented Autonomous Memory Retrieval for LLM in Long-Term Conversational QA
TA-Mem introduces a tool-augmented autonomous memory retrieval framework for LLMs to handle long-term conversations by adaptive memory extraction, multi-indexed storage, and tool-driven retrieval. It shows improved performance on LoCoMo over baselines and analyzes tool usage across question types.
Large Language Model (LLM) has exhibited strong reasoning ability in text-based contexts across various domains, yet the limitation of context window poses challenges for the model on long-range inference tasks and necessitates a memory storage system. While many current storage approaches have been proposed with episodic notes and graph representations of memory, retrieval methods still primarily rely on predefined workflows or static similarity top-k over embeddings. To address this inflexibility, we introduced a novel tool-augmented autonomous memory retrieval framework (TA-Mem), which contains: (1) a memory extraction LLM agent which is prompted to adaptively chuck an input into sub-context based on semantic correlation, and extract information into structured notes, (2) a multi-indexed memory database designed for different types of query methods including both key-based lookup and similarity-based retrieval, (3) a tool-augmented memory retrieval agent which explores the memory autonomously by selecting appropriate tools provided by the database based on the user input, and decides whether to proceed to the next iteration or finalizing the response after reasoning on the fetched memories. The TA-Mem is evaluated on the LoCoMo dataset, achieving significant performance improvements over existing baseline approaches. In addition, an analysis of tool use across different question types also demonstrates the adaptivity of the proposed method.
Motivation & Objective
- Address the memory and context window limitations of LLMs in long-term conversational QA.
- Develop a flexible memory retrieval system with adaptive extraction, multi-type indexing, and tool-based retrieval.
- Enable autonomous exploration of memory using tools to improve retrieval and response generation.
Proposed method
- Introduce a memory extraction LLM agent that adaptively chunks inputs into semantically correlated sub-contexts and extracts structured notes.
- Design a multi-indexed memory database supporting key-based lookup and similarity-based retrieval for diverse query methods.
- Propose a tool-augmented memory retrieval agent that autonomously selects appropriate tools from the database based on user input and reasoning progress.
Experimental results
Research questions
- RQ1How can memory retrieval for LLM-based long-term QA be made more flexible than fixed workflows or static embeddings?
- RQ2Can a tool-augmented memory retrieval agent autonomously navigate memories to improve response quality?
- RQ3What are the benefits of multi-indexed memory storage for different query modalities in long-term conversational tasks?
Key findings
- The TA-Mem framework achieves significant performance improvements over existing baselines on the LoCoMo dataset.
- Tool use analysis across different question types demonstrates adaptivity of the approach.
- The framework combines adaptive memory extraction with autonomous tool-driven retrieval to enhance long-term QA.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.