MemoChat: Tuning LLMs to Use Memos for Consistent Long-Range Open-Domain Conversation
Preprint
Abstract
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.Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and BeyondACM Transactions on Knowledge Discovery From Data, 2024
- MemoryBank: Enhancing Large Language Models with Long-Term MemoryProceedings of the AAAI Conference on Artificial Intelligence, 2024
- RoFormer: Enhanced transformer with Rotary Position EmbeddingNeurocomputing, 2023
- WebGLM: Towards An Efficient Web-Enhanced Question Answering System with Human Preferences2023
- TopiOCQA: Open-domain Conversational Question Answering with Topic SwitchingTransactions of the Association for Computational Linguistics, 2022
- Few-NERD: A Few-shot Named Entity Recognition Dataset2021
- doc2dial: A Goal-Oriented Document-Grounded Dialogue Dataset2020
- Dense Passage Retrieval for Open-Domain Question Answering2020
- KdConv: A Chinese Multi-domain Dialogue Dataset Towards Multi-turn Knowledge-driven Conversation2020
- Billion-Scale Similarity Search with GPUsIEEE Transactions on Big Data, 2019