跳到正文
论文阅读馆THE RESEARCH LIBRARY 查找论文
← 论文库AI 研究与应用 / 剧本与互动叙事导出 ↗

PAPER / 2024

HoLLMwood: 通过角色扮演释放大语言模型在剧本创作中的创造力

HoLLMwood: Unleashing the Creativity of Large Language Models in Screenwriting via Role Playing

Jing Chen · Xinyu Zhu · Cheng Yang · Chufan Shi · Yadong Xi · Yuxiang Zhang · Junjie Wang · Jiashu Pu · Tian Feng · Yujiu Yang · Rongsheng Zhang

EMNLP · 2024

30 秒读懂

到剧本阶段,Actors 按事件顺序被调用。每次回应依赖角色档案、交互历史和当前事件;因此角色发言被安放在已有剧情里。读代码或复现时要先弄清事件如何传给演员,再研究提示词,不能把顺序调用误解为所有角色同时自主行动。

HoLLMwood 把电影剧本生成拆成规划、故事扩展和剧本写作。Writer 负责产出,Editor 提反馈;角色扮演用于把已经组织好的事件转成角色间的对话。它不是让一群智能体不受约束地聊天,再期待好剧本自然出现。

先说结论

HoLLMwood 将编辑反馈和角色扮演接进分阶段剧本生成。论文支持部分配置下的偏好收益,也显示底座模型可能在执行阶段直接失败;质量与完成率不能混为一谈。 (原文:PDF p.3, §2;PDF p.4, Figure 4; §2.3;PDF p.5, experimental setup;PDF p.6, Table 1; Table 3;PDF p.7, Table 6;PDF p.8, failure analysis;PDF p.10, Limitations)

论文为什么要做这件事

HoLLMwood 把电影剧本生成拆成规划、故事扩展和剧本写作。Writer 负责产出,Editor 提反馈;角色扮演用于把已经组织好的事件转成角色间的对话。它不是让一群智能体不受约束地聊天,再期待好剧本自然出现。 (原文:PDF p.3, §2)

核心方法到底怎么运转

到剧本阶段,Actors 按事件顺序被调用。每次回应依赖角色档案、交互历史和当前事件;因此角色发言被安放在已有剧情里。读代码或复现时要先弄清事件如何传给演员,再研究提示词,不能把顺序调用误解为所有角色同时自主行动。 (原文:PDF p.4, Figure 4; §2.3)

实验怎样检验这个方法

实验用不同底座模型生成,并分别采用模型比较与人工评价。系统间比较、反馈轮次比较和阶段失败分析是不同实验,必须保持评审者、对照和分母一致。 (原文:PDF p.5, experimental setup)

结果说明了什么

Table 1 中,以 GPT-4 生成并由 GPT-4 评价时,整体偏好比例为 83.0,相比对象是 Plan-then-Write。Table 3 中,角色阶段 R1 相对 R0 的整体偏好为 85.0。这是不同问题:前者比较系统,后者比较反馈迭代;后一个数字不在 Table 2,也不应被说成人类评委给出的反馈收益。 (原文:PDF p.6, Table 1; Table 3)

底座模型会限制流水线

Table 6 报告 llama2-7B 在剧本阶段的失败比例为 85.0。这个结果说明阶段式工作流并不会自动解决指令遵循和输出格式问题;评价强底座上的文本质量,与评价弱底座能不能走完流程,是两种不同的实验。 (原文:PDF p.7, Table 6)

失败比例的分母

已经在前序阶段失败的样本不会继续进入后续阶段。因此,后阶段失败率是在能够到达该阶段的样本中统计的,不能直接当作全部初始任务的最终失败概率。 (原文:PDF p.8, failure analysis)

这篇论文哪里最强,哪里最危险

作者仍观察到重复、事实不一致和细节分配不均。多阶段编辑能改善输出,但没有消除这些问题;也没有依据把未经量化的部署成本写成已测得的“极其高昂”。论文的价值在于把规划、反馈与角色化写作接成可检验流程,而不是证明所有剧本都能自动达到专业水平。 (原文:PDF p.10, Limitations)

读完后记住这三件事

记住三个层次:规划决定事件,编辑提供反馈,演员把事件展开成对话。更受偏好不等于没有事实冲突,阶段失败率也不等于整批任务失败率。 (原文:PDF p.3, §2;PDF p.4, Figure 4; §2.3;PDF p.5, experimental setup;PDF p.6, Table 1; Table 3;PDF p.7, Table 6;PDF p.8, failure analysis;PDF p.10, Limitations)

代码从哪里读

原始来源入口。这里是 Findings 论文官方页;当前未确认作者代码仓库。附录提示词能帮助理解阶段接口,但不等于完整可运行工程。

原文证据

将主张放回条件与原文定位中理解。

方法

它到底在解决什么

