RecurrentGPT:(任意)长文本的交互式生成
RecurrentGPT: Interactive Generation of (Arbitrarily) Long Text
AI总结:
RecurrentGPT通过自然语言模拟LSTM的长短期记忆机制,使基于LLM的模型能生成任意长文本且支持人机交互编辑,为下一代计算机辅助写作和互动小说提供了新方向。
摘要:
Transformer的固定大小上下文使得GPT模型无法生成任意长度的文本。在本文中,我们介绍了RecurrentGPT,这是一种基于语言的RNN中循环机制的模拟物。RecurrentGPT构建在大型语言模型(LLM)如ChatGPT之上,并使用自然语言来模拟LSTM中的长短期记忆机制。在每个时间步,RecurrentGPT生成一段文本,并分别更新存储在硬盘和提示中的基于语言的长短期记忆。这种循环机制使RecurrentGPT能够生成任意长度的文本而不会遗忘。由于人类用户可以轻松观察和编辑自然语言记忆,RecurrentGPT是可解释的,并支持长文本的交互式生成。RecurrentGPT是迈向超越局部编辑建议的下一代计算机辅助写作系统的初步一步。除了生成AI生成内容(AIGC)外,我们还展示了将RecurrentGPT用作直接与消费者交互的互动小说的可能性。我们将生成模型的这种用法称为“AI As Contents”(AIAC),我们相信这是传统AIGC的下一种形式。我们进一步展示了使用RecurrentGPT创建直接与读者而非作者交互的个性化互动小说的可能性。更广泛地说,RecurrentGPT展示了借鉴认知科学和深度学习中流行模型设计思想来提示LLM的实用性。我们的代码可在https://github.com/aiwaves-cn/RecurrentGPT获取,在线演示可在https://www.aiwaves.org/recurrentgpt获取。
英文摘要:
The fixed-size context of Transformer makes GPT models incapable of generating arbitrarily long text. In this paper, we introduce RecurrentGPT, a language-based simulacrum of the recurrence mechanism in RNNs. RecurrentGPT is built upon a large language model (LLM) such as ChatGPT and uses natural language to simulate the Long Short-Term Memory mechanism in an LSTM. At each timestep, RecurrentGPT generates a paragraph of text and updates its language-based long-short term memory stored on the hard drive and the prompt, respectively. This recurrence mechanism enables RecurrentGPT to generate texts of arbitrary length without forgetting. Since human users can easily observe and edit the natural language memories, RecurrentGPT is interpretable and enables interactive generation of long text. RecurrentGPT is an initial step towards next-generation computer-assisted writing systems beyond local editing suggestions. In addition to producing AI-generated content (AIGC), we also demonstrate the possibility of using RecurrentGPT as an interactive fiction that directly interacts with consumers. We call this usage of generative models by ``AI As Contents'' (AIAC), which we believe is the next form of conventional AIGC. We further demonstrate the possibility of using RecurrentGPT to create personalized interactive fiction that directly interacts with readers instead of interacting with writers. More broadly, RecurrentGPT demonstrates the utility of borrowing ideas from popular model designs in cognitive science and deep learning for prompting LLMs. Our code is available at https://github.com/aiwaves-cn/RecurrentGPT and an online demo is available at https://www.aiwaves.org/recurrentgpt.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。