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

Recursively Summarizing Enables Long-Term Dialogue Memory in Large Language Models

About

Recently, large language models (LLMs), such as GPT-4, stand out remarkable conversational abilities, enabling them to engage in dynamic and contextually relevant dialogues across a wide range of topics. However, given a long conversation, these chatbots fail to recall past information and tend to generate inconsistent responses. To address this, we propose to recursively generate summaries/ memory using large language models (LLMs) to enhance long-term memory ability. Specifically, our method first stimulates LLMs to memorize small dialogue contexts and then recursively produce new memory using previous memory and following contexts. Finally, the chatbot can easily generate a highly consistent response with the help of the latest memory. We evaluate our method on both open and closed LLMs, and the experiments on the widely-used public dataset show that our method can generate more consistent responses in a long-context conversation. Also, we show that our strategy could nicely complement both long-context (e.g., 8K and 16K) and retrieval-enhanced LLMs, bringing further long-term dialogue performance. Notably, our method is a potential solution to enable the LLM to model the extremely long context. The code and scripts are released.

Qingyue Wang, Yanhe Fu, Yanan Cao, Shuai Wang, Zhiliang Tian, Liang Ding• 2023

Related benchmarks

TaskDatasetResultRank
View-change predictionView-change prediction dataset
F1 Score0.4139
18
Information RetrievalLocomo
Recall@1074.97
18
Long-horizon behavior predictionOminiBehavior (Live scenario)
Accuracy77
16
Long-horizon behavior predictionOminiBehavior Video
Accuracy (ACC)80.1
16
Long-horizon behavior predictionOminiBehavior Ads
Accuracy64.7
16
Long-horizon behavior predictionOminiBehavior (Overall)
Accuracy74.1
16
Long-horizon behavior predictionOminiBehavior E-commerce scenario
Accuracy74.5
16
Multi-turn Dialogue GenerationREALTALK zero-shot
PPL26.087
14
Multi-turn Dialogue GenerationMSC (test)
PPL41.849
14
Multi-turn Dialogue GenerationREALTALK (per-session)
PPL27.977
12
Showing 10 of 20 rows

Other info

Follow for update