Back to search

University of Alberta

Beyond A Million Tokens: Benchmarking and Enhancing Long-Term Memory in LLMs

Abstract

dc:description.abstract

Evaluating the abilities of large language models (LLMs) for tasks that require long-term memory and long-context reasoning, for example in conversational settings, is hampered by the existing benchmarks, which often lack narrative coherence, cover narrow domains, and only test simple recall-oriented tasks. We introduce a comprehensive solution to these challenges. First, we present a novel framework for automatically generating long (up to 10 million (10M) tokens), narratively coherent, and topically diverse conversations, accompanied by probing questions targeting a wide range of memory abilities. From this, we construct BEAM, a new benchmark comprising 100 conversations and 2,000 validated questions. Second, to enhance model performance, we propose LIGHT–a framework inspired by human cognition that equips LLMs with three complementary memory systems: a long-term episodic memory, a short-term working memory, and a scratchpad for accumulating salient facts. Our experiments on BEAM reveal that even LLMs with 1M token context windows (with and without retrieval-augmentation) exhibit substantial performance degradation as dialogues lengthen. In contrast, LIGHT consistently improves performance across various models, achieving an average improvement of 3.5%–12.69% over the strongest baselines, depending on the backbone LLM. An ablation study further confirms the contribution of each memory component.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Grantor
University of Alberta
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Tavakoli, Mohammad
Advisors dc:contributor.advisor
  • Mitchell, Ross (Medicine)
  • Goebel, Randy (Computing Science)

Subjects

dc:subject × 8

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/84476

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Tavakoli, Mohammad. Beyond A Million Tokens: Benchmarking and Enhancing Long-Term Memory in LLMs. Master's thesis, University of Alberta, 2026. https://doi.org/10.7939/84476