Manuscript Offprint

arXiv:2610.25463

DiaLong: Benchmarking Reminiscence in Long-Context Dialogues

Owen Bianchi, Samer Aslan, Ryunosuke Saito

Abstract

How well can transformer-based Large Language Models (LLMs) retain and recall memories in long contexts of dialogue? LLMs are known to forget long-range factual information in their context, yet the field lacks a comprehensive benchmark to quantitatively assess these shortcomings. We present DIALONG, a long-context dialogue dataset and accompanying memory task that standardizes evaluation in this space. It consists of 100 unique conversations created by humans and then augmented with LLMs, extending beyond lengths found in existing datasets. Our selected memory task is fact recall: classify 40 candidate facts about a dialogue as true or false. This task directly probes the model's ability to actively retain and retrieve information, serving as a critical measure of memory within extended conversational contexts. In testing both the latest LLMs and proposed memory enhancements on DIALONG, we demonstrate that more work needs to be done to enable LLMs with better memory performance. By enhancing memory capabilities, LLMs can improve in maintaining coherence, relevance, and human-like interaction over extended conversation. Improving these capabilities will help LLMs fulfill diverse user needs and expectations in various conversational scenarios.

1 Introduction

Large Language Models (LLMs) are constrained by limited context length, which hinders their ability to perform natural language processing tasks. They are deployed in various contexts and applications (Brown et al., 2020), one notable example being conversational agents, which have recently seen a surge in popularity (OpenAI, 2022)(OpenAI, 2023)(Touvron et al., 2023). Chatbots powered by LLMs are conversational tools capable of understanding and responding to human language effectively. The unique application of LLMs in chatbots,

Figure

Figure 1: An example memory task depicting the performance differences between an LLM and a human in long contexts.

as opposed to other NLP tasks, lies in their inherent requirement to mimic and produce human-like interactions during dialogues (Brandtzaeg and Følstad, 2017) (Johari and Nohuddin, 2021). Memory is an essential part of human conversation, allowing for context retention, coherent responses, and building relationships over time. As defined by Zlotnik and Vansintjan, memory is the process of acquiring, storing, retaining, and retrieving information (Zlotnik and Vansintjan, 2019). LLM-powered chatbots inherently lack long-term memory when compared to humans, hindering their ability to maintain human-like conversation.

Forgetfulness, the tendency of an LLM to lose track of earlier information, is a major limitation. This problem is exacerbated with long contexts, as anything bumped outside of the context win-dow is immediately forgotten. Directly from OpenAI's API documentation, tokens that do not fit within a model's limit are lost 1^{1}. This is one of the most significant challenges faced by modern LLMs, their performance in long contexts. It is clear that the limited context window is the main culprit of forgetfulness, as depicted in Figure 1. A popular approach to address this problem is extending the attention window (Vaswani et al., 2023) (Chen et al., 2023b) (Su et al., 2023). The premise is that by enabling a model to process more extensive contexts during inference, it enhances its capability to store, retain, and recall information, thereby extending its memory reach. This approach is limited for two reasons. Firstly, contexts in general, especially conversations, can carry on for extremely long periods of time, which would require an impractical length context window. This is infeasible because extremely long context windows demand excessive computational resources (Chen et al., 2023c), stemming from the quadratic complexity of self-attention computation (Vaswani et al., 2023). Additionally, it has been shown that merely extending the context window results in a considerable degradation in performance for longer contexts (Liu et al., 2023).

Another culprit for the lack of performance with conversational data is that dialogue presents another problem to LLMs. Conversational problems are uniquely challenging in that the corpus of knowledge from which the LLM must use to reply grows continuously. It requires more than just memorization of a training dataset to do well on such tasks, it additionally requires a clever use of the never-before-seen dialogue between the chatbot and the user during inference time. An approach to address both this and the limited context window is to augment the LLMs with a memory solution such as those discussed in Section 2. These solutions appear to work at the surface, but we demonstrate that they do not evaluate as rigorously as they should. Current conversational datasets and methods of evaluation do not focus on both long contexts and memory, and are not a good fit for evaluation of such conversational models.

We introduce DIALONG, a long-context dialogue dataset accompanied by a novel memory benchmark, specifically designed to rigorously evaluate the capacity of current LLMs and emerging memory solutions to sustain and retrieve information across prolonged dialogues. This endeavor underscores a crucial gap in existing methodologies, which predominantly assess models using considerably shorter dialogues, insufficient to capture the intricacies of extensive conversational contexts. Our comprehensive evaluation reveals a pressing need for advancing research to enhance LLMs' memory functions, emphasizing that significant improvements are imperative for these models to achieve and sustain coherence, relevance, and human-like interactions over lengthy conversations. Through DIALONG, we aim to catalyze the development of LLMs that are not only more adept at handling long-context dialogues but also capable of delivering outputs that are coherent, accurate, and trustworthy, thereby better meeting the complex needs and expectations of users in diverse conversational scenarios.

References (9)