arXiv:2506.16445cs.CLcs.AI2025-06被引 24

用多智能体框架生成连贯长篇故事,效果远超现有方法。

StoryWriter: A Multi-Agent Framework for Long Story Generation

  • 分三个智能体:先规划剧情大纲,再安排章节内容,最后动态写故事。
  • 生成6000篇平均8000字的长故事,质量显著优于基线模型。
  • 适合想做长文本生成或创作辅助的研究者和开发者。

长篇故事生成仍是大语言模型面临的挑战,主要源于两点:一是话语连贯性,要求情节一致、逻辑通顺且完整;二是叙事复杂性,需构建交织且引人入胜的情节。为此,我们提出StoryWriter多智能体框架,包含三个核心模块:(1)概要智能体,生成包含丰富事件、角色及事件间关系的基于事件的概要;(2)规划智能体,细化事件并规划每章应写作的内容,以保持情节交织与吸引力;(3)写作智能体,基于当前事件动态压缩故事历史,生成并反映新情节,确保生成内容的连贯性。我们通过人工与自动评估验证,StoryWriter在故事质量和长度上均显著优于现有基线。此外,我们利用StoryWriter构建了一个数据集,包含约6000篇高质量长故事,平均长度为8000词。我们基于LongStory数据集对Llama3.1-8B和GLM4-9B进行监督微调,训练出StoryWriter_GLM等模型,展现出在长故事生成上的先进性能。

原文摘要 · Abstract (English)

Long story generation remains a challenge for existing large language models (LLMs), primarily due to two main factors: (1) discourse coherence, which requires plot consistency, logical coherence, and completeness in the long-form generation, and (2) narrative complexity, which requires an interwoven and engaging narrative. To address these challenges, we propose StoryWriter, a multi-agent story generation framework, which consists of three main modules: (1) outline agent, which generates event-based outlines containing rich event plots, character, and event-event relationships. (2) planning agent, which further details events and plans which events should be written in each chapter to maintain an interwoven and engaging story. (3) writing agent, which dynamically compresses the story history based on the current event to generate and reflect new plots, ensuring the coherence of the generated story. We conduct both human and automated evaluation, and StoryWriter significantly outperforms existing story generation baselines in both story quality and length. Furthermore, we use StoryWriter to generate a dataset, which contains about $6,000$ high-quality long stories, with an average length of $8,000$ words. We train the model Llama3.1-8B and GLM4-9B using supervised fine-tuning on LongStory and develop StoryWriter_GLM and StoryWriter_GLM, which demonstrates advanced performance in long story generation.

故事生成多智能体长文本

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。