Nanyang Technological University
A feedback-updatable framework for hierarchical memory retrieval in long conversations
Abstract
dc:description.abstractThis dissertation presents the design and implementation of a feedback-updatable framework for hierarchical memory retrieval in long conversations. The framework addresses the core challenges of maintaining, retrieving, and updating long-term conversational context efficiently while avoiding the loss of factual details and minimizing inference cost. The proposed system organises dialogue histories into four hierarchical levels (L0–L3), ranging from global full-context summaries to fine-grained message representations. Each level is stored in both a relational database—preserving lineage and metadata—and a lightweight vector store optimised for semantic retrieval. Queries follow a top-down recursive search path, beginning with coarse-level L0 recall and progressively drilling down through time-based (L1) and session- or topic-based (L2) summaries to the most relevant dialogue or message units (L3). This structure enables precise evidence localisation with minimal token consumption. A feedback mechanism empowers users to inspect, edit, or pin memory entries through a memory sandbox, while consistent propagation rules ensure that updates at any level are synchronised upward without compromising raw historical fidelity. The framework also integrates an inner-thought reasoning process that dynamically decides when to employ function calls for lineage resolution or persona updates, balancing reasoning accuracy and computational efficiency. Experimental evaluations demonstrate that this architecture substantially reduces retrieval latency and token overhead, while improving contextual coherence, factual consistency, and long-term adaptability compared to baseline retrieval-augmented generation systems.
Degree
thesis:*- College dc:contributor.school
- School of Electrical and Electronic Engineering
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Che, Taifu
- Advisor dc:contributor.supervisor
-
- Tan Yap Peng
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10356/210517