arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.08796cs.CL
收藏

端到端故事剧情生成器

End-to-end Story Plot Generator

Meta AI;UC Santa Barbara(加州大学圣巴巴拉分校);UC Berkeley(加州大学伯克利分校)

Hanlin Zhu, Andrew Cohen, Danqing Wang, Kevin Yang, Xiaomeng Yang, Jiantao Jiao, Yuandong Tian

AI总结:

针对现有故事剧情生成器依赖昂贵LLM调用且不可微分的问题,提出OpenPlot、E2EPlot和RLPlot三个模型,实现低成本、快速且可个性化的端到端剧情生成,其中E2EPlot速度提升超10倍,RLPlot在悬念和惊喜方面胜率达60%。

摘要:

故事剧情虽然简短,却承载了可能包含数万字完整故事的大部分关键信息。我们研究故事剧情的自动生成问题,这包括故事前提、角色描述、情节大纲等。为了生成一个引人入胜的剧情,现有的剧情生成器(如DOC(Yang等人,2022a))在故事剧情的规划阶段需要调用数百到数千次LLM(如OpenAI API),这既昂贵又至少需要几分钟时间。此外,该方法的硬编码特性使得流水线不可微分,阻碍了剧情生成器的快速专业化和个性化。在本文中,我们提出了三个模型,OpenPlot、E2EPlot和RLPlot,以应对这些挑战。OpenPlot通过精心设计的提示词,用LLaMA2(Touvron等人,2023)调用取代昂贵的OpenAI API调用,从而以低成本生成高质量的故事剧情训练数据集。然后,我们使用OpenPlot生成的大约13000个故事剧情,通过监督微调(SFT)训练了一个端到端的故事剧情生成器E2EPlot。E2EPlot生成的剧情质量与OpenPlot相当,且速度快10倍以上(平均仅需30秒即可生成1k个token)。最后,我们获得了RLPlot,它通过RLHF在多个不同的奖励模型上进一步微调,以针对故事质量的不同方面,其在悬念和惊喜方面对E2EPlot的胜率达到60.0%。

英文摘要:

Story plots, while short, carry most of the essential information of a full story that may contain tens of thousands of words. We study the problem of automatic generation of story plots, which includes story premise, character descriptions, plot outlines, etc. To generate a single engaging plot, existing plot generators (e.g., DOC (Yang et al., 2022a)) require hundreds to thousands of calls to LLMs (e.g., OpenAI API) in the planning stage of the story plot, which is costly and takes at least several minutes. Moreover, the hard-wired nature of the method makes the pipeline non-differentiable, blocking fast specialization and personalization of the plot generator. In this paper, we propose three models, $\texttt{OpenPlot}$, $\texttt{E2EPlot}$ and $\texttt{RLPlot}$, to address these challenges. $\texttt{OpenPlot}$ replaces expensive OpenAI API calls with LLaMA2 (Touvron et al., 2023) calls via careful prompt designs, which leads to inexpensive generation of high-quality training datasets of story plots. We then train an end-to-end story plot generator, $\texttt{E2EPlot}$, by supervised fine-tuning (SFT) using approximately 13000 story plots generated by $\texttt{OpenPlot}$. $\texttt{E2EPlot}$ generates story plots of comparable quality to $\texttt{OpenPlot}$, and is > 10$\times$ faster (1k tokens in only 30 seconds on average). Finally, we obtain $\texttt{RLPlot}$ that is further fine-tuned with RLHF on several different reward models for different aspects of story quality, which yields 60.0$\%$ winning rate against $\texttt{E2EPlot}$ along the aspect of suspense and surprise.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