原文摘录
Plot Planning a draft manuscript until it meets a certain expecta- Preliminary Storyline: Set in the not-so-distant future, where humans have colonized Mars but struggle to sustain the population due to an unforeseen food crisis… tion or quality, which usually involves communi- Character Design cations with others, especially editors. Our frame- Dr. Iris Hawke, 35, the brilliant and audacious scientist who has made Mars her work mimics this process via applying an LLM as home. Originally a top-notch botanist on Earth, Iris shows her grit and genius in developing a groundbreaking technology of growing crops on Martian soil … an editor, who is prompted to provide feedback for Dr. Iris Hawke: Her character does come across strong and determined, but she the writer to revise the initial drafts. Specifically, might be more engaging if she has some personal stake in the situation beyond the professional. For instance, … the editor is prompted to provide suggestions that Outline Formulation focus on the following aspects: 1. Dr. Iris Hawke develops a revolutionary method to grow food in Martian … a. Dr. Hawke successfully grows crops using the Martian soil and irradiated … • Do the characters align satisfactorily with the b. During a celebratory feast featuring the first Mars-grown meal, Mathias … preliminary storyline? 1. More character interactions could be included to give a more comprehensive understanding of their relationships. For example, interactions between Dr. • Are the characters portrayed engaging and Hawke and Mathias before he falls ill could emphasise the direct consequences of Dr. Hawke‘s experiment on the settlers … emotionally resonant to the audience? • Does the outline conflict with the preliminary Figure 2: An example of plot planning. Highlighted texts storyline and the characters? refer to the feedback parts proposed by the editor. • Are the plots in the outline consistent and co- herent? • Are the plots able to form an interesting, en- Character Design. As characters are the soul of gaging, and thought-provoking story? the plots, the writer first designs a certain num- ber of characters based on the preliminary story- Story Expansion line. Each character has a name and an introduc- Preliminary Storyline: … Previous Expanded Story Chapters: … Scene: Infirmary Characters: Dr. Iris Hawke, Mathias Mars Barlow, Dr. Arthur Bentley, Captain Amelia Summers tion as illustrated in Fig. 2. In our implementa- Subplot: Mathias is diagnosed as the first victim of a Martian soil pathogen. Dr. Hawke is confronted with the devastating reality that her innovation has inadvertently caused a disaster. tion, the number of characters in the story ranges The Martian infirmary was a portrait of chaos. The unmistakable smell of antiseptic from 3 to 6, since extremely limited characters permeating the recycled air was in stark contrast with the infectious energy … would lead to monotonous relationships whereas At the center of it all was Mathias, his robust form seemed small and fragile lying unconscious on the steel bed. His usually jovial face was chalk-white, and a sheen of too many characters might weaken their interac- sweat coated his forehead. Dr. Iris Hawke stood beside him, helpless, her hand gripping his with a desperate strength. It was here, amidst the chaos of machines … tions. The detailed prompt used to generate char- The infirmary doors slid open with a whisper. A tall figure stepped in, casting a long shadow over the frenzied scene. It was Dr. Arthur Bentley, Mars colony's seasoned acters is presented in appendix Table 15. astrobiologist. Behind him, Captain Amelia Summers, in her stark military uniform, radiated the aura of stern professionalism… Outline Formulation. Taking the designed char- …She would work tirelessly, fearlessly, to discover a cure for the pathogen that was now threatening all they had built. It was a promise not just to Mathias, but to herself and acters and preliminary storyline as input, the writer every soul calling Mars home. is prompted to formulate a complete outline for Figure 3: An example of story expansion. Highlighted texts the story. We structure the outline in a hierarchical refer to the parts expanded from the given input. manner similar to DOC (Yang et al., 2023), which is a strong long story generation method with de- Besides, the editor is configured to trace tailed outline control. However, we find a two- whether the story has a clear ending and provide level outline capable to hold adequate plots. There- advice if necessary. We adopt an iterative polish- fore, we adopt a two-level hierarchy in our frame- ing strategy for character design and outline for- work with multiple subplots below the top tier of mulation, following the real-world scenario where plots, rather than the three-level setting in DOC. a draft needs repeated revisions to reach excel- Each subplot comprises scene, involved characters lence. We set the maximum iteration to 2 and and storyline. The detailed prompt used to gener- the editor is prompted to stop providing feed- ate outline is given in Table 17. back when it considers the draft satisfactory. See Unlike prior works, which typically generate Appendix B.1 for how the maximum number of the outline in multiple steps, we generate the feedback iterations is chosen to be 2. The de- whole outline in a single pass. To maintain a clear tailed prompts used to guide interaction between structure and facilitate parsing of long context, the writer and editor is presented in appendix Ta- we employ an HTML-style prompting format, us- bles 16 and 18 to 20. ing “<component>” and “</component>” to wrap the different components. A detailed example is 2.2 Story Expansion shown in appendix Table 28. Feedback/Revision-based Polishing. In the real After carefully designing the characters and out- world, human writers would likely keep polishing line, we move on to adding more details to the 8077

条件:仅限本地原始PDF的 §2;不同表格与实验不合并

指标:HoLLMwood 把电影剧本生成拆成规划、故事扩展和剧本写作。Writer 负责产出,Editor 提反馈;角色扮演用于把已经组织好的事件转成角色间的对话。它不是让一群智能体不受约束地聊天,再期待好剧本自然出现。

原文第 3 页 ↗PDF p.3, §2

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

方法

角色扮演怎样接进流水线

