压缩以动人:释放压缩记忆在真实世界长期对话中的潜力
Compress to Impress: Unleashing the Potential of Compressive Memory in Real-World Long-Term Conversations
AI总结:
本文提出COMEDY框架,用单一语言模型实现记忆生成、压缩与响应生成,摒弃检索模块,并构建中文数据集Dolphin,在长期对话中优于传统检索方法。
摘要:
现有的基于检索的方法在维持长期对话方面已取得显著进展。然而,这些方法在记忆数据库管理和精确记忆检索方面面临挑战,阻碍了它们在动态、真实世界交互中的有效性。本研究引入了一个新颖的框架——压缩记忆增强对话系统(COMEDY),该框架摒弃了传统的检索模块和记忆数据库。相反,COMEDY采用“一应俱全”的方法,利用单一语言模型来管理记忆生成、压缩和响应生成。该框架的核心是压缩记忆的概念,它将会话特定摘要、用户与机器人的动态以及过去事件整合为一种简洁的记忆格式。为了支持COMEDY,我们构建了一个大规模的中文指令微调数据集Dolphin,该数据集来源于真实的用户与聊天机器人交互。对比评估表明,COMEDY在产生更细腻、更类人的对话体验方面优于传统的基于检索的方法。我们的代码可在 https://github.com/nuochenpku/COMEDY 获取。
英文摘要:
Existing retrieval-based methods have made significant strides in maintaining long-term conversations. However, these approaches face challenges in memory database management and accurate memory retrieval, hindering their efficacy in dynamic, real-world interactions. This study introduces a novel framework, COmpressive Memory-Enhanced Dialogue sYstems (COMEDY), which eschews traditional retrieval modules and memory databases. Instead, COMEDY adopts a "One-for-All" approach, utilizing a single language model to manage memory generation, compression, and response generation. Central to this framework is the concept of compressive memory, which intergrates session-specific summaries, user-bot dynamics, and past events into a concise memory format. To support COMEDY, we curated a large-scale Chinese instruction-tuning dataset, Dolphin, derived from real user-chatbot interactions. Comparative evaluations demonstrate COMEDY's superiority over traditional retrieval-based methods in producing more nuanced and human-like conversational experiences. Our codes are available at https://github.com/nuochenpku/COMEDY.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。