[Paper Review] MemoChat: Tuning LLMs to Use Memos for Consistent Long-Range Open-Domain Conversation
MemoChat introduces an instruction tuning pipeline that enables large language models (LLMs) to maintain consistent long-range open-domain conversations by generating and utilizing self-composed, structured memos through iterative memorization-retrieval-response cycles. Evaluated on expert-annotated benchmarks, MemoChat significantly improves response consistency—outperforming strong baselines like ChatGPT and GPT-4, especially on long-range recall and cross-topic understanding tasks.
We propose MemoChat, a pipeline for refining instructions that enables large language models (LLMs) to effectively employ self-composed memos for maintaining consistent long-range open-domain conversations. We demonstrate a long-range open-domain conversation through iterative "memorization-retrieval-response" cycles. This requires us to carefully design tailored tuning instructions for each distinct stage. The instructions are reconstructed from a collection of public datasets to teach the LLMs to memorize and retrieve past dialogues with structured memos, leading to enhanced consistency when participating in future conversations. We invite experts to manually annotate a test set designed to evaluate the consistency of long-range conversations questions. Experiments on three testing scenarios involving both open-source and API-accessible chatbots at scale verify the efficacy of MemoChat, which outperforms strong baselines. Our codes, data and models are available here: https://github.com/LuJunru/MemoChat.
Motivation & Objective
- To address the challenge of maintaining contextual coherence in long-range, open-domain conversations where LLMs struggle with memory retention beyond input context limits.
- To eliminate reliance on external memory modules or retrieval systems by enabling LLMs to autonomously create and use structured memos during conversation.
- To develop a scalable, instruction-tuning-based pipeline that teaches LLMs to perform three core tasks: memo writing, memo retrieval, and response generation using memos.
- To establish a standardized, expert-annotated evaluation benchmark for measuring consistency in long-range conversations, particularly across topic shifts and long-horizon questions.
- To demonstrate that fine-tuned open-source LLMs can achieve performance comparable to or exceeding API-accessible models like GPT-4 on consistency benchmarks through effective instruction tuning.
Proposed method
- Design a three-stage pipeline—memorization, retrieval, and response—based on the 'memorization-retrieval-response' loop to structure long conversations.
- Reconstruct task-specific instructions from public datasets to fine-tune LLMs for memo writing (summarizing past dialogue turns), memo retrieval (finding relevant memos for new queries), and memo-aware response generation.
- Use a structured memo format (e.g., topic + key points) to improve retrieval accuracy and reduce hallucination in long-range contexts.
- Fine-tune both open-source LLMs (e.g., Vicuna, T5) and API-accessible models (e.g., ChatGPT, GPT-4) using supervised fine-tuning with curated instruction data.
- Employ a LLM judge to evaluate response consistency on a curated expert-annotated test set with three types of long-range questions: retrospection, conjunction, and multi-turn topic recall.
- Apply zero-shot and few-shot prompting to assess baseline performance, and compare against strong baselines such as MPC-ChatGPT and MemoryBank-ChatGPT.
Experimental results
Research questions
- RQ1Can LLMs be effectively fine-tuned to autonomously generate and use structured memos to maintain consistency in long-range, open-domain conversations?
- RQ2How does the performance of instruction-tuned LLMs compare to strong baselines (e.g., ChatGPT, GPT-4) in handling long-range, cross-topic questions that require memory recall?
- RQ3To what extent does model scale and fine-tuning data size influence the ability of LLMs to learn and apply memo-based reasoning?
- RQ4Can a purely LLM-native pipeline (without external tools) achieve performance comparable to systems using external retrieval or memory modules?
- RQ5How effective is the proposed expert-annotated evaluation set in measuring response consistency across diverse long-range conversation scenarios?
Key findings
- MemoChat outperforms strong baselines such as MPC-ChatGPT and MemoryBank-ChatGPT by 7.0 to 19.5 points on average in response consistency across long-range questions.
- MemoChat-Vicuna-13B (fine-tuned on 1k samples) achieves a response consistency score of 64.78 on retrospection questions, outperforming the larger MemoChat-Vicuna-33B (1k) by 3.3 points, indicating better generalization with smaller data.
- Fully fine-tuned open-source models (e.g., MemoChat-Vicuna-33B with 10k samples) surpass both ChatGPT-2k and GPT-4 in consistency on average, with a 9.7-point improvement over ChatGPT-2k on average.
- The case study shows that MemoChat-ChatGPT correctly links antitrust laws to machine learning, while ChatGPT-2k misinterprets the question entirely, highlighting improved cross-topic reasoning.
- MemoChat-Vicuna-33B (10k) achieves a LLM judge score of 90 on a complex conjunction question, compared to 100 for GPT-4, demonstrating strong performance on multi-hop reasoning.
- Even with only 1k training samples, larger models like MemoChat-Vicuna-13B achieve a 15–30 point performance gap over smaller models in memo writing and retrieval tasks, indicating strong few-shot learning capability.
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.