原文摘录
Screenplay Generation Story Chapter: The Martian infirmary was a portrait of chaos. The unmistakable smell of antiseptic permeating the recycled air was in stark contrast with the infectious energy of a full-blown medical emergency. At the center of it all was Mathias, his robust form … Script Drafting Screenplay with Role-Playing Actor Context Action: Dr. Iris Hawke stands rigidly beside an un- Character Profile: Scene Heading: INT.; Martian infirmary; DAY. conscious Mathias "Mars" Barlow… Captain Amelia Summers, 40, is a Parenthetical: (whispering to unconscious Mars) skilled and assertive ship commander. Event: Dialog: "We are so close Mars, just hold on a little Her initial relationship with Iris, full of Dr. Iris Hawke stands beside longer. I will not let this beat us." tension due to a clash over handling of an unconscious Mathias a past security issue, evolves … "Mars" Barlow, gripping his Action: Dr. Arthur Bentley’s figure materializes into view hand with desperation as fear Interaction History: through the dense glass doors of the the Martian … settles in her gut. Parenthetical: (to himself) Dr. Iris Hawke: ... "We are so close …" Dialog: "Status check." Dr. Arthur Bentley: ... "Status check …" Event: Dr. Arthur Bentley steps into Current Event: the infirmary, casting a long Action: Following Dr. Arthur Bentley’s entry, Captain Captain Amelia Summers follows suit, shadow over the scene … Amelia Summers strides in, the gravity of her steps … her military uniform radiating Parenthetical: (assertively, to everyone in the infirmary) … professionalism. She comprehends the Dialog: "We need to ensure the colony’s internal ... " severity of the situation and issues … Figure 4: An example of screenplay generation with the script draft in the left, the screenplay with role playing in the middle and the actor context in the right. plots, while maintaining coherence between adja- 4. Dialogue. The spoken words of characters, it cent plots and relevance to the initial storyline. is the central element that conveys the story. Coherence Maintaining. The writer is prompted 5. Parenthetical. Information used to provide to elaborate each subplot and expand it into a additional instructions about how a line of di- full chapter of the story. To maintain coherence alogue should be delivered. throughout the story, it is crucial to incorporate These elements are connected in the format of what happened before into the current expansion. “Scene Heading ... Character Name: [Action Line] To achieve this, we include the nearest n chapters (Parenthetical) Dialogue ...” to form a script, as preceding the current subplot as context when ex- shown in the right of Table 32. panding it. Chapters situated at a distance greater Script Drafting. Taking the chapters expanded than n will not be considered, instead, we include from subplots, the writer drafts an initial screen- the unexpanded subplots. We set n to 1 in the ex- play, with each chapter converted into an episode periments. Additionally, the plot, scene, and intro- of script draft as shown in the left of Fig. 4. The ductions of involved characters in the current sub- script draft consists of two main components: the plot will always be put in the beginning of the Scene Heading and a series of events that happen context. See Table 21 in appendix for the detailed sequentially. Each event briefly describes a sin- prompt used for story expansion. gle character’s behavior, such as “Tom walks into the cafe and orders a cup of coffee”, which will 2.3 Screenplay Generation provide instructions for subsequent role-playing. In the entertainment and film industry, it is quite To fit the narrative of movies and TV series, we common to adapt novels or other types of literary prompt the writer to make appropriate cuts and ad- works into TV series and movies. H O LLM WOOD justments, as a chapter usually contains redundant simulates this practice in the real world and adapts descriptions of environments and characters’ psy- the story chapters into an engaging screenplay that chological activities. See Table 22 in appendix for unfolds over several episodes. the detailed prompt used for script drafting. Script Format. Typically, an episode script con- Role-Playing. Instead of directly generating char- sists of several key elements that make up a acter interactions from a third-person perspective, blueprint for the production of a film: we aim to bring the characters to life by casting 1. Scene Heading. Describe the location and LLMs in the roles of those characters. Building time of day for a particular scene. on the script draft generated before, we position 2. Action Line. Describe the actions and events LLMs as the characters and put them into the plots occurring in the scene. to interact with each other from a first-person per- 3. Character Name. Indicate who is the main spective as shown in the middle of Fig. 4. character shown on the screen. The role-playing is carried out sequentially 8078

条件:仅限本地原始PDF的 Figure 4; §2.3;不同表格与实验不合并

指标:到剧本阶段,Actors 按事件顺序被调用。每次回应依赖角色档案、交互历史和当前事件;因此角色发言被安放在已有剧情里。读代码或复现时要先弄清事件如何传给演员,再研究提示词,不能把顺序调用误解为所有角色同时自主行动。

原文第 4 页 ↗PDF p.4, Figure 4; §2.3

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

方法

实验怎样检验这个方法

