arXiv:2604.25482cs.CLcs.AI2026-04被引 1

用分阶段依赖流生成连贯的RPG世界与任务线

From World-Gen to Quest-Line: A Dependency-Driven Prompt Pipeline for Coherent RPG Generation

论文配图:From World-Gen to Quest-Line: A Dependency-Driven Prompt Pipeline for Coherent RPG Generation
图 1 · 摘自论文原文
  • 分五步生成:世界→角色→剧情→任务→扩展,每步用前步输出作为输入
  • 多轮测试显示复杂度提升时仍保持逻辑严谨与结构完整
  • 适合想做可扩展叙事生成的研究者或游戏开发者

大型语言模型在叙事生成中潜力巨大,但在复杂的多层角色扮演游戏(RPG)世界中仍受限于连贯性、可控性和结构一致性问题。本文提出一种依赖感知的多阶段提示流水线,通过结构化中间表示建模叙事依赖关系。该方法将生成过程分解为五个连续阶段:世界构建、非玩家角色创建、玩家角色创建、战役级任务规划和任务扩展。每个阶段基于前一阶段的结构化JSON输出进行条件生成。通过强制使用模式和显式数据流,该流水线有效减少叙事偏移,抑制幻觉,并支持可扩展的互连叙事元素生成。系统通过多轮独立运行的人类中心评估进行验证,评价标准包括结构完整性、内在一致性、叙事连贯性、多样性及可操作性。结果表明,该流水线能持续生成逻辑合理且结构有效的RPG内容,且复杂度上升时无质量下降。将高层战役规划与详细任务扩展分离,同时提升了全局结构与局部叙事质量。研究结果表明,具有结构化中间表示的依赖感知提示流水线是基于LLM的程序化内容生成的有效设计范式,该方法亦可能推广至需对动态上下文状态进行顺序推理的其他领域。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have shown strong potential for narrative generation, but their use in complex, multi-layered role-playing game (RPG) worlds is still limited by issues of coherence, controllability, and structural consistency. This paper explores a dependency-aware, multi-stage prompt pipeline for procedural RPG content generation that models narrative dependencies through structured intermediate representations. The approach decomposes generation into sequential stages: world building, non-player character creation, player character creation, campaign-level quest planning, and quest expansion. Each stage conditions on structured JSON outputs from previous stages. By enforcing schemas and explicit data flow, the pipeline reduces narrative drift, limits hallucinations, and supports scalable creation of interconnected narrative elements. The system is evaluated qualitatively through human-centered analysis across multiple independent runs. Outputs are assessed using criteria such as structural completeness, internal consistency, narrative coherence, diversity, and actionability. Results show that the pipeline consistently generates logically sound and structurally valid RPG content, without quality degradation as complexity increases. Separating high-level campaign planning from detailed quest expansion improves both global structure and local storytelling. These findings suggest that dependency-aware prompt pipelines with structured intermediate representations are an effective design pattern for LLM-based procedural content generation. This approach may also generalize to other domains requiring sequential reasoning over evolving contextual states.

RPG生成提示工程叙事生成

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