原文摘录
in accordance with the events outlined in the then prompt LLMs to generate scripts based script draft. Since the draft only sketches a broad on each chapter. See Table 27 for detailed overview of the performance, specific details are prompts. left to the actors for creative interpretation. Specifi- We provide LLMs with a single-episode script cally, we initialize each actor with the introduction as an in-context learning example for both base- of the corresponding character and include its in- lines. We use gpt-3.5-turbo-16k-0613 and teraction history with other characters as context. gpt-4-0613 for all the methods, gpt-4-32k-0613 The instantiated characters are then immersed in for evaluation. For hyperparameters, we set tem- the current scene sandbox, spontaneously deliver- perature to 1 and top_p sampling to 0.999. ing performances grounded in its personality and the current event. Each actor’s performance will 3.2 Evaluation include Action Line, Parenthetical, and Dialogue In our evaluation, we conduct pairwise compar- as mentioned above. Therefore, the development isons between the screenplays generated by differ- of the plots, as well as the dialogues between char- ent methods using GPT-4 and humans. Addition- acters, unfold in a dynamic, role-playing manner. ally, we also conduct the automated evaluation. The actors’ detailed interpretation of all events forms the script for an episode. All episodes to- 3.2.1 Setting for Pairwise Comparison gether comprise a complete screenplay as the final Considering a full screenplay is too long (>5000 output. The detailed prompt for role-playing is pre- words), we segment it based on top-level plots, re- sented in Table 23. sulting in 212 and 206 pairs generated with GPT- 3.5 and GPT-4, respectively. For each comparison, 3 Experiments we concatenate scripts belonging to the same top- level plot (approximately 1500 words) and con- 3.1 Experimental Setup duct pairwise comparisons between examples gen- 3.1.1 Dataset erated with our method and baselines. We evaluate We use LLMs to synthesize preliminary storylines a screenplay in four dimensions: across several common film genres as input as in- 1. Coherence. Evaluate the coherence from the put. Specifically, we include six different genres: plot structure, character description, scene Romance, Science Fiction, Horror, Drama, Crime, transitions and setup consistency. Comedy. For each genre, we create 10 examples 2. Relevance. Evaluate the relevance from the with gpt-4-0613, resulting in 60 instances for test- relationship between the top-level plot and ing. To facilitate pairwise comparison, we set the the final scripts. top-level plots in the outline the same for baselines. 3. Interestingness. Evaluate the interestingness Each storyline contains approximately 120 words. from the originality of the screenplay, the un- Detailed information on the synthesized dataset is expectedness of plots, the depth of the char- given in Appendix A. acters, and the vividness of the dialog. 4. Overall Quality. Consider the coherence, rel- 3.1.2 Baselines evance, and interestingness of a screenplay to We find that there are limited existing works fo- assess the overall quality. cused on applying LLMs for automatic screenwrit- For each metric, we require GPT-4 or humans to ing, but only methods on storytelling with LLMs. decide which screenplay is better, or the two are We make some adjustments to these methods to indistinguishable from each other (‘tie’). For the generate screenplays that can be compared with detailed evaluation prompt, see Tables 24 and 25 ours. We use the following two baselines: in appendix. 1. Plan-then-Write, we prompt LLMs to de- sign several characters and formulate an out- 3.2.2 GPT-4 Evaluation line given the storyline, and then create each As shown in Table 1, H O LLM WOOD are rec- episode’s script sequentially according to the ognized substantially better than all baselines by plots within the outline. Specific prompts are GPT-4. Plan-then-Write gets the lowest win rate shown in Table 26. when compared with H O LLM WOOD, which indi- 2. DOC-screen, we use DOC (Yang et al., cates that LLMs fall short in creative tasks, such 2023) to generate chapters of the story and as screenwriting, without meticulous guidelines. 8079

条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并

指标:实验用不同底座模型生成,并分别采用模型比较与人工评价。系统间比较、反馈轮次比较和阶段失败分析是不同实验,必须保持评审者、对照和分母一致。

原文第 5 页 ↗PDF p.5, experimental setup

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

结果

主比较和反馈实验不是同一张表

原文摘录
Backbone Method Coherence ↑ Relevance ↑ Interesting ↑ Overall ↑ P LAN - THEN -W RITE Wins 43.2 41.2 38.8 41.3 H O LLM WOOD Wins 56.8 57.8 60.2 57.8 Ties 0.0 1.0 1.0 1.0 gpt-3.5-turbo DOC- SCREEN Wins 45.6 42.7 42.7 43.2 H O LLM WOOD Wins 54.4 57.3 56.8 56.8 Ties 0.0 0.0 0.5 0.0 P LAN - THEN -W RITE Wins 23.6 30.7 15.6 16.5 H O LLM WOOD Wins 76.4 68.4 84.0 83.0 Ties 0.0 0.9 0.4 0.5 gpt-4 DOC- SCREEN Wins 29.7 38.7 16.5 20.8 H O LLM WOOD Wins 70.3 60.8 81.6 79.2 Ties 0.0 0.5 1.9 0.0 Table 1: Pairwise comparison between H O LLM WOOD and baselines using GPT-4 as the judge model. Evaluation is conducted separately on the four dimensions. Bold indicates significance with p < 0.05. DOC-screen is slightly better in comparison, while Content Method Co↑ Re↑ In↑ OQ↑ it still underperforms our framework, as it has no R1 Wins 86.7 83.3 88.3 85.0 module carefully designed for generating stories R0 Wins 11.7 15.0 10.0 13.3 Ties 1.6 1.7 1.7 1.7 with rich character performances and interactions. Chars R2 Wins 88.3 80.0 91.7 88.3 Screenplays generated with H O LLM WOOD R0 Wins 10.0 16.7 6.7 8.3 are preferred across four dimensions using both Ties 1.7 3.3 1.6 3.4 gpt-3.5-turbo and gpt-4 as backbones. Inter- R1 Wins 96.7 90.0 98.3 93.3 estingly, we find that H O LLM WOOD shows par- R0 Wins 3.3 10.0 1.7 5.0 Ties 0.0 0.0 0.0 1.7 ticularly better performance in interestingness and Outline overall quality compared to coherence and rele- R2 Wins 96.7 91.7 98.3 95.0 R0 Wins 3.3 8.3 1.7 5.0 vance. This is expected, as the baselines lack a Ties 0.0 0.0 0.0 0.0 role-playing mechanism that allows LLMs to spon- taneously act as live characters and interact with Table 3: Comparisons of characters and outlines under differ- ent number of feedback rounds. ‘R0’(‘R1’,‘R2’) means the others. We also find that gpt-4 generally achieves maximum feedback rounds are 0(1,2). Bold indicates signifi- higher win rate compared to gpt-3.5-turbo as cance with p < 0.05. backbone, this indicates that stronger model can benefit more from our framework. Consequently, our approach can grow alongside the increasing 3.2.3 Human Evaluation capabilities of foundation models and hopefully We conduct human evaluation on a smaller scale generate screenplays close to the level of humans. (30 samples), with 3 experienced annotators as- Additionally, we conduct a more fine-grained anal- signed to each pairwise comparison. As presented ysis of the results by genre, as detailed in Ap- in Table 2, H O LLM WOOD significantly outper- pendix C. forms all baseline methods. This reflects the same trend as the results from the GPT-4 evaluation. Method Co ↑ Re ↑ In ↑ OQ ↑ 3.2.4 Automated Evaluation P LAN - THEN -W RITE Wins 10.0 13.3 8.9 4.4 H O LLM WOOD Wins 65.6 75.6 80.0 78.9 We perform automated evaluation on the full Ties 24.4 11.1 11.1 16.7 dataset, which includes the following automatic DOC- SCREEN Wins 18.9 27.8 20.0 16.7 metrics: Lexical Repetition (4-gram, n=4/8), H O LLM WOOD Wins 61.1 55.6 67.8 66.7 Ties 20.0 16.6 12.2 16.6 Distinct-3, Entropy-3/4, and Self-BLEU. n in Lex- ical Repetition means at least n occurrences. The Table 2: Pairwise comparisons of GPT-4-generated screen- results of the automated evaluation are presented plays between H O LLM WOOD and baselines under human in Table 4. It can be seen that H O LLM WOOD gen- evaluation. Co, Re, In and OQ are short for the aforemen- tioned four dimensions, respectively. Bold indicates signifi- erally outperforms other baselines on most of the cance with p < 0.05. automatic metrics, thus proving the effectiveness of our methods. 8080

条件:仅限本地原始PDF的 Tables 1 and 3;不同表格与实验不合并

指标:Table 1 中,以 GPT-4 生成并由 GPT-4 评价时,整体偏好比例为 83.0,相比对象是 Plan-then-Write。Table 3 中,角色阶段 R1 相对 R0 的整体偏好为 85.0。这是不同问题:前者比较系统,后者比较反馈迭代;后一个数字不在 Table 2,也不应被说成人类评委给出的反馈收益。

原文第 6 页 ↗PDF p.6, Table 1; Table 3

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

结果

底座模型会限制流水线

原文摘录
Backbone Method LP-4↓ LP-8 ↓ Distinct-3 ↑ Entropy-3 ↑ Entropy-4 ↑ Self-BLEU ↓ P LAN - THEN -W RITE 0.073 0.035 0.722 12.129 12.558 0.428 gpt-3.5 DOC- SCREEN 0.075 0.036 0.707 12.134 12.572 0.431 H O LLM WOOD 0.075 0.031 0.725 12.261 12.597 0.423 P LAN - THEN -W RITE 0.020 0.007 0.837 12.365 12.746 0.283 gpt-4 DOC- SCREEN 0.019 0.006 0.845 12.241 12.505 0.272 H O LLM WOOD 0.019 0.007 0.841 12.419 12.687 0.283 Table 4: Automated evaluation between H O LLM WOOD and baselines. LP-4/8 is short for Lexical Repetition (n-gram, n=4/8). Bold numbers indicate the best results, while underlined numbers represent the second-best results. Backbone Method Co ↑ Re↑ In↑ OQ↑ Model Stage-1 Stage-2 Stage-3 w/ RP Wins 89.0 79.5 89.2 84.3 Llama-2-7B 45.0 58.3 85.0 gpt-3.5 w/o RP Wins 10.5 20.3 8.6 14.5 Llama-2-13B 38.3 48.3 78.3 Ties 0.4 0.2 2.2 1.1 Llama-3.1-8B 41.7 43.3 76.7 Llama-3.1-70B 21.7 23.3 36.7 w/ RP Wins 76.9 74.6 77.6 75.1 gpt-4 w/o RP Wins 22.9 23.9 21.9 24.1 Ties 0.2 1.5 0.5 0.8 Table 6: Failure rates at each stage of the generation process. Each stage corresponds to the three steps in Sec. 2. Table 5: Comparisons of generated screenplays with and without role playing using GPT-4 as the judge. RP refers to role-playing. Bold indicates significance with p < 0.05. nism contributes most to the interestingness. This suggests that having LLMs act as the characters can lead to rich interactions and dialogues, there- 4 Ablation Study fore making a screenplay more interesting. 4.1 Impact of Feedback-Revision Backbone Method Words In this section, we investigate the impact of the H O LLM WOOD 5470 feedback-revision mechanism on plot-planning. gpt-3.5 P LAN - THEN -W RITE 5420 Specifically, we compare the character decriptions DOC- SCREEN 5929 and the outlines generated with different feedback H O LLM WOOD 4620 gpt-4 P LAN - THEN -W RITE 5352 rounds using GPT-4 as backbone. The evaluation DOC- SCREEN 5168 is conducted using GPT-4 in the same way as the main experiments. As illustrated in Table 3, Table 7: The average length statistics of screenplays gener- contents generated with feedback overwhelmingly ated by various methods. beat those without feedback, and the win rate in- creases accordingly with more rounds of feedback. 5 Analysis Surprisingly, the feedback-revision not only con- tributes positively to the coherence and relevance, 5.1 Case Study but also to the interestingness and overall quality, Table 8 shows an example of the characters and indicating that the feedback-revision can facilitate outline before and after feedback-revision. The the following script development. highlighted part shows that the revised content be- comes more reasonable and informative. Table 9 4.2 Impact of Role-Playing presents a comparison between characters’ perfor- To assess the influence of role-playing, we remove mances of the same events in the script draft with the role-playing module from H O LLM WOOD and and without role-play. It is evident that the perfor- prompt LLMs to generate screenplays directly mances after role-playing become more vivid. based on the script drafts. Since the input script drafts are the same, we split the whole screenplay 5.2 Experiments with Open-Weight Models based on subplots for pairwise comparison, result- We conduct additional experiments using ing in 454 and 398 pairs generated with GPT-3.5 the open-weight Llama-2-7B, Llama-2-13B, and GPT-4, respectively. The results in Table 5 Llama-3.1-8B and Llama-3.1-70B. Similarly, demonstrate a notable improvement on all met- we set temperature to 1 and top_p sampling to rics when employing the role-playing mechanism 0.999 for decoding (Shi et al., 2024). However, within H O LLM WOOD. The role-playing mecha- the first three models frequently fail to obey the 8081

条件:仅限本地原始PDF的 Table 6;不同表格与实验不合并

指标:Table 6 报告 llama2-7B 在剧本阶段的失败比例为 85.0。这个结果说明阶段式工作流并不会自动解决指令遵循和输出格式问题;评价强底座上的文本质量,与评价弱底座能不能走完流程,是两种不同的实验。

原文第 7 页 ↗PDF p.7, Table 6

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

限制

失败比例的分母

原文摘录
Initial Characters Feedback Revised Characters ... Maxwell Max Carter, a seasoned ... For Maxwell Carter, the charac- ... Max’s ambitions involved being astronaut in his late 30s, is a rugged ter introduction portrays him as a part of groundbreaking space mis- and resourceful man ... As the gravity seasoned astronaut with exceptional shifts and the environment becomes problem-solving skills, but it would sions, seeking to push the boundaries increasingly treacherous, Max must be helpful to explore his motivations of human exploration ... he gradu- rely on his survival instincts to navigate the dangers ... Max is and desires in more detail. What ally becomes her ally as he witness- initially skeptical of Iris and her theo- drives him to become Iris’ ally? es firsthand the malevolent entity’s ries, but he gradually becomes her What personal stakes does he have in devastating effects on the lost colonies ally, as he learns more about her and the mission? Adding this informa- ... Max is driven by a personal desire the entity. Despite his training and tion would make his character more relatable and engaging. ... to find his way back home and ensure experience, Max begins to question his own perceptions of reality ... the safety of his crewmates ... Initial Outline Feedback Revised Outline 1. Dr. Nemo discovers that entire ... ... Greater exploration of the entity’s ... a. Dr. Nemo embarks on a jour- a. The entity’s motives and its ul- motives : While the initial outline ney through the space-time contin- timate plan are revealed, its desire to mentions the entity is manipulating uum and discovers a previously un- bring chaos and destruction to both the teleportation technology, it doesn’t known parallel universe. She realizes that a malevolent entity is manip- delve into its motives or end goal. the lost colonies and the entire human ulating the teleportation technology Adding this information will increase civilization becomes clear. for its own purpose. ... the stakes and provide a clearer ... antagonist for Dr. Nemo ... b. ... Table 8: A comparison example of the characters and outline before and after revision based on the editor’s feedback. High- lighted text of the same color refers to the initial text, feedback, and revision of the same part. correct output format during generating characters ing one screenplay is about $5.6 using gpt-4 and outlines. This hinders parsing the required and $1.2 using gpt-3.5-turbo-16k. More fine- content as input for the subsequent modules. grained length statistics according to genre are Formatting errors also occur a lot during the stage given in Table 33. of generating final screenplays. The failure rates at each stage are shown in Table 6. We define the 6 Related Work failure rate for each stage as the proportion of incorrectly formatted examples, and previously 6.1 Creative Writing failed examples will not proceed to subsequent The key elements of creative writing can be traced stages. We attribute the main cause of failure to back to content planning. Yao et al., 2019 pro- the small models’ insufficient ability to follow poses sketching a plan to control the content of instructions when generating very long context. the generated story. This approach has been piv- For the larger and stronger model Llama-3.1-70B, otal in enabling pre-trained language models to the problems mentioned above are alleviated a lot generate high-quality stories with coherent plot and the failure rate is lower. lines (Chakrabarty et al., 2023; Rashkin et al., 2020). Additionally, it has been successfully ap- 5.3 Screenplay Length plied to generating poetry with form constraints, The average length statistics of generated screen- such as sonnets (Tian and Peng, 2022). A sig- plays are shown in Table 7. H O LLM WOOD gen- nificant shift in this domain has been the adap- erates screenplays containing approximately 5000 tation of content planning to LLMs. Yang et al. words, which is similar to the other baselines. (2022, 2023); Yuan et al. (2022) proposes generat- This indicates that our approach doesn’t win with ing longer, yet coherent stories through recursive length trickery, as it is shown in some prior works prompting. However, the generated stories remain (Rafailov et al., 2023; Meng et al., 2024) that too short (about 1,000 words), and they can not be LLMs seem to prefer longer answers in pairwise directly used by real-world entertainment industry. comparison. So the fairness of the evaluation is We focus screenwriting as it is a more practi- thus ensured. On average, the cost of generat- cal and specialized task. Mirowski et al. (2023) 8082

条件:仅限本地原始PDF的 failure analysis;不同表格与实验不合并

指标:已经在前序阶段失败的样本不会继续进入后续阶段。因此,后阶段失败率是在能够到达该阶段的样本中统计的,不能直接当作全部初始任务的最终失败概率。

原文第 8 页 ↗PDF p.8, failure analysis

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

限制

读完需要留下的边界

原文摘录
ated with LLMs still remain much room for im- languages with fewer resources, as we heavily rely provement in several aspects. For example, the on large pretrained language models, which may alignment technique in training LLMs (e.g., Chat- not perform as well in such languages. GPT) could pose certain limitations. Specifically, these models may have difficulty generating con- Acknowledgements tent related to dark themes such as horror and This work is supported in part by the National crime, which often involve violence or negative Natural Science Foundation of China (Grant elements. This is an important part in literature No. 62202421 and No. U23A20311); in part by writing, as the depiction of such dark aspects is Zhejiang Provincial Natural Science Foundation, a common case in many written works. Although China (Grant No. LTGS23F020001); and in part this restriction is necessary to prevent the genera- by Ningbo Yongjiang Talent Introduction Pro- tion of harmful content, it may inadvertently limit gramme, China (Grant No. 2021A-157-G). the breadth of artistic expression in AI-generated scripts. Besides, our qualitative analysis further finds References that screenplays generated by LLMs may have Elif Akata, Lion Schulz, Julian Coda-Forno, problems of plot repetitions and long-distance fac- Seong Joon Oh, Matthias Bethge, and Eric tual inconsistencies. Also, plots suffer from im- Schulz. 2023. Playing repeated games with large balance in detail: crucial plot points, such as re- language models. CoRR, abs/2305.16867. solving specific challenges, are overly simplified, AntonOsika. 2023. gpt-engineer. GitHub repository. while less significant events are overly detailed. Over-describing characters’ psychology and slo- James Betker, Gabriel Goh, Li Jing, Tim Brooks, gans occasionally appears and hinders the devel- Jianfeng Wang, Linjie Li, Long Ouyang, Juntang opment of the plot. Future research could focus on Zhuang, Joyce Lee, Yufei Guo, et al. 2023. Im- proving image generation with better captions. Com- finding a balance between the controlled genera- puter Science. https://cdn. openai. com/papers/dall- tion of such content and improving the consistency e-3. pdf, 2:3. of plots throughout extremely long context. Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Ethics Statement Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, The development of robust automated systems for Gretchen Krueger, Tom Henighan, Rewon Child, natural language generation, such as our proposed Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, screenwriting framework H O LLM WOOD, can po- Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin tentially be misused, such as generating harmful Chess, Jack Clark, Christopher Berner, Sam Mc- or misleading content. While we have not explic- Candlish, Alec Radford, Ilya Sutskever, and Dario itly incorporated mechanisms to reduce the likeli- Amodei. 2020. Language models are few-shot learn- hood of harmful text generation in this work, our ers. In NeurIPS. framework is designed to be modular with respect Sébastien Bubeck, Varun Chandrasekaran, Ronen El- to the base language models it relies on. There- dan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Pe- fore, advancements in these underlying models, ter Lee, Yin Tat Lee, Yuanzhi Li, Scott M. Lundberg, particularly in terms of their ability to control and Harsha Nori, Hamid Palangi, Marco Túlio Ribeiro, and Yi Zhang. 2023. Sparks of artificial general in- filter generated content, can be readily incorpo- telligence: Early experiments with GPT-4. CoRR, rated into our framework. Controlled generation abs/2303.12712. schemes, similar to those we used in our frame- work to ensure relevance to the provided storyline, Tuhin Chakrabarty, Arkadiy Saakyan, Olivia Winn, Artemis Panagopoulou, Yue Yang, Marianna Apid- can also be employed to further reduce the risk of ianaki, and Smaranda Muresan. 2023. I spy a generating inappropriate or harmful content. Cur- metaphor: Large language models and diffusion rently, our framework is designed for English lan- models co-create visual metaphors. arXiv preprint guage screenplays. Transferring our approach to arXiv:2305.14724. other languages would require adaptations, partic- Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, ularly in terms of the prompts used. The perfor- Maarten Bosma, Gaurav Mishra, Adam Roberts, mance of our framework may also be affected in Paul Barham, Hyung Won Chung, Charles Sutton, 8084

条件:仅限本地原始PDF的 Limitations;不同表格与实验不合并

指标:作者仍观察到重复、事实不一致和细节分配不均。多阶段编辑能改善输出,但没有消除这些问题;也没有依据把未经量化的部署成本写成已测得的“极其高昂”。论文的价值在于把规划、反馈与角色化写作接成可检验流程,而不是证明所有剧本都能自动达到专业水平。

原文第 10 页 ↗PDF p.10, Limitations

以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

读完,试着回答

论文研究什么问题?

HoLLMwood 把电影剧本生成拆成规划、故事扩展和剧本写作。Writer 负责产出,Editor 提反馈;角色扮演用于把已经组织好的事件转成角色间的对话。它不是让一群智能体不受约束地聊天,再期待好剧本自然出现。

已有方法缺口在哪里?

把长文本生成或评价当成单步任务,会掩盖中间机制及其失效条件。

输入是什么?

故事前提,以及逐步生成的事件安排、角色资料和交互历史。

机制是什么?

到剧本阶段,Actors 按事件顺序被调用。每次回应依赖角色档案、交互历史和当前事件;因此角色发言被安放在已有剧情里。读代码或复现时要先弄清事件如何传给演员,再研究提示词,不能把顺序调用误解为所有角色同时自主行动。

输出是什么?

Table 1 中,以 GPT-4 生成并由 GPT-4 评价时,整体偏好比例为 83.0,相比对象是 Plan-then-Write。Table 3 中,角色阶段 R1 相对 R0 的整体偏好为 85.0。这是不同问题:前者比较系统,后者比较反馈迭代;后一个数字不在 Table 2,也不应被说成人类评委给出的反馈收益。

适用边界是什么?

作者仍观察到重复、事实不一致和细节分配不均。多阶段编辑能改善输出,但没有消除这些问题;也没有依据把未经量化的部署成本写成已测得的“极其高昂”。论文的价值在于把规划、反馈与角色化写作接成可检验流程,而不是证明所有剧本都能自动达到专业水平。

还有什么未解决?

更换模型、文本分布或评价者后,主要观察是否仍能成立?

技术附录

问题与已有方法

问题设定

HoLLMwood 把电影剧本生成拆成规划、故事扩展和剧本写作。Writer 负责产出,Editor 提反馈;角色扮演用于把已经组织好的事件转成角色间的对话。它不是让一群智能体不受约束地聊天,再期待好剧本自然出现。 把长文本生成或评价当成单步任务,会掩盖中间机制及其失效条件。

方法与组成

核心思路

到剧本阶段,Actors 按事件顺序被调用。每次回应依赖角色档案、交互历史和当前事件;因此角色发言被安放在已有剧情里。读代码或复现时要先弄清事件如何传给演员,再研究提示词,不能把顺序调用误解为所有角色同时自主行动。

主要发现

  • 标题

    主比较和反馈实验不是同一张表

    证据

    Table 1 中,以 GPT-4 生成并由 GPT-4 评价时,整体偏好比例为 83.0,相比对象是 Plan-then-Write。Table 3 中,角色阶段 R1 相对 R0 的整体偏好为 85.0。这是不同问题:前者比较系统,后者比较反馈迭代;后一个数字不在 Table 2,也不应被说成人类评委给出的反馈收益。

    限制

    以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

    原文定位

    PDF p.6, Table 1; Table 3

  • 标题

    底座模型会限制流水线

    证据

    Table 6 报告 llama2-7B 在剧本阶段的失败比例为 85.0。这个结果说明阶段式工作流并不会自动解决指令遵循和输出格式问题;评价强底座上的文本质量,与评价弱底座能不能走完流程,是两种不同的实验。

    限制

    以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。

    原文定位

    PDF p.7, Table 6

概念定位

是什么

到剧本阶段,Actors 按事件顺序被调用。每次回应依赖角色档案、交互历史和当前事件;因此角色发言被安放在已有剧情里。读代码或复现时要先弄清事件如何传给演员,再研究提示词,不能把顺序调用误解为所有角色同时自主行动。

为什么重要

HoLLMwood 把电影剧本生成拆成规划、故事扩展和剧本写作。Writer 负责产出,Editor 提反馈;角色扮演用于把已经组织好的事件转成角色间的对话。它不是让一群智能体不受约束地聊天,再期待好剧本自然出现。

图表导读

  • PDF 页

    6

    标题

    PDF p.6, Table 1; Table 3

    解释

    Table 1 中,以 GPT-4 生成并由 GPT-4 评价时,整体偏好比例为 83.0,相比对象是 Plan-then-Write。Table 3 中,角色阶段 R1 相对 R0 的整体偏好为 85.0。这是不同问题:前者比较系统,后者比较反馈迭代;后一个数字不在 Table 2,也不应被说成人类评委给出的反馈收益。

  • PDF 页

    7

    标题

    PDF p.7, Table 6

    解释

    Table 6 报告 llama2-7B 在剧本阶段的失败比例为 85.0。这个结果说明阶段式工作流并不会自动解决指令遵循和输出格式问题;评价强底座上的文本质量,与评价弱底座能不能走完流程,是两种不同的实验。

核心概念

  • 名称

    它到底在解决什么

    解释

    HoLLMwood 把电影剧本生成拆成规划、故事扩展和剧本写作。Writer 负责产出,Editor 提反馈;角色扮演用于把已经组织好的事件转成角色间的对话。它不是让一群智能体不受约束地聊天,再期待好剧本自然出现。

    原文定位

    PDF p.3, §2

    证据来源

    paper_supported

  • 名称

    角色扮演怎样接进流水线

    解释

    到剧本阶段,Actors 按事件顺序被调用。每次回应依赖角色档案、交互历史和当前事件;因此角色发言被安放在已有剧情里。读代码或复现时要先弄清事件如何传给演员,再研究提示词,不能把顺序调用误解为所有角色同时自主行动。

    原文定位

    PDF p.4, Figure 4; §2.3

    证据来源

    paper_supported

章节阅读

  • 页码

    3

    作用

    method

    关键问题

    它到底在解决什么

    状态

    read

  • 页码

    4

    作用

    method

    关键问题

    角色扮演怎样接进流水线

    状态

    read

  • 页码

    5

    作用

    method

    关键问题

    实验怎样检验这个方法

    状态

    read

  • 页码

    6

    作用

    result

    关键问题

    主比较和反馈实验不是同一张表

    状态

    read

  • 页码

    7

    作用

    result

    关键问题

    底座模型会限制流水线

    状态

    read

  • 页码

    8

    作用

    limitation

    关键问题

    失败比例的分母

    状态

    read

  • 页码

    10

    作用

    limitation

    关键问题

    读完需要留下的边界

    状态

    read

批判性阅读

最低充分结论

作者仍观察到重复、事实不一致和细节分配不均。多阶段编辑能改善输出,但没有消除这些问题;也没有依据把未经量化的部署成本写成已测得的“极其高昂”。论文的价值在于把规划、反馈与角色化写作接成可检验流程,而不是证明所有剧本都能自动达到专业水平。

继续阅读

相关论文

共享概念

同一研究空间