先说结论
Ex3不是让模型一次写完一本书,而是从已有小说反向抽取大纲树,训练一个擅长扩写的模型,再沿树生成新小说并更新人物资料。它在中文小说配对评价中有优势,但人物记忆不等于趣味性:实体模块的消融甚至显示部分维度没有收益。 (原文:PDF p.3, Figure 1; Section 3.1;PDF p.6, Section 3.3; Figure 6;PDF p.6, Section 4;PDF p.7, Table 1;PDF p.9, Table 3;PDF p.5, Section 3.2; Entity Extraction)
指标:长篇小说的问题不只是上下文放不下:固定切块会截断情节,临时生成的大纲也可能缺少真正小说的层次。Ex3从原作里学习“段落怎样组成情节、章节怎样组成全书”的结构。提取阶段按相邻段落的语义相关程度分组,再逐层概括,而不是把任意等长文本当成一个故事单元。
条件:本地全文 ACL 2024 anthology PDF,Figure 1; Section 3.1;条件及比较对象见陈述
PDF p.3, Figure 1; Section 3.1 · PDF p.3
new novel Corpus Construction novel 𝑙% 𝑙$ text text 𝑙# … LLM 𝑙!"# … 𝑙$ 𝑙% Structure-info Eg. Instruction: Now you’re a novel Depth-First … … … writer, please write … … … … Extraction Generation … … … … Input: Fine- previous plot: … tuning entities’ info: … current summary: … Output: current content: … Fine-tuned LLM Extract Excelsior Expand Figure 1: The Ex3 framework for novel writing. Extract for structure information extraction; Excelsior for corpus construction and LLM fine-tuning; Expand for automatic novel generation. Ex processes: Extracting for extracting structure noticed that there is a higher semantic relevance information from raw novel texts, Excelsior for between consecutive paragraphs belonging to the constructing training corpus to fine-tune the LLMs, same "shot". When there is a transition in the and Expanding for generating novels in a human- story or scene, the semantic similarity between like writing style automatically. paragraphs decreases to a lower value. Based on this characteristic, we use text semantic similarity 3.1 Extracting to measure the correlation between paragraphs and Based on the raw text of the novel, we can group the text according to the story or scene, with- reverse-engineer the hierarchical structure infor- out compromising the coherence of the semantic mation, so as to reconstruct the logical layout and information. narrative design of the novel’s storylines. We use text-group-1 next text-grouping a Grouping and Summarizing approach to extract … … hierarchical structure information from bottom to similarity cut top. In this approach, Grouping refers to aggre- gating consecutive texts with high relevance into a … … group, as we believe these texts are more likely to paragraphs window come from the same outline. Summarizing refers to extracting a higher-level outline of each text group. Figure 2: Group the Text by Similarity. We calculate In this section, we’ll introduce the text grouping the semantic similarity scores and segment a window. method based on semantic similarity, as well as the Then we choose the paragraph corresponding to the processes of chapter summarizing and construct- minimum score in the window as the partition. ing structure information for the entire novel text. Moreover, to ensure the logical coherence of key The process is shown in Figure 2. Firstly, we contextual information, we propose the entity in- calculate the semantic similarity between all ad- formation extraction method. jacent paragraphs in the text. Then, a paragraph window is created based on a length range. Within Group the text by Similarity. The window each window, we select the two paragraphs with the length of a large language model is limited, and it lowest similarity as the partition points. Next, we cannot process an entire novel as input at once. apply the same operation to the remaining text until Therefore, we need to split the novel text into the entire article is divided into multiple groups of smaller parts. However, using a fixed-length win- paragraphs. This method takes paragraphs as the dow for splitting would significantly disrupt the smallest unit and groups the stories or scenes in integrity of the text information and semantic logic. the text while maintaining semantic integrity. The To address this issue, we propose a text grouping length range controls the granularity of informa- method based on semantic similarity. tion in each group, making the partitioning process In the process of writing a novel, the stories more flexible. or scenes unfold in an orderly manner, similar Specifically, We embed the paragraphs with a to the progression of shots in a movie. We have pre-trained CoSENT model (Xu, 2023) and then 9127
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:生成时,用户给主题和层级深度,也可以给标题与简介。模型把总纲展开成章节,再展开成段落;采用深度优先顺序,即写完当前分支的正文,再进入下一分支。负责扩写的模型已经微调,另一个通用模型负责实体资料的提取与更新。这样,后文读到的是截至当前情节的人物状态,而不只是最初设定;它仍依赖模型正确摘要,并非形式化一致性保证。
条件:本地全文 ACL 2024 anthology PDF,Section 3.3; Figure 6;条件及比较对象见陈述
PDF p.6, Section 3.3; Figure 6 · PDF p.6
Novel Initialization Instruction: You are currently a novelist and writing a novel about {novel_tag}. Please provide the title and fine-tuned writing assistant is responsible for text introduction of the novel. Input: Novel tag; expansion, while another general-purpose large lan- Output: The title and introduction of the novel. Level Expand (to get Level-0) guage model handles entity extraction and updates Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please outline the novel based on its introduction and pay attention to the coherence of the plot. the entity information database along with the text Input: Novel tag, novel title and novel introduction; Output: The brief outlines of the novel. generation. Level Expand (to get Level-k, k>=1) Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please contact During the expansion of intermediate-level out- the previous story plot and historical information of the corresponding entities to expand the plot content based on the following outline. Input: Novel tag, novel title, previous story, historical information of related entities and the current outline. lines, in accordance with the depth-first generation Output: More detailed outlines. Opening Chapter Middle-part Chapters Ending Chapters process, the expansion of the subsequent outline Instruction: As a novel writer, you are writing the opening Instruction: You are currently a novel -ist and writing a {novel_tag} novel Instruction: As a novel writer, you need to wrap up the {novel_tag} novel node can only commence after the subtree beneath plot of a {novel_tag} novel called {novel_title}. Please contact the named {novel_title}. Here is an outline called {novel_title}. Please expand the opening plot previous chapter’s outline and historical information of the related of the previous chapter, historical information of related entities, and an the current outline node has been completely writ- according to the outline of the opening chapter. entities, and expand the storylines based on this chapter’s outline below. outline of the ending chapter. Please expand the storylines for the ending. ten. This meticulous approach guarantees the logi- Input: Novel tag, novel title Input: Novel tag, novel title, previous Input: Novel tag, novel title, previous and the outline of opening chapter. outline, current outline and historical information; outline, historical information and the ending outline; cal coherence of entity information within the gen- Output: Detailed outline of the opening chapter. Output: Detailed outlines of the middle-part chapters. Output: Detailed outline of the ending chapter. erated outlines. Opening Paragraph Instruction: You are writing Middle-part Paragraphs Instruction: You are writing the main Ending Paragraph Instruction: Your {novel_tag} novel When it comes to the expansion of chapters, each the opening paragraphs for your {novel_tag} novel called body of the {novel_tag} novel called {novel_title}. Please contact the called {novel_title} has come to an end. The following content provides a chapter contains several paragraph group outlines. {novel_title}. Please expand previous outline and historical outline of the previous story, historical the opening content based on the outline, using the {POV} information of the related entities, expand the content based on the information of the related entities, and an outline of the ending paragraph. The writing assistant sequentially generate the main point of view. Input: Novel tag, novel title, abstract of this part from the {POV} point of view. Please write this part for the ending chapter from the {POV} point of view. text of the chapter based on these paragraph group the point of view and the Input: Novel tag, novel title, the point Input: Novel tag, novel title, the point outline of opening content. Output: Main text of the of view, previous outline, current outline and historical information; of view, previous outline, ending outline and historical information; outlines. We utilize the outline of the current para- opening paragraphs. Output: Main text of the middle-part paragraphs. Output: Main text of the ending paragraphs. graph group to extract entity names for knowledge collection. After generating the main text, we use Figure 6: Four categories of prompts to distinguish the collected knowledge and the generated text to different hierarchical levels. update the entity information database. In this depth-first tree-like generation process, pense, romance, and modernity, to construct cor- the leaf nodes represent the main text of the new pora following the process described above. We novel. By sequentially integrating the text, we can provide the distribution of the total word count obtain a complete and entirely new novel that is and total number of chapters of these novels in fully generated by the writing assistant. Appendix D. We then fine-tune the open-source 4 Evaluation model BaiChuan2-13B-Chat (Baichuan, 2023) us- ing these corpora for 2 epochs, stopping when the Experiment Setup. Our approach has the capa- loss reaches around 1.0 to prevent severe overfitting. bility to generate a long-form novel by giving a The fine-tuned model can be employed with vari- short premise. To evaluate the effectiveness of Ex3 , ous instructions to implement narrative expansion we compare the novels generated by Ex3 and other and generate text with a writing style that closely baselines by inputting the same premise, similar to aligns with the genre of novels. the setup in the Yang et al. (2023). Method Instantiation We select 20 high-quality 3.3 Expanding premises as input, which are chosen from real novel To enable large-scale models to fully leverage data and will not appear in the training dataset. The the structure information for expansive writing and length of these premises ranges from 60 to 120 track important entity information during text gen- words, covering various genres including science eration, we employ a depth-first writing mode (Fig- fiction, fantasy, mystery, and romance. The length ure 7. In this mode, the theme and hierarchical of the generated novels by Ex3 can be very long, depth of the novel are manually specified, where which was not observed in the previous baseline the theme determines the writing style, and the experiments. To compare as fairly as possible with depth indirectly controls the final length of the gen- previous work, we reference the novel length in the erated text. Afterward, the writing assistant output RECURRENTGPT baseline (Zhou et al., 2023) and the novel title and introduction. However, users design two sets of novels with different lengths for also have the option to provide their own titles and experimentation. We generate a set of long-length introductions if necessary. The subsequent writing novels (~10k words) and a set of medium-length process will be fully automated until a complete novels (~4k words) respectively, where each word novel is written. During the writing process, the means a Chinese character. 9130
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:实验给各方法相同的故事前提,选取不在训练集中的前提,覆盖不同体裁。分别生成中篇与长篇;论文特别说明其中“word”实际按中文字符计。比较对象包括滚动生成、层次规划与循环记忆方法,评价看相关、连贯、事件、措辞、转场、趣味和类人写作风格,不能只用篇幅衡量写作质量。
条件:本地全文 ACL 2024 anthology PDF,Section 4;条件及比较对象见陈述
PDF p.6, Section 4 · PDF p.6
Novel Initialization Instruction: You are currently a novelist and writing a novel about {novel_tag}. Please provide the title and fine-tuned writing assistant is responsible for text introduction of the novel. Input: Novel tag; expansion, while another general-purpose large lan- Output: The title and introduction of the novel. Level Expand (to get Level-0) guage model handles entity extraction and updates Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please outline the novel based on its introduction and pay attention to the coherence of the plot. the entity information database along with the text Input: Novel tag, novel title and novel introduction; Output: The brief outlines of the novel. generation. Level Expand (to get Level-k, k>=1) Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please contact During the expansion of intermediate-level out- the previous story plot and historical information of the corresponding entities to expand the plot content based on the following outline. Input: Novel tag, novel title, previous story, historical information of related entities and the current outline. lines, in accordance with the depth-first generation Output: More detailed outlines. Opening Chapter Middle-part Chapters Ending Chapters process, the expansion of the subsequent outline Instruction: As a novel writer, you are writing the opening Instruction: You are currently a novel -ist and writing a {novel_tag} novel Instruction: As a novel writer, you need to wrap up the {novel_tag} novel node can only commence after the subtree beneath plot of a {novel_tag} novel called {novel_title}. Please contact the named {novel_title}. Here is an outline called {novel_title}. Please expand the opening plot previous chapter’s outline and historical information of the related of the previous chapter, historical information of related entities, and an the current outline node has been completely writ- according to the outline of the opening chapter. entities, and expand the storylines based on this chapter’s outline below. outline of the ending chapter. Please expand the storylines for the ending. ten. This meticulous approach guarantees the logi- Input: Novel tag, novel title Input: Novel tag, novel title, previous Input: Novel tag, novel title, previous and the outline of opening chapter. outline, current outline and historical information; outline, historical information and the ending outline; cal coherence of entity information within the gen- Output: Detailed outline of the opening chapter. Output: Detailed outlines of the middle-part chapters. Output: Detailed outline of the ending chapter. erated outlines. Opening Paragraph Instruction: You are writing Middle-part Paragraphs Instruction: You are writing the main Ending Paragraph Instruction: Your {novel_tag} novel When it comes to the expansion of chapters, each the opening paragraphs for your {novel_tag} novel called body of the {novel_tag} novel called {novel_title}. Please contact the called {novel_title} has come to an end. The following content provides a chapter contains several paragraph group outlines. {novel_title}. Please expand previous outline and historical outline of the previous story, historical the opening content based on the outline, using the {POV} information of the related entities, expand the content based on the information of the related entities, and an outline of the ending paragraph. The writing assistant sequentially generate the main point of view. Input: Novel tag, novel title, abstract of this part from the {POV} point of view. Please write this part for the ending chapter from the {POV} point of view. text of the chapter based on these paragraph group the point of view and the Input: Novel tag, novel title, the point Input: Novel tag, novel title, the point outline of opening content. Output: Main text of the of view, previous outline, current outline and historical information; of view, previous outline, ending outline and historical information; outlines. We utilize the outline of the current para- opening paragraphs. Output: Main text of the middle-part paragraphs. Output: Main text of the ending paragraphs. graph group to extract entity names for knowledge collection. After generating the main text, we use Figure 6: Four categories of prompts to distinguish the collected knowledge and the generated text to different hierarchical levels. update the entity information database. In this depth-first tree-like generation process, pense, romance, and modernity, to construct cor- the leaf nodes represent the main text of the new pora following the process described above. We novel. By sequentially integrating the text, we can provide the distribution of the total word count obtain a complete and entirely new novel that is and total number of chapters of these novels in fully generated by the writing assistant. Appendix D. We then fine-tune the open-source 4 Evaluation model BaiChuan2-13B-Chat (Baichuan, 2023) us- ing these corpora for 2 epochs, stopping when the Experiment Setup. Our approach has the capa- loss reaches around 1.0 to prevent severe overfitting. bility to generate a long-form novel by giving a The fine-tuned model can be employed with vari- short premise. To evaluate the effectiveness of Ex3 , ous instructions to implement narrative expansion we compare the novels generated by Ex3 and other and generate text with a writing style that closely baselines by inputting the same premise, similar to aligns with the genre of novels. the setup in the Yang et al. (2023). Method Instantiation We select 20 high-quality 3.3 Expanding premises as input, which are chosen from real novel To enable large-scale models to fully leverage data and will not appear in the training dataset. The the structure information for expansive writing and length of these premises ranges from 60 to 120 track important entity information during text gen- words, covering various genres including science eration, we employ a depth-first writing mode (Fig- fiction, fantasy, mystery, and romance. The length ure 7. In this mode, the theme and hierarchical of the generated novels by Ex3 can be very long, depth of the novel are manually specified, where which was not observed in the previous baseline the theme determines the writing style, and the experiments. To compare as fairly as possible with depth indirectly controls the final length of the gen- previous work, we reference the novel length in the erated text. Afterward, the writing assistant output RECURRENTGPT baseline (Zhou et al., 2023) and the novel title and introduction. However, users design two sets of novels with different lengths for also have the option to provide their own titles and experimentation. We generate a set of long-length introductions if necessary. The subsequent writing novels (~10k words) and a set of medium-length process will be fully automated until a complete novels (~4k words) respectively, where each word novel is written. During the writing process, the means a Chinese character. 9130
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:中篇的Ex3与DOC配对中,连贯性对应Ex3为66.67、DOC为30.00;趣味性为46.67与26.67。表值是标注者认可相应方法更符合该维度的百分比,不是小说正确率,也不是一个可跨不同配对直接排序的统一分数。允许相同好坏,因此两行不必相加为满分。
条件:本地全文 ACL 2024 anthology PDF,Table 1;条件及比较对象见陈述
PDF p.7, Table 1 · PDF p.7
Hyper-parameter Init novel title A 1 2 … 𝑙#! … 1 … 𝑙 $! − 1 $ 𝑙# ! # novel tag level num novel intro LLM LLM Entity … LLM EE … LLM Entity Opening Chapters Extraction Extraction Level Expand Middle-part Chapters Ending Chapter/ / Level Expand / Level Expand Level Expand collecting collecting Level-0 1 2 … 𝐿! Level Expand " # ' … $"#$ A 1 2 … 𝑙%&" 1 2 … 𝑙%&" … 1 2 … 𝑙%&" 1 2 … 𝑙%&" Level-1 1 2 … 𝑙!! … Level Expand B 1 2 … 𝑃" 1 … 𝑃# … 1 … 𝑃$! 2 … 𝑙" … ! Level-k 1 LLM Entity LLM Entity … LLM Entity … LLM Entity Extraction Extraction Extraction Extraction Opening Middle-part Middle-part Ending B paragraph paragraph paragraph 1 2 … 𝑃" 1 2 … 𝑃# … collecting paragraph collecting collecting collecting updating updating updating updating … … $ 𝑇!! 𝑇"! 𝑇!" 𝑇#"# 𝑇!! 𝑇"! 𝑇#!! 𝑇!" … # Entity Database Entity Database Figure 7: Depth First Generation. A brief overview of the entire process is depicted in the diagram on the left, illustrating its characteristic of depth-first generation. Subgraph A depicts the expansion of intermediate-level outlines and subgraph B illustrates the expansion from chapters to the main body of the text. Medium Novels Relevant Coherent Event Diction Transition Interesting Human-like ~4k words Rolling-GPT 13.34 6.67 0.00 10.00 6.67 6.67 10.00 Ex3 63.34 83.34 53.33 80.00 93.34 80.00 96.67 DOC 40.00 30.00 23.33 40.00 23.33 26.67 33.33 Ex3 50.00 66.67 73.33 66.67 60.00 46.67 80.00 RE3 16.67 20.00 26.67 36.67 23.33 16.67 16.67 Ex3 63.33 56.67 53.33 70.00 53.33 63.33 73.33 RECURRENTGPT 3.33 3.33 3.33 0.00 26.67 0.00 0.00 Ex3 46.67 70.00 66.67 86.67 80.00 83.33 100.00 Table 1: Pair-wise comparison of Ex3 with different baselines for 10 novels of different genres under the scale of medium-length novels. The horizontal axis represents different methods being compared, the vertical axis represents the metrics being compared, and the table values indicate the percentage of annotators who believe the method’s novels align with the metrics. Results in different comparisons are not comparable with each other. Bold indicates significance with p < 0.05. Baselines. We selected the following four base- premise into the format required for inputting lines to compare against Ex3 . into the RECURRENTGPT, and only adjust the parameter controlling the generation length. 1. Rolling-GPT: A simple baseline that uses a sliding window to prompt LLM to generate Human Evaluation. Our goal is to generate novels. longer and more human-like novels. Following 2. DOC: The major baseline, based on Paper prior work like Yang et al. (2023) and Zhou et al. Yang et al. (2023), utilizes hierarchical struc- (2023), We conduct a pairwise experiment to com- ture to prompt LLM to transform the premise pare Ex3 and the baseline by designing question- into a plan and then generate novels. We only naires and presenting them to annotators for scor- modify the parameter controlling the gener- ing. The questionnaire consisted of a premise, two ation length, while keeping other settings as novels (denoted as A and B, with random order), the default configuration in the paper. and a set of questions. The human evaluation ex- 3. RE3 : a baseline based on Yang et al. (2022), periment includes the following metrics: which also utilizes hierarchical structure to generate novels by taking a premise as in- • Relevant: Consistent with the premise. put. Experimental settings are consistent with • Coherent: Contextual consistency. DOC for fair comparison. • Interesting: Interesting to the reader. 4. RECURRENTGPT: a baseline based on Zhou • Event: More captivating plot. et al. (2023), which allows generating a novel • Diction: More elegant grammar. step by step. We use the LLM to convert the • Transition: The transition is more natural. 9131
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:移除实体模块后,NO-ENTITY的趣味性为38.10,完整Ex3为28.57;措辞二者同为28.57。完整模型的连贯性为66.67,对方为28.57。这支持实体追踪有助于连贯,却不支持“加记忆后所有文学质量都提高”。这些是完整模型与消融模型的配对结果,不是独立绝对质量打分。
条件:本地全文 ACL 2024 anthology PDF,Table 3;条件及比较对象见陈述
PDF p.9, Table 3 · PDF p.9
Self-BERTscore Generate Perplexity Distinct Ratio Protagonist Ratio Human-Written Human-Written 25 Human-Written Human-Written Ex3 2.5 Ex3 Ex3 5 Ex3 DOC DOC DOC DOC 60 20 Probability Density Probability Density Probability Density Probability Density Re3 2.0 Re3 Re3 4 Re3 Rolling-GPT Rolling-GPT Rolling-GPT Rolling-GPT RECURRENTGPT RECURRENTGPT 15 RECURRENTGPT RECURRENTGPT 40 1.5 3 1.0 10 2 20 0.5 5 1 0 0.0 0 0 0.575 0.600 0.625 0.650 2 4 6 8 0.1 0.2 0.3 0.4 0.0 0.5 1.0 1.5 Value Value Value Value Figure 8: The automation metric plot Method Relevant Coherent Event Diction Transition Interesting Human-like NO-TRAIN 9.52 28.57 14.29 4.76 14.28 9.52 14.28 Ex3 47.62 57.15 52.38 61.90 52.38 66.67 85.71 NO-ENTITY 28.57 28.57 23.81 28.57 28.57 38.10 33.33 Ex3 52.38 66.67 52.38 28.57 66.67 28.57 61.90 Table 3: Pair-wise comparison of Ex3 with ablations without fine-tuned LLM and entity extraction module, respectively, for 10 novels of different genres. The horizontal axis of represents different methods being compared, the vertical axis represents the metrics being compared, and the table values indicate the percentage of annotators who believe the method’s novels align with the metrics. Results in different comparisons are not comparable with each other. Bold indicates significance with p < 0.05. written novels can enhance the human-like quality 6 Conclusion of generated content. In this paper, we present Ex3 , an automatic novel 5 Ablation Study writing framework. Ex3 first automatically ex- tracts structure information by learning from raw Ablated Modules. In order to better understand novel data and then creates an instruction-following the effect of different components in Ex3 on the dataset with this structure information and the quality of the generated novels, we set up ablation novel data. Subsequently, this dataset is employed experiments for different components. The ablation to fine-tune the LLM for excelsior generation per- experiment for the setup is shown below: formance. With the tuned LLM, Ex3 employs a tree-like expansion method to generate arbitrarily 1. NO-TRAIN: A version that skips the extract- long novels. The experiment results demonstrate ing and excelsior stages and uses the original that Ex3 is able to produce higher-quality long- BaiChuan2-13B-Chat model to generate nov- form novels than previous methods. els. 2. NO-ENTITY: A version that does not use the 7 Acknowledgement entity extraction module to generate novels. This work is partially supported by the NSF Results. As shown in Table 3, Ex3 exhibits signif- of China (under Grants U20A20227, U22A2028, icant advantages over NO-TRAIN across all met- 62102399, 61925208, 62222214, 62341411, rics, indicating the critical contribution of the fine- 62102398, 62372436, 62302478, 62302482, tuned LLM to the generation of long novels that are 62302483, 62302480), Strategic Priority Re- well-liked by human readers. In comparison to NO- search Program of the Chinese Academy of Sci- ENTITY, although Ex3 performs relatively equally ences, (Grant No. XDB0660200, XDB0660201, or slightly inferior in terms of Diction and Interest- XDB0660202, CAS Project for Young Scientists ing metrics, it still maintains significant advantages in Basic Research (YSBR-029), Youth Innovation in other metrics, suggesting a positive impact of Promotion Association CAS and Xplore Prize. the entity extraction module on enhancing the co- Limitations herence of roles plots in generated novels. we also examine the output of the intermediate steps in our Our proposed framework, Ex3 , effectively learns method and provide the results in Appendix G. novel structures and language styles from raw novel 9133
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:它需要从现成网络小说构建训练材料,并不是只改提示词的零训练方法。实体库也会主动丢弃较旧或次要的信息,因而不是无损记忆;如果早期提取错了人物关系,错误可能继续影响后文。阅读这篇最有价值的地方,是区分结构学习、写作微调和运行时记忆各自负责什么,而非接受“任意长度”的字面质量保证。
条件:本地全文 ACL 2024 anthology PDF,Section 3.2; Entity Extraction;条件及比较对象见陈述
PDF p.5, Section 3.2; Entity Extraction · PDF p.5
Firstly, we utilize the Chapter Summarizing method Previous plot On a distant continent Current plot One day, a monster The main entities and their historical information are: {historical_info} The current plot is: {current_plot} to extract summaries of each chapter in the novel, named Markia🏰 away from Elena Tribe🏛, named Barlock 👹 attacked Markia 🏰, input LLM Please extract and briefly summarize the important information of the King Arthur🤴also has a took Alice 👰 away, and which are then integrated in a sequential manner. pretty daughter named occupied Mount Alice inpu t main entities in the current plot, and update the entity information Alice👰. She is the pride 🏔, turning it into a huge database. Next, we employ semantic similarity to segment of this kingdom and lives in harmony with people. and dangerous volcano: Inferno Peak 🌋! output and update these summaries into groups, with each containing input Please extract and Entity-Database 🤴 👹 🏰 output 🤴 Arthur: King of Markia. stories of strong internal coherence. We then use recent visit 👰 + entities 👰🏔 LLM briefly summarize the main entities mentioned Update 🏔 🌋 in the above content. 🏰 Kingdom of Markia: The a large language model to summarize each group, kingdom of King Arthur, a historical info prosperous and harmonious land. generating outlines for the next level. This process entities to visit 🤴Arthur,👰 Alice, 🤴 Arthur: King of Markia. One day , it was attacked by 🏔 Mount Alice, 👰 Alice: Arthur’s daughter, Monster Barlock! can be repeated iteratively to gradually obtain out- 👹 Monster Barlock, princess and pride of Markia… 👰 Alice: Arthur’s daughter, pride 🏰 Kingdom Markia, 🏔 Mount Alice: … and princess of Markia, taken lines encompassing varying levels of information 🌋 Inferno Peak 🏰 Kingdom Markia: … away by Monster Barlock. 🏔 Mount Alice: A mountain range updating collecting granularity until the final comprehensive summary retrieval named after Princess Alice, but occupied by monsters and turned of the novel is achieved. Entity-Database 🏛 Elena Tribe: Residing in Elena Elves, it is a into a volcano, Inferno Peak. New A termination criterion is required to converge tribe full of magic. 🏰 Kingdom of Markia: The kingdom of King 👹 Barlock: The monster who attacked the Markia, took Alice to a final novel summary, which can be flexibly Arthur, a prosperous and harmonious land. 🤴 Arthur: King of Markia. away, occupied Alice Mountain as his own nest Inferno Peak. determined based on the previous hierarchy. For 👰 Alice: King Arthur’s daughter, princess and pride of Markia, lives in harmony with people. 🌋 Inferno Peak: Formerly Alice 🏔 Mount Alice: A magnificent mountain range Mountain, but occupied by Barock example, when there are only two level group sum- named after Princess Alice. and turned into a volcano. maries remaining, or when the total length of the summaries in the previous hierarchy falls below a Figure 5: A simple example of Entity Information Ex- threshold set beforehand, the algorithm terminates traction method. When it comes to the current plot, the entities captured by LLMs, along with recent visits, are after collapsing them into a single summary. An- retrieved from the database to obtain the historical in- other option is to consider the semantic similarities formation of relevant entities prior to the current plot between the level group summaries in the previous events. Then the current plot and historical information hierarchy, which can also be constrained using a are both input to LLMs to obtain the latest entity in- threshold. If the semantic similarities among the formation, thereby adding new entries or updating the level group summaries are sufficiently high, the information of related existing entries in the database. algorithm proceeds to generate the final summary. In our experiments, we use the text length as the background to extract key information about the convergence criterion. entities from the current text. It does not retain all Entity Extraction In order to ensure the align- historical details, but instead selectively discards ment of entity information throughout the full text, some past and less important knowledge and in- alleviate the problem of model forgetting, and en- corporates new information, thereby evolving the hance the coherence between preceding and sub- entity information database with the progress of sequent contexts, we incorporate the entity infor- the story. mation extraction method. Entity extraction refers to the process of identifying entities with specific 3.2 Excelsior significance in the text and extracting crucial infor- During the Extracting process, we form tree-like mation associated with them, such as characters, structure information from the novel text in a re- locations, or organizations. verse manner. To endow the large language model The method maintains an entity information with the linguistic style of a novel and enable it to database, focusing on the text of segmented para- learn text expansions at different hierarchical lev- graph groups as the primary objects. It tracks els, we develop five distinct categories of prompts, and records key information about entities as the as shown in Figure 6, to construct corpora for su- novel’s narrative unfolds, which is divided into two pervised fine-tuning. These instruction formats of stages: collection and updating (Figure 5). In the the corpora contain all the instruction formats re- collecting stage, we utilize a large language model quired by the LLM in the Expanding stage. The to identify the entity names in the current text. To- writing assistant will maintain contextual consis- gether with recently visited entities, we retrieve tency through the previous outline, current outline entries from the entity information database, to and historical knowledge about relevant entities construct the historical knowledge of the entities during the Expanding process. related to the current text. In the updating stage, We collect approximately 800 web novels from the model leverages historical knowledge as the the internet, covering genres such as fantasy, sus- 9129
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
论文为什么要做这件事
长篇小说的问题不只是上下文放不下:固定切块会截断情节,临时生成的大纲也可能缺少真正小说的层次。Ex3从原作里学习“段落怎样组成情节、章节怎样组成全书”的结构。提取阶段按相邻段落的语义相关程度分组,再逐层概括,而不是把任意等长文本当成一个故事单元。 (原文:PDF p.3, Figure 1; Section 3.1)
指标:长篇小说的问题不只是上下文放不下:固定切块会截断情节,临时生成的大纲也可能缺少真正小说的层次。Ex3从原作里学习“段落怎样组成情节、章节怎样组成全书”的结构。提取阶段按相邻段落的语义相关程度分组,再逐层概括,而不是把任意等长文本当成一个故事单元。
条件:本地全文 ACL 2024 anthology PDF,Figure 1; Section 3.1;条件及比较对象见陈述
PDF p.3, Figure 1; Section 3.1 · PDF p.3
new novel Corpus Construction novel 𝑙% 𝑙$ text text 𝑙# … LLM 𝑙!"# … 𝑙$ 𝑙% Structure-info Eg. Instruction: Now you’re a novel Depth-First … … … writer, please write … … … … Extraction Generation … … … … Input: Fine- previous plot: … tuning entities’ info: … current summary: … Output: current content: … Fine-tuned LLM Extract Excelsior Expand Figure 1: The Ex3 framework for novel writing. Extract for structure information extraction; Excelsior for corpus construction and LLM fine-tuning; Expand for automatic novel generation. Ex processes: Extracting for extracting structure noticed that there is a higher semantic relevance information from raw novel texts, Excelsior for between consecutive paragraphs belonging to the constructing training corpus to fine-tune the LLMs, same "shot". When there is a transition in the and Expanding for generating novels in a human- story or scene, the semantic similarity between like writing style automatically. paragraphs decreases to a lower value. Based on this characteristic, we use text semantic similarity 3.1 Extracting to measure the correlation between paragraphs and Based on the raw text of the novel, we can group the text according to the story or scene, with- reverse-engineer the hierarchical structure infor- out compromising the coherence of the semantic mation, so as to reconstruct the logical layout and information. narrative design of the novel’s storylines. We use text-group-1 next text-grouping a Grouping and Summarizing approach to extract … … hierarchical structure information from bottom to similarity cut top. In this approach, Grouping refers to aggre- gating consecutive texts with high relevance into a … … group, as we believe these texts are more likely to paragraphs window come from the same outline. Summarizing refers to extracting a higher-level outline of each text group. Figure 2: Group the Text by Similarity. We calculate In this section, we’ll introduce the text grouping the semantic similarity scores and segment a window. method based on semantic similarity, as well as the Then we choose the paragraph corresponding to the processes of chapter summarizing and construct- minimum score in the window as the partition. ing structure information for the entire novel text. Moreover, to ensure the logical coherence of key The process is shown in Figure 2. Firstly, we contextual information, we propose the entity in- calculate the semantic similarity between all ad- formation extraction method. jacent paragraphs in the text. Then, a paragraph window is created based on a length range. Within Group the text by Similarity. The window each window, we select the two paragraphs with the length of a large language model is limited, and it lowest similarity as the partition points. Next, we cannot process an entire novel as input at once. apply the same operation to the remaining text until Therefore, we need to split the novel text into the entire article is divided into multiple groups of smaller parts. However, using a fixed-length win- paragraphs. This method takes paragraphs as the dow for splitting would significantly disrupt the smallest unit and groups the stories or scenes in integrity of the text information and semantic logic. the text while maintaining semantic integrity. The To address this issue, we propose a text grouping length range controls the granularity of informa- method based on semantic similarity. tion in each group, making the partitioning process In the process of writing a novel, the stories more flexible. or scenes unfold in an orderly manner, similar Specifically, We embed the paragraphs with a to the progression of shots in a movie. We have pre-trained CoSENT model (Xu, 2023) and then 9127
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
核心方法到底怎么运转
生成时,用户给主题和层级深度,也可以给标题与简介。模型把总纲展开成章节,再展开成段落;采用深度优先顺序,即写完当前分支的正文,再进入下一分支。负责扩写的模型已经微调,另一个通用模型负责实体资料的提取与更新。这样,后文读到的是截至当前情节的人物状态,而不只是最初设定;它仍依赖模型正确摘要,并非形式化一致性保证。 (原文:PDF p.6, Section 3.3; Figure 6)
指标:生成时,用户给主题和层级深度,也可以给标题与简介。模型把总纲展开成章节,再展开成段落;采用深度优先顺序,即写完当前分支的正文,再进入下一分支。负责扩写的模型已经微调,另一个通用模型负责实体资料的提取与更新。这样,后文读到的是截至当前情节的人物状态,而不只是最初设定;它仍依赖模型正确摘要,并非形式化一致性保证。
条件:本地全文 ACL 2024 anthology PDF,Section 3.3; Figure 6;条件及比较对象见陈述
PDF p.6, Section 3.3; Figure 6 · PDF p.6
Novel Initialization Instruction: You are currently a novelist and writing a novel about {novel_tag}. Please provide the title and fine-tuned writing assistant is responsible for text introduction of the novel. Input: Novel tag; expansion, while another general-purpose large lan- Output: The title and introduction of the novel. Level Expand (to get Level-0) guage model handles entity extraction and updates Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please outline the novel based on its introduction and pay attention to the coherence of the plot. the entity information database along with the text Input: Novel tag, novel title and novel introduction; Output: The brief outlines of the novel. generation. Level Expand (to get Level-k, k>=1) Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please contact During the expansion of intermediate-level out- the previous story plot and historical information of the corresponding entities to expand the plot content based on the following outline. Input: Novel tag, novel title, previous story, historical information of related entities and the current outline. lines, in accordance with the depth-first generation Output: More detailed outlines. Opening Chapter Middle-part Chapters Ending Chapters process, the expansion of the subsequent outline Instruction: As a novel writer, you are writing the opening Instruction: You are currently a novel -ist and writing a {novel_tag} novel Instruction: As a novel writer, you need to wrap up the {novel_tag} novel node can only commence after the subtree beneath plot of a {novel_tag} novel called {novel_title}. Please contact the named {novel_title}. Here is an outline called {novel_title}. Please expand the opening plot previous chapter’s outline and historical information of the related of the previous chapter, historical information of related entities, and an the current outline node has been completely writ- according to the outline of the opening chapter. entities, and expand the storylines based on this chapter’s outline below. outline of the ending chapter. Please expand the storylines for the ending. ten. This meticulous approach guarantees the logi- Input: Novel tag, novel title Input: Novel tag, novel title, previous Input: Novel tag, novel title, previous and the outline of opening chapter. outline, current outline and historical information; outline, historical information and the ending outline; cal coherence of entity information within the gen- Output: Detailed outline of the opening chapter. Output: Detailed outlines of the middle-part chapters. Output: Detailed outline of the ending chapter. erated outlines. Opening Paragraph Instruction: You are writing Middle-part Paragraphs Instruction: You are writing the main Ending Paragraph Instruction: Your {novel_tag} novel When it comes to the expansion of chapters, each the opening paragraphs for your {novel_tag} novel called body of the {novel_tag} novel called {novel_title}. Please contact the called {novel_title} has come to an end. The following content provides a chapter contains several paragraph group outlines. {novel_title}. Please expand previous outline and historical outline of the previous story, historical the opening content based on the outline, using the {POV} information of the related entities, expand the content based on the information of the related entities, and an outline of the ending paragraph. The writing assistant sequentially generate the main point of view. Input: Novel tag, novel title, abstract of this part from the {POV} point of view. Please write this part for the ending chapter from the {POV} point of view. text of the chapter based on these paragraph group the point of view and the Input: Novel tag, novel title, the point Input: Novel tag, novel title, the point outline of opening content. Output: Main text of the of view, previous outline, current outline and historical information; of view, previous outline, ending outline and historical information; outlines. We utilize the outline of the current para- opening paragraphs. Output: Main text of the middle-part paragraphs. Output: Main text of the ending paragraphs. graph group to extract entity names for knowledge collection. After generating the main text, we use Figure 6: Four categories of prompts to distinguish the collected knowledge and the generated text to different hierarchical levels. update the entity information database. In this depth-first tree-like generation process, pense, romance, and modernity, to construct cor- the leaf nodes represent the main text of the new pora following the process described above. We novel. By sequentially integrating the text, we can provide the distribution of the total word count obtain a complete and entirely new novel that is and total number of chapters of these novels in fully generated by the writing assistant. Appendix D. We then fine-tune the open-source 4 Evaluation model BaiChuan2-13B-Chat (Baichuan, 2023) us- ing these corpora for 2 epochs, stopping when the Experiment Setup. Our approach has the capa- loss reaches around 1.0 to prevent severe overfitting. bility to generate a long-form novel by giving a The fine-tuned model can be employed with vari- short premise. To evaluate the effectiveness of Ex3 , ous instructions to implement narrative expansion we compare the novels generated by Ex3 and other and generate text with a writing style that closely baselines by inputting the same premise, similar to aligns with the genre of novels. the setup in the Yang et al. (2023). Method Instantiation We select 20 high-quality 3.3 Expanding premises as input, which are chosen from real novel To enable large-scale models to fully leverage data and will not appear in the training dataset. The the structure information for expansive writing and length of these premises ranges from 60 to 120 track important entity information during text gen- words, covering various genres including science eration, we employ a depth-first writing mode (Fig- fiction, fantasy, mystery, and romance. The length ure 7. In this mode, the theme and hierarchical of the generated novels by Ex3 can be very long, depth of the novel are manually specified, where which was not observed in the previous baseline the theme determines the writing style, and the experiments. To compare as fairly as possible with depth indirectly controls the final length of the gen- previous work, we reference the novel length in the erated text. Afterward, the writing assistant output RECURRENTGPT baseline (Zhou et al., 2023) and the novel title and introduction. However, users design two sets of novels with different lengths for also have the option to provide their own titles and experimentation. We generate a set of long-length introductions if necessary. The subsequent writing novels (~10k words) and a set of medium-length process will be fully automated until a complete novels (~4k words) respectively, where each word novel is written. During the writing process, the means a Chinese character. 9130
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
解释性例子:写“公主失踪”的故事时,先生成失踪、寻找、发现真相等章节;写完寻找章节后,把人物发现的新线索写回资料,再展开结局。这个例子只演示数据流,不是论文中的实验样本。
解释性推断,不能当作论文直接支持的主张。
实验怎样检验这个方法
实验给各方法相同的故事前提,选取不在训练集中的前提,覆盖不同体裁。分别生成中篇与长篇;论文特别说明其中“word”实际按中文字符计。比较对象包括滚动生成、层次规划与循环记忆方法,评价看相关、连贯、事件、措辞、转场、趣味和类人写作风格,不能只用篇幅衡量写作质量。 (原文:PDF p.6, Section 4)
指标:实验给各方法相同的故事前提,选取不在训练集中的前提,覆盖不同体裁。分别生成中篇与长篇;论文特别说明其中“word”实际按中文字符计。比较对象包括滚动生成、层次规划与循环记忆方法,评价看相关、连贯、事件、措辞、转场、趣味和类人写作风格,不能只用篇幅衡量写作质量。
条件:本地全文 ACL 2024 anthology PDF,Section 4;条件及比较对象见陈述
PDF p.6, Section 4 · PDF p.6
Novel Initialization Instruction: You are currently a novelist and writing a novel about {novel_tag}. Please provide the title and fine-tuned writing assistant is responsible for text introduction of the novel. Input: Novel tag; expansion, while another general-purpose large lan- Output: The title and introduction of the novel. Level Expand (to get Level-0) guage model handles entity extraction and updates Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please outline the novel based on its introduction and pay attention to the coherence of the plot. the entity information database along with the text Input: Novel tag, novel title and novel introduction; Output: The brief outlines of the novel. generation. Level Expand (to get Level-k, k>=1) Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please contact During the expansion of intermediate-level out- the previous story plot and historical information of the corresponding entities to expand the plot content based on the following outline. Input: Novel tag, novel title, previous story, historical information of related entities and the current outline. lines, in accordance with the depth-first generation Output: More detailed outlines. Opening Chapter Middle-part Chapters Ending Chapters process, the expansion of the subsequent outline Instruction: As a novel writer, you are writing the opening Instruction: You are currently a novel -ist and writing a {novel_tag} novel Instruction: As a novel writer, you need to wrap up the {novel_tag} novel node can only commence after the subtree beneath plot of a {novel_tag} novel called {novel_title}. Please contact the named {novel_title}. Here is an outline called {novel_title}. Please expand the opening plot previous chapter’s outline and historical information of the related of the previous chapter, historical information of related entities, and an the current outline node has been completely writ- according to the outline of the opening chapter. entities, and expand the storylines based on this chapter’s outline below. outline of the ending chapter. Please expand the storylines for the ending. ten. This meticulous approach guarantees the logi- Input: Novel tag, novel title Input: Novel tag, novel title, previous Input: Novel tag, novel title, previous and the outline of opening chapter. outline, current outline and historical information; outline, historical information and the ending outline; cal coherence of entity information within the gen- Output: Detailed outline of the opening chapter. Output: Detailed outlines of the middle-part chapters. Output: Detailed outline of the ending chapter. erated outlines. Opening Paragraph Instruction: You are writing Middle-part Paragraphs Instruction: You are writing the main Ending Paragraph Instruction: Your {novel_tag} novel When it comes to the expansion of chapters, each the opening paragraphs for your {novel_tag} novel called body of the {novel_tag} novel called {novel_title}. Please contact the called {novel_title} has come to an end. The following content provides a chapter contains several paragraph group outlines. {novel_title}. Please expand previous outline and historical outline of the previous story, historical the opening content based on the outline, using the {POV} information of the related entities, expand the content based on the information of the related entities, and an outline of the ending paragraph. The writing assistant sequentially generate the main point of view. Input: Novel tag, novel title, abstract of this part from the {POV} point of view. Please write this part for the ending chapter from the {POV} point of view. text of the chapter based on these paragraph group the point of view and the Input: Novel tag, novel title, the point Input: Novel tag, novel title, the point outline of opening content. Output: Main text of the of view, previous outline, current outline and historical information; of view, previous outline, ending outline and historical information; outlines. We utilize the outline of the current para- opening paragraphs. Output: Main text of the middle-part paragraphs. Output: Main text of the ending paragraphs. graph group to extract entity names for knowledge collection. After generating the main text, we use Figure 6: Four categories of prompts to distinguish the collected knowledge and the generated text to different hierarchical levels. update the entity information database. In this depth-first tree-like generation process, pense, romance, and modernity, to construct cor- the leaf nodes represent the main text of the new pora following the process described above. We novel. By sequentially integrating the text, we can provide the distribution of the total word count obtain a complete and entirely new novel that is and total number of chapters of these novels in fully generated by the writing assistant. Appendix D. We then fine-tune the open-source 4 Evaluation model BaiChuan2-13B-Chat (Baichuan, 2023) us- ing these corpora for 2 epochs, stopping when the Experiment Setup. Our approach has the capa- loss reaches around 1.0 to prevent severe overfitting. bility to generate a long-form novel by giving a The fine-tuned model can be employed with vari- short premise. To evaluate the effectiveness of Ex3 , ous instructions to implement narrative expansion we compare the novels generated by Ex3 and other and generate text with a writing style that closely baselines by inputting the same premise, similar to aligns with the genre of novels. the setup in the Yang et al. (2023). Method Instantiation We select 20 high-quality 3.3 Expanding premises as input, which are chosen from real novel To enable large-scale models to fully leverage data and will not appear in the training dataset. The the structure information for expansive writing and length of these premises ranges from 60 to 120 track important entity information during text gen- words, covering various genres including science eration, we employ a depth-first writing mode (Fig- fiction, fantasy, mystery, and romance. The length ure 7. In this mode, the theme and hierarchical of the generated novels by Ex3 can be very long, depth of the novel are manually specified, where which was not observed in the previous baseline the theme determines the writing style, and the experiments. To compare as fairly as possible with depth indirectly controls the final length of the gen- previous work, we reference the novel length in the erated text. Afterward, the writing assistant output RECURRENTGPT baseline (Zhou et al., 2023) and the novel title and introduction. However, users design two sets of novels with different lengths for also have the option to provide their own titles and experimentation. We generate a set of long-length introductions if necessary. The subsequent writing novels (~10k words) and a set of medium-length process will be fully automated until a complete novels (~4k words) respectively, where each word novel is written. During the writing process, the means a Chinese character. 9130
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
结果说明了什么
中篇的Ex3与DOC配对中,连贯性对应Ex3为66.67、DOC为30.00;趣味性为46.67与26.67。表值是标注者认可相应方法更符合该维度的百分比,不是小说正确率,也不是一个可跨不同配对直接排序的统一分数。允许相同好坏,因此两行不必相加为满分。 (原文:PDF p.7, Table 1)
指标:中篇的Ex3与DOC配对中,连贯性对应Ex3为66.67、DOC为30.00;趣味性为46.67与26.67。表值是标注者认可相应方法更符合该维度的百分比,不是小说正确率,也不是一个可跨不同配对直接排序的统一分数。允许相同好坏,因此两行不必相加为满分。
条件:本地全文 ACL 2024 anthology PDF,Table 1;条件及比较对象见陈述
PDF p.7, Table 1 · PDF p.7
Hyper-parameter Init novel title A 1 2 … 𝑙#! … 1 … 𝑙 $! − 1 $ 𝑙# ! # novel tag level num novel intro LLM LLM Entity … LLM EE … LLM Entity Opening Chapters Extraction Extraction Level Expand Middle-part Chapters Ending Chapter/ / Level Expand / Level Expand Level Expand collecting collecting Level-0 1 2 … 𝐿! Level Expand " # ' … $"#$ A 1 2 … 𝑙%&" 1 2 … 𝑙%&" … 1 2 … 𝑙%&" 1 2 … 𝑙%&" Level-1 1 2 … 𝑙!! … Level Expand B 1 2 … 𝑃" 1 … 𝑃# … 1 … 𝑃$! 2 … 𝑙" … ! Level-k 1 LLM Entity LLM Entity … LLM Entity … LLM Entity Extraction Extraction Extraction Extraction Opening Middle-part Middle-part Ending B paragraph paragraph paragraph 1 2 … 𝑃" 1 2 … 𝑃# … collecting paragraph collecting collecting collecting updating updating updating updating … … $ 𝑇!! 𝑇"! 𝑇!" 𝑇#"# 𝑇!! 𝑇"! 𝑇#!! 𝑇!" … # Entity Database Entity Database Figure 7: Depth First Generation. A brief overview of the entire process is depicted in the diagram on the left, illustrating its characteristic of depth-first generation. Subgraph A depicts the expansion of intermediate-level outlines and subgraph B illustrates the expansion from chapters to the main body of the text. Medium Novels Relevant Coherent Event Diction Transition Interesting Human-like ~4k words Rolling-GPT 13.34 6.67 0.00 10.00 6.67 6.67 10.00 Ex3 63.34 83.34 53.33 80.00 93.34 80.00 96.67 DOC 40.00 30.00 23.33 40.00 23.33 26.67 33.33 Ex3 50.00 66.67 73.33 66.67 60.00 46.67 80.00 RE3 16.67 20.00 26.67 36.67 23.33 16.67 16.67 Ex3 63.33 56.67 53.33 70.00 53.33 63.33 73.33 RECURRENTGPT 3.33 3.33 3.33 0.00 26.67 0.00 0.00 Ex3 46.67 70.00 66.67 86.67 80.00 83.33 100.00 Table 1: Pair-wise comparison of Ex3 with different baselines for 10 novels of different genres under the scale of medium-length novels. The horizontal axis represents different methods being compared, the vertical axis represents the metrics being compared, and the table values indicate the percentage of annotators who believe the method’s novels align with the metrics. Results in different comparisons are not comparable with each other. Bold indicates significance with p < 0.05. Baselines. We selected the following four base- premise into the format required for inputting lines to compare against Ex3 . into the RECURRENTGPT, and only adjust the parameter controlling the generation length. 1. Rolling-GPT: A simple baseline that uses a sliding window to prompt LLM to generate Human Evaluation. Our goal is to generate novels. longer and more human-like novels. Following 2. DOC: The major baseline, based on Paper prior work like Yang et al. (2023) and Zhou et al. Yang et al. (2023), utilizes hierarchical struc- (2023), We conduct a pairwise experiment to com- ture to prompt LLM to transform the premise pare Ex3 and the baseline by designing question- into a plan and then generate novels. We only naires and presenting them to annotators for scor- modify the parameter controlling the gener- ing. The questionnaire consisted of a premise, two ation length, while keeping other settings as novels (denoted as A and B, with random order), the default configuration in the paper. and a set of questions. The human evaluation ex- 3. RE3 : a baseline based on Yang et al. (2022), periment includes the following metrics: which also utilizes hierarchical structure to generate novels by taking a premise as in- • Relevant: Consistent with the premise. put. Experimental settings are consistent with • Coherent: Contextual consistency. DOC for fair comparison. • Interesting: Interesting to the reader. 4. RECURRENTGPT: a baseline based on Zhou • Event: More captivating plot. et al. (2023), which allows generating a novel • Diction: More elegant grammar. step by step. We use the LLM to convert the • Transition: The transition is more natural. 9131
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
移除实体模块后,NO-ENTITY的趣味性为38.10,完整Ex3为28.57;措辞二者同为28.57。完整模型的连贯性为66.67,对方为28.57。这支持实体追踪有助于连贯,却不支持“加记忆后所有文学质量都提高”。这些是完整模型与消融模型的配对结果,不是独立绝对质量打分。 (原文:PDF p.9, Table 3)
指标:移除实体模块后,NO-ENTITY的趣味性为38.10,完整Ex3为28.57;措辞二者同为28.57。完整模型的连贯性为66.67,对方为28.57。这支持实体追踪有助于连贯,却不支持“加记忆后所有文学质量都提高”。这些是完整模型与消融模型的配对结果,不是独立绝对质量打分。
条件:本地全文 ACL 2024 anthology PDF,Table 3;条件及比较对象见陈述
PDF p.9, Table 3 · PDF p.9
Self-BERTscore Generate Perplexity Distinct Ratio Protagonist Ratio Human-Written Human-Written 25 Human-Written Human-Written Ex3 2.5 Ex3 Ex3 5 Ex3 DOC DOC DOC DOC 60 20 Probability Density Probability Density Probability Density Probability Density Re3 2.0 Re3 Re3 4 Re3 Rolling-GPT Rolling-GPT Rolling-GPT Rolling-GPT RECURRENTGPT RECURRENTGPT 15 RECURRENTGPT RECURRENTGPT 40 1.5 3 1.0 10 2 20 0.5 5 1 0 0.0 0 0 0.575 0.600 0.625 0.650 2 4 6 8 0.1 0.2 0.3 0.4 0.0 0.5 1.0 1.5 Value Value Value Value Figure 8: The automation metric plot Method Relevant Coherent Event Diction Transition Interesting Human-like NO-TRAIN 9.52 28.57 14.29 4.76 14.28 9.52 14.28 Ex3 47.62 57.15 52.38 61.90 52.38 66.67 85.71 NO-ENTITY 28.57 28.57 23.81 28.57 28.57 38.10 33.33 Ex3 52.38 66.67 52.38 28.57 66.67 28.57 61.90 Table 3: Pair-wise comparison of Ex3 with ablations without fine-tuned LLM and entity extraction module, respectively, for 10 novels of different genres. The horizontal axis of represents different methods being compared, the vertical axis represents the metrics being compared, and the table values indicate the percentage of annotators who believe the method’s novels align with the metrics. Results in different comparisons are not comparable with each other. Bold indicates significance with p < 0.05. written novels can enhance the human-like quality 6 Conclusion of generated content. In this paper, we present Ex3 , an automatic novel 5 Ablation Study writing framework. Ex3 first automatically ex- tracts structure information by learning from raw Ablated Modules. In order to better understand novel data and then creates an instruction-following the effect of different components in Ex3 on the dataset with this structure information and the quality of the generated novels, we set up ablation novel data. Subsequently, this dataset is employed experiments for different components. The ablation to fine-tune the LLM for excelsior generation per- experiment for the setup is shown below: formance. With the tuned LLM, Ex3 employs a tree-like expansion method to generate arbitrarily 1. NO-TRAIN: A version that skips the extract- long novels. The experiment results demonstrate ing and excelsior stages and uses the original that Ex3 is able to produce higher-quality long- BaiChuan2-13B-Chat model to generate nov- form novels than previous methods. els. 2. NO-ENTITY: A version that does not use the 7 Acknowledgement entity extraction module to generate novels. This work is partially supported by the NSF Results. As shown in Table 3, Ex3 exhibits signif- of China (under Grants U20A20227, U22A2028, icant advantages over NO-TRAIN across all met- 62102399, 61925208, 62222214, 62341411, rics, indicating the critical contribution of the fine- 62102398, 62372436, 62302478, 62302482, tuned LLM to the generation of long novels that are 62302483, 62302480), Strategic Priority Re- well-liked by human readers. In comparison to NO- search Program of the Chinese Academy of Sci- ENTITY, although Ex3 performs relatively equally ences, (Grant No. XDB0660200, XDB0660201, or slightly inferior in terms of Diction and Interest- XDB0660202, CAS Project for Young Scientists ing metrics, it still maintains significant advantages in Basic Research (YSBR-029), Youth Innovation in other metrics, suggesting a positive impact of Promotion Association CAS and Xplore Prize. the entity extraction module on enhancing the co- Limitations herence of roles plots in generated novels. we also examine the output of the intermediate steps in our Our proposed framework, Ex3 , effectively learns method and provide the results in Appendix G. novel structures and language styles from raw novel 9133
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
这篇论文哪里最强,哪里最危险
它需要从现成网络小说构建训练材料,并不是只改提示词的零训练方法。实体库也会主动丢弃较旧或次要的信息,因而不是无损记忆;如果早期提取错了人物关系,错误可能继续影响后文。阅读这篇最有价值的地方,是区分结构学习、写作微调和运行时记忆各自负责什么,而非接受“任意长度”的字面质量保证。 (原文:PDF p.5, Section 3.2; Entity Extraction)
指标:它需要从现成网络小说构建训练材料,并不是只改提示词的零训练方法。实体库也会主动丢弃较旧或次要的信息,因而不是无损记忆;如果早期提取错了人物关系,错误可能继续影响后文。阅读这篇最有价值的地方,是区分结构学习、写作微调和运行时记忆各自负责什么,而非接受“任意长度”的字面质量保证。
条件:本地全文 ACL 2024 anthology PDF,Section 3.2; Entity Extraction;条件及比较对象见陈述
PDF p.5, Section 3.2; Entity Extraction · PDF p.5
Firstly, we utilize the Chapter Summarizing method Previous plot On a distant continent Current plot One day, a monster The main entities and their historical information are: {historical_info} The current plot is: {current_plot} to extract summaries of each chapter in the novel, named Markia🏰 away from Elena Tribe🏛, named Barlock 👹 attacked Markia 🏰, input LLM Please extract and briefly summarize the important information of the King Arthur🤴also has a took Alice 👰 away, and which are then integrated in a sequential manner. pretty daughter named occupied Mount Alice inpu t main entities in the current plot, and update the entity information Alice👰. She is the pride 🏔, turning it into a huge database. Next, we employ semantic similarity to segment of this kingdom and lives in harmony with people. and dangerous volcano: Inferno Peak 🌋! output and update these summaries into groups, with each containing input Please extract and Entity-Database 🤴 👹 🏰 output 🤴 Arthur: King of Markia. stories of strong internal coherence. We then use recent visit 👰 + entities 👰🏔 LLM briefly summarize the main entities mentioned Update 🏔 🌋 in the above content. 🏰 Kingdom of Markia: The a large language model to summarize each group, kingdom of King Arthur, a historical info prosperous and harmonious land. generating outlines for the next level. This process entities to visit 🤴Arthur,👰 Alice, 🤴 Arthur: King of Markia. One day , it was attacked by 🏔 Mount Alice, 👰 Alice: Arthur’s daughter, Monster Barlock! can be repeated iteratively to gradually obtain out- 👹 Monster Barlock, princess and pride of Markia… 👰 Alice: Arthur’s daughter, pride 🏰 Kingdom Markia, 🏔 Mount Alice: … and princess of Markia, taken lines encompassing varying levels of information 🌋 Inferno Peak 🏰 Kingdom Markia: … away by Monster Barlock. 🏔 Mount Alice: A mountain range updating collecting granularity until the final comprehensive summary retrieval named after Princess Alice, but occupied by monsters and turned of the novel is achieved. Entity-Database 🏛 Elena Tribe: Residing in Elena Elves, it is a into a volcano, Inferno Peak. New A termination criterion is required to converge tribe full of magic. 🏰 Kingdom of Markia: The kingdom of King 👹 Barlock: The monster who attacked the Markia, took Alice to a final novel summary, which can be flexibly Arthur, a prosperous and harmonious land. 🤴 Arthur: King of Markia. away, occupied Alice Mountain as his own nest Inferno Peak. determined based on the previous hierarchy. For 👰 Alice: King Arthur’s daughter, princess and pride of Markia, lives in harmony with people. 🌋 Inferno Peak: Formerly Alice 🏔 Mount Alice: A magnificent mountain range Mountain, but occupied by Barock example, when there are only two level group sum- named after Princess Alice. and turned into a volcano. maries remaining, or when the total length of the summaries in the previous hierarchy falls below a Figure 5: A simple example of Entity Information Ex- threshold set beforehand, the algorithm terminates traction method. When it comes to the current plot, the entities captured by LLMs, along with recent visits, are after collapsing them into a single summary. An- retrieved from the database to obtain the historical in- other option is to consider the semantic similarities formation of relevant entities prior to the current plot between the level group summaries in the previous events. Then the current plot and historical information hierarchy, which can also be constrained using a are both input to LLMs to obtain the latest entity in- threshold. If the semantic similarities among the formation, thereby adding new entries or updating the level group summaries are sufficiently high, the information of related existing entries in the database. algorithm proceeds to generate the final summary. In our experiments, we use the text length as the background to extract key information about the convergence criterion. entities from the current text. It does not retain all Entity Extraction In order to ensure the align- historical details, but instead selectively discards ment of entity information throughout the full text, some past and less important knowledge and in- alleviate the problem of model forgetting, and en- corporates new information, thereby evolving the hance the coherence between preceding and sub- entity information database with the progress of sequent contexts, we incorporate the entity infor- the story. mation extraction method. Entity extraction refers to the process of identifying entities with specific 3.2 Excelsior significance in the text and extracting crucial infor- During the Extracting process, we form tree-like mation associated with them, such as characters, structure information from the novel text in a re- locations, or organizations. verse manner. To endow the large language model The method maintains an entity information with the linguistic style of a novel and enable it to database, focusing on the text of segmented para- learn text expansions at different hierarchical lev- graph groups as the primary objects. It tracks els, we develop five distinct categories of prompts, and records key information about entities as the as shown in Figure 6, to construct corpora for su- novel’s narrative unfolds, which is divided into two pervised fine-tuning. These instruction formats of stages: collection and updating (Figure 5). In the the corpora contain all the instruction formats re- collecting stage, we utilize a large language model quired by the LLM in the Expanding stage. The to identify the entity names in the current text. To- writing assistant will maintain contextual consis- gether with recently visited entities, we retrieve tency through the previous outline, current outline entries from the entity information database, to and historical knowledge about relevant entities construct the historical knowledge of the entities during the Expanding process. related to the current text. In the updating stage, We collect approximately 800 web novels from the model leverages historical knowledge as the the internet, covering genres such as fantasy, sus- 9129
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
代码从哪里读
已核验作者代码仓库可以访问。先从项目说明核对版本、运行环境与输入格式,再决定是否复现。本次未安装、运行作者代码,也没有验证复现成功。
读完后记住这三件事
先从小说抽取大纲结构,再训练扩写模型,最后边写边更新人物资料;连贯与有趣不是同一个目标。 (原文:PDF p.3, Figure 1; Section 3.1;PDF p.6, Section 3.3; Figure 6;PDF p.6, Section 4;PDF p.7, Table 1;PDF p.9, Table 3;PDF p.5, Section 3.2; Entity Extraction)
指标:长篇小说的问题不只是上下文放不下:固定切块会截断情节,临时生成的大纲也可能缺少真正小说的层次。Ex3从原作里学习“段落怎样组成情节、章节怎样组成全书”的结构。提取阶段按相邻段落的语义相关程度分组,再逐层概括,而不是把任意等长文本当成一个故事单元。
条件:本地全文 ACL 2024 anthology PDF,Figure 1; Section 3.1;条件及比较对象见陈述
PDF p.3, Figure 1; Section 3.1 · PDF p.3
new novel Corpus Construction novel 𝑙% 𝑙$ text text 𝑙# … LLM 𝑙!"# … 𝑙$ 𝑙% Structure-info Eg. Instruction: Now you’re a novel Depth-First … … … writer, please write … … … … Extraction Generation … … … … Input: Fine- previous plot: … tuning entities’ info: … current summary: … Output: current content: … Fine-tuned LLM Extract Excelsior Expand Figure 1: The Ex3 framework for novel writing. Extract for structure information extraction; Excelsior for corpus construction and LLM fine-tuning; Expand for automatic novel generation. Ex processes: Extracting for extracting structure noticed that there is a higher semantic relevance information from raw novel texts, Excelsior for between consecutive paragraphs belonging to the constructing training corpus to fine-tune the LLMs, same "shot". When there is a transition in the and Expanding for generating novels in a human- story or scene, the semantic similarity between like writing style automatically. paragraphs decreases to a lower value. Based on this characteristic, we use text semantic similarity 3.1 Extracting to measure the correlation between paragraphs and Based on the raw text of the novel, we can group the text according to the story or scene, with- reverse-engineer the hierarchical structure infor- out compromising the coherence of the semantic mation, so as to reconstruct the logical layout and information. narrative design of the novel’s storylines. We use text-group-1 next text-grouping a Grouping and Summarizing approach to extract … … hierarchical structure information from bottom to similarity cut top. In this approach, Grouping refers to aggre- gating consecutive texts with high relevance into a … … group, as we believe these texts are more likely to paragraphs window come from the same outline. Summarizing refers to extracting a higher-level outline of each text group. Figure 2: Group the Text by Similarity. We calculate In this section, we’ll introduce the text grouping the semantic similarity scores and segment a window. method based on semantic similarity, as well as the Then we choose the paragraph corresponding to the processes of chapter summarizing and construct- minimum score in the window as the partition. ing structure information for the entire novel text. Moreover, to ensure the logical coherence of key The process is shown in Figure 2. Firstly, we contextual information, we propose the entity in- calculate the semantic similarity between all ad- formation extraction method. jacent paragraphs in the text. Then, a paragraph window is created based on a length range. Within Group the text by Similarity. The window each window, we select the two paragraphs with the length of a large language model is limited, and it lowest similarity as the partition points. Next, we cannot process an entire novel as input at once. apply the same operation to the remaining text until Therefore, we need to split the novel text into the entire article is divided into multiple groups of smaller parts. However, using a fixed-length win- paragraphs. This method takes paragraphs as the dow for splitting would significantly disrupt the smallest unit and groups the stories or scenes in integrity of the text information and semantic logic. the text while maintaining semantic integrity. The To address this issue, we propose a text grouping length range controls the granularity of informa- method based on semantic similarity. tion in each group, making the partitioning process In the process of writing a novel, the stories more flexible. or scenes unfold in an orderly manner, similar Specifically, We embed the paragraphs with a to the progression of shots in a movie. We have pre-trained CoSENT model (Xu, 2023) and then 9127
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:生成时,用户给主题和层级深度,也可以给标题与简介。模型把总纲展开成章节,再展开成段落;采用深度优先顺序,即写完当前分支的正文,再进入下一分支。负责扩写的模型已经微调,另一个通用模型负责实体资料的提取与更新。这样,后文读到的是截至当前情节的人物状态,而不只是最初设定;它仍依赖模型正确摘要,并非形式化一致性保证。
条件:本地全文 ACL 2024 anthology PDF,Section 3.3; Figure 6;条件及比较对象见陈述
PDF p.6, Section 3.3; Figure 6 · PDF p.6
Novel Initialization Instruction: You are currently a novelist and writing a novel about {novel_tag}. Please provide the title and fine-tuned writing assistant is responsible for text introduction of the novel. Input: Novel tag; expansion, while another general-purpose large lan- Output: The title and introduction of the novel. Level Expand (to get Level-0) guage model handles entity extraction and updates Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please outline the novel based on its introduction and pay attention to the coherence of the plot. the entity information database along with the text Input: Novel tag, novel title and novel introduction; Output: The brief outlines of the novel. generation. Level Expand (to get Level-k, k>=1) Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please contact During the expansion of intermediate-level out- the previous story plot and historical information of the corresponding entities to expand the plot content based on the following outline. Input: Novel tag, novel title, previous story, historical information of related entities and the current outline. lines, in accordance with the depth-first generation Output: More detailed outlines. Opening Chapter Middle-part Chapters Ending Chapters process, the expansion of the subsequent outline Instruction: As a novel writer, you are writing the opening Instruction: You are currently a novel -ist and writing a {novel_tag} novel Instruction: As a novel writer, you need to wrap up the {novel_tag} novel node can only commence after the subtree beneath plot of a {novel_tag} novel called {novel_title}. Please contact the named {novel_title}. Here is an outline called {novel_title}. Please expand the opening plot previous chapter’s outline and historical information of the related of the previous chapter, historical information of related entities, and an the current outline node has been completely writ- according to the outline of the opening chapter. entities, and expand the storylines based on this chapter’s outline below. outline of the ending chapter. Please expand the storylines for the ending. ten. This meticulous approach guarantees the logi- Input: Novel tag, novel title Input: Novel tag, novel title, previous Input: Novel tag, novel title, previous and the outline of opening chapter. outline, current outline and historical information; outline, historical information and the ending outline; cal coherence of entity information within the gen- Output: Detailed outline of the opening chapter. Output: Detailed outlines of the middle-part chapters. Output: Detailed outline of the ending chapter. erated outlines. Opening Paragraph Instruction: You are writing Middle-part Paragraphs Instruction: You are writing the main Ending Paragraph Instruction: Your {novel_tag} novel When it comes to the expansion of chapters, each the opening paragraphs for your {novel_tag} novel called body of the {novel_tag} novel called {novel_title}. Please contact the called {novel_title} has come to an end. The following content provides a chapter contains several paragraph group outlines. {novel_title}. Please expand previous outline and historical outline of the previous story, historical the opening content based on the outline, using the {POV} information of the related entities, expand the content based on the information of the related entities, and an outline of the ending paragraph. The writing assistant sequentially generate the main point of view. Input: Novel tag, novel title, abstract of this part from the {POV} point of view. Please write this part for the ending chapter from the {POV} point of view. text of the chapter based on these paragraph group the point of view and the Input: Novel tag, novel title, the point Input: Novel tag, novel title, the point outline of opening content. Output: Main text of the of view, previous outline, current outline and historical information; of view, previous outline, ending outline and historical information; outlines. We utilize the outline of the current para- opening paragraphs. Output: Main text of the middle-part paragraphs. Output: Main text of the ending paragraphs. graph group to extract entity names for knowledge collection. After generating the main text, we use Figure 6: Four categories of prompts to distinguish the collected knowledge and the generated text to different hierarchical levels. update the entity information database. In this depth-first tree-like generation process, pense, romance, and modernity, to construct cor- the leaf nodes represent the main text of the new pora following the process described above. We novel. By sequentially integrating the text, we can provide the distribution of the total word count obtain a complete and entirely new novel that is and total number of chapters of these novels in fully generated by the writing assistant. Appendix D. We then fine-tune the open-source 4 Evaluation model BaiChuan2-13B-Chat (Baichuan, 2023) us- ing these corpora for 2 epochs, stopping when the Experiment Setup. Our approach has the capa- loss reaches around 1.0 to prevent severe overfitting. bility to generate a long-form novel by giving a The fine-tuned model can be employed with vari- short premise. To evaluate the effectiveness of Ex3 , ous instructions to implement narrative expansion we compare the novels generated by Ex3 and other and generate text with a writing style that closely baselines by inputting the same premise, similar to aligns with the genre of novels. the setup in the Yang et al. (2023). Method Instantiation We select 20 high-quality 3.3 Expanding premises as input, which are chosen from real novel To enable large-scale models to fully leverage data and will not appear in the training dataset. The the structure information for expansive writing and length of these premises ranges from 60 to 120 track important entity information during text gen- words, covering various genres including science eration, we employ a depth-first writing mode (Fig- fiction, fantasy, mystery, and romance. The length ure 7. In this mode, the theme and hierarchical of the generated novels by Ex3 can be very long, depth of the novel are manually specified, where which was not observed in the previous baseline the theme determines the writing style, and the experiments. To compare as fairly as possible with depth indirectly controls the final length of the gen- previous work, we reference the novel length in the erated text. Afterward, the writing assistant output RECURRENTGPT baseline (Zhou et al., 2023) and the novel title and introduction. However, users design two sets of novels with different lengths for also have the option to provide their own titles and experimentation. We generate a set of long-length introductions if necessary. The subsequent writing novels (~10k words) and a set of medium-length process will be fully automated until a complete novels (~4k words) respectively, where each word novel is written. During the writing process, the means a Chinese character. 9130
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:实验给各方法相同的故事前提,选取不在训练集中的前提,覆盖不同体裁。分别生成中篇与长篇;论文特别说明其中“word”实际按中文字符计。比较对象包括滚动生成、层次规划与循环记忆方法,评价看相关、连贯、事件、措辞、转场、趣味和类人写作风格,不能只用篇幅衡量写作质量。
条件:本地全文 ACL 2024 anthology PDF,Section 4;条件及比较对象见陈述
PDF p.6, Section 4 · PDF p.6
Novel Initialization Instruction: You are currently a novelist and writing a novel about {novel_tag}. Please provide the title and fine-tuned writing assistant is responsible for text introduction of the novel. Input: Novel tag; expansion, while another general-purpose large lan- Output: The title and introduction of the novel. Level Expand (to get Level-0) guage model handles entity extraction and updates Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please outline the novel based on its introduction and pay attention to the coherence of the plot. the entity information database along with the text Input: Novel tag, novel title and novel introduction; Output: The brief outlines of the novel. generation. Level Expand (to get Level-k, k>=1) Instruction: You are currently a novelist and writing a {novel_tag} novel called {novel_title}. Please contact During the expansion of intermediate-level out- the previous story plot and historical information of the corresponding entities to expand the plot content based on the following outline. Input: Novel tag, novel title, previous story, historical information of related entities and the current outline. lines, in accordance with the depth-first generation Output: More detailed outlines. Opening Chapter Middle-part Chapters Ending Chapters process, the expansion of the subsequent outline Instruction: As a novel writer, you are writing the opening Instruction: You are currently a novel -ist and writing a {novel_tag} novel Instruction: As a novel writer, you need to wrap up the {novel_tag} novel node can only commence after the subtree beneath plot of a {novel_tag} novel called {novel_title}. Please contact the named {novel_title}. Here is an outline called {novel_title}. Please expand the opening plot previous chapter’s outline and historical information of the related of the previous chapter, historical information of related entities, and an the current outline node has been completely writ- according to the outline of the opening chapter. entities, and expand the storylines based on this chapter’s outline below. outline of the ending chapter. Please expand the storylines for the ending. ten. This meticulous approach guarantees the logi- Input: Novel tag, novel title Input: Novel tag, novel title, previous Input: Novel tag, novel title, previous and the outline of opening chapter. outline, current outline and historical information; outline, historical information and the ending outline; cal coherence of entity information within the gen- Output: Detailed outline of the opening chapter. Output: Detailed outlines of the middle-part chapters. Output: Detailed outline of the ending chapter. erated outlines. Opening Paragraph Instruction: You are writing Middle-part Paragraphs Instruction: You are writing the main Ending Paragraph Instruction: Your {novel_tag} novel When it comes to the expansion of chapters, each the opening paragraphs for your {novel_tag} novel called body of the {novel_tag} novel called {novel_title}. Please contact the called {novel_title} has come to an end. The following content provides a chapter contains several paragraph group outlines. {novel_title}. Please expand previous outline and historical outline of the previous story, historical the opening content based on the outline, using the {POV} information of the related entities, expand the content based on the information of the related entities, and an outline of the ending paragraph. The writing assistant sequentially generate the main point of view. Input: Novel tag, novel title, abstract of this part from the {POV} point of view. Please write this part for the ending chapter from the {POV} point of view. text of the chapter based on these paragraph group the point of view and the Input: Novel tag, novel title, the point Input: Novel tag, novel title, the point outline of opening content. Output: Main text of the of view, previous outline, current outline and historical information; of view, previous outline, ending outline and historical information; outlines. We utilize the outline of the current para- opening paragraphs. Output: Main text of the middle-part paragraphs. Output: Main text of the ending paragraphs. graph group to extract entity names for knowledge collection. After generating the main text, we use Figure 6: Four categories of prompts to distinguish the collected knowledge and the generated text to different hierarchical levels. update the entity information database. In this depth-first tree-like generation process, pense, romance, and modernity, to construct cor- the leaf nodes represent the main text of the new pora following the process described above. We novel. By sequentially integrating the text, we can provide the distribution of the total word count obtain a complete and entirely new novel that is and total number of chapters of these novels in fully generated by the writing assistant. Appendix D. We then fine-tune the open-source 4 Evaluation model BaiChuan2-13B-Chat (Baichuan, 2023) us- ing these corpora for 2 epochs, stopping when the Experiment Setup. Our approach has the capa- loss reaches around 1.0 to prevent severe overfitting. bility to generate a long-form novel by giving a The fine-tuned model can be employed with vari- short premise. To evaluate the effectiveness of Ex3 , ous instructions to implement narrative expansion we compare the novels generated by Ex3 and other and generate text with a writing style that closely baselines by inputting the same premise, similar to aligns with the genre of novels. the setup in the Yang et al. (2023). Method Instantiation We select 20 high-quality 3.3 Expanding premises as input, which are chosen from real novel To enable large-scale models to fully leverage data and will not appear in the training dataset. The the structure information for expansive writing and length of these premises ranges from 60 to 120 track important entity information during text gen- words, covering various genres including science eration, we employ a depth-first writing mode (Fig- fiction, fantasy, mystery, and romance. The length ure 7. In this mode, the theme and hierarchical of the generated novels by Ex3 can be very long, depth of the novel are manually specified, where which was not observed in the previous baseline the theme determines the writing style, and the experiments. To compare as fairly as possible with depth indirectly controls the final length of the gen- previous work, we reference the novel length in the erated text. Afterward, the writing assistant output RECURRENTGPT baseline (Zhou et al., 2023) and the novel title and introduction. However, users design two sets of novels with different lengths for also have the option to provide their own titles and experimentation. We generate a set of long-length introductions if necessary. The subsequent writing novels (~10k words) and a set of medium-length process will be fully automated until a complete novels (~4k words) respectively, where each word novel is written. During the writing process, the means a Chinese character. 9130
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:中篇的Ex3与DOC配对中,连贯性对应Ex3为66.67、DOC为30.00;趣味性为46.67与26.67。表值是标注者认可相应方法更符合该维度的百分比,不是小说正确率,也不是一个可跨不同配对直接排序的统一分数。允许相同好坏,因此两行不必相加为满分。
条件:本地全文 ACL 2024 anthology PDF,Table 1;条件及比较对象见陈述
PDF p.7, Table 1 · PDF p.7
Hyper-parameter Init novel title A 1 2 … 𝑙#! … 1 … 𝑙 $! − 1 $ 𝑙# ! # novel tag level num novel intro LLM LLM Entity … LLM EE … LLM Entity Opening Chapters Extraction Extraction Level Expand Middle-part Chapters Ending Chapter/ / Level Expand / Level Expand Level Expand collecting collecting Level-0 1 2 … 𝐿! Level Expand " # ' … $"#$ A 1 2 … 𝑙%&" 1 2 … 𝑙%&" … 1 2 … 𝑙%&" 1 2 … 𝑙%&" Level-1 1 2 … 𝑙!! … Level Expand B 1 2 … 𝑃" 1 … 𝑃# … 1 … 𝑃$! 2 … 𝑙" … ! Level-k 1 LLM Entity LLM Entity … LLM Entity … LLM Entity Extraction Extraction Extraction Extraction Opening Middle-part Middle-part Ending B paragraph paragraph paragraph 1 2 … 𝑃" 1 2 … 𝑃# … collecting paragraph collecting collecting collecting updating updating updating updating … … $ 𝑇!! 𝑇"! 𝑇!" 𝑇#"# 𝑇!! 𝑇"! 𝑇#!! 𝑇!" … # Entity Database Entity Database Figure 7: Depth First Generation. A brief overview of the entire process is depicted in the diagram on the left, illustrating its characteristic of depth-first generation. Subgraph A depicts the expansion of intermediate-level outlines and subgraph B illustrates the expansion from chapters to the main body of the text. Medium Novels Relevant Coherent Event Diction Transition Interesting Human-like ~4k words Rolling-GPT 13.34 6.67 0.00 10.00 6.67 6.67 10.00 Ex3 63.34 83.34 53.33 80.00 93.34 80.00 96.67 DOC 40.00 30.00 23.33 40.00 23.33 26.67 33.33 Ex3 50.00 66.67 73.33 66.67 60.00 46.67 80.00 RE3 16.67 20.00 26.67 36.67 23.33 16.67 16.67 Ex3 63.33 56.67 53.33 70.00 53.33 63.33 73.33 RECURRENTGPT 3.33 3.33 3.33 0.00 26.67 0.00 0.00 Ex3 46.67 70.00 66.67 86.67 80.00 83.33 100.00 Table 1: Pair-wise comparison of Ex3 with different baselines for 10 novels of different genres under the scale of medium-length novels. The horizontal axis represents different methods being compared, the vertical axis represents the metrics being compared, and the table values indicate the percentage of annotators who believe the method’s novels align with the metrics. Results in different comparisons are not comparable with each other. Bold indicates significance with p < 0.05. Baselines. We selected the following four base- premise into the format required for inputting lines to compare against Ex3 . into the RECURRENTGPT, and only adjust the parameter controlling the generation length. 1. Rolling-GPT: A simple baseline that uses a sliding window to prompt LLM to generate Human Evaluation. Our goal is to generate novels. longer and more human-like novels. Following 2. DOC: The major baseline, based on Paper prior work like Yang et al. (2023) and Zhou et al. Yang et al. (2023), utilizes hierarchical struc- (2023), We conduct a pairwise experiment to com- ture to prompt LLM to transform the premise pare Ex3 and the baseline by designing question- into a plan and then generate novels. We only naires and presenting them to annotators for scor- modify the parameter controlling the gener- ing. The questionnaire consisted of a premise, two ation length, while keeping other settings as novels (denoted as A and B, with random order), the default configuration in the paper. and a set of questions. The human evaluation ex- 3. RE3 : a baseline based on Yang et al. (2022), periment includes the following metrics: which also utilizes hierarchical structure to generate novels by taking a premise as in- • Relevant: Consistent with the premise. put. Experimental settings are consistent with • Coherent: Contextual consistency. DOC for fair comparison. • Interesting: Interesting to the reader. 4. RECURRENTGPT: a baseline based on Zhou • Event: More captivating plot. et al. (2023), which allows generating a novel • Diction: More elegant grammar. step by step. We use the LLM to convert the • Transition: The transition is more natural. 9131
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:移除实体模块后,NO-ENTITY的趣味性为38.10,完整Ex3为28.57;措辞二者同为28.57。完整模型的连贯性为66.67,对方为28.57。这支持实体追踪有助于连贯,却不支持“加记忆后所有文学质量都提高”。这些是完整模型与消融模型的配对结果,不是独立绝对质量打分。
条件:本地全文 ACL 2024 anthology PDF,Table 3;条件及比较对象见陈述
PDF p.9, Table 3 · PDF p.9
Self-BERTscore Generate Perplexity Distinct Ratio Protagonist Ratio Human-Written Human-Written 25 Human-Written Human-Written Ex3 2.5 Ex3 Ex3 5 Ex3 DOC DOC DOC DOC 60 20 Probability Density Probability Density Probability Density Probability Density Re3 2.0 Re3 Re3 4 Re3 Rolling-GPT Rolling-GPT Rolling-GPT Rolling-GPT RECURRENTGPT RECURRENTGPT 15 RECURRENTGPT RECURRENTGPT 40 1.5 3 1.0 10 2 20 0.5 5 1 0 0.0 0 0 0.575 0.600 0.625 0.650 2 4 6 8 0.1 0.2 0.3 0.4 0.0 0.5 1.0 1.5 Value Value Value Value Figure 8: The automation metric plot Method Relevant Coherent Event Diction Transition Interesting Human-like NO-TRAIN 9.52 28.57 14.29 4.76 14.28 9.52 14.28 Ex3 47.62 57.15 52.38 61.90 52.38 66.67 85.71 NO-ENTITY 28.57 28.57 23.81 28.57 28.57 38.10 33.33 Ex3 52.38 66.67 52.38 28.57 66.67 28.57 61.90 Table 3: Pair-wise comparison of Ex3 with ablations without fine-tuned LLM and entity extraction module, respectively, for 10 novels of different genres. The horizontal axis of represents different methods being compared, the vertical axis represents the metrics being compared, and the table values indicate the percentage of annotators who believe the method’s novels align with the metrics. Results in different comparisons are not comparable with each other. Bold indicates significance with p < 0.05. written novels can enhance the human-like quality 6 Conclusion of generated content. In this paper, we present Ex3 , an automatic novel 5 Ablation Study writing framework. Ex3 first automatically ex- tracts structure information by learning from raw Ablated Modules. In order to better understand novel data and then creates an instruction-following the effect of different components in Ex3 on the dataset with this structure information and the quality of the generated novels, we set up ablation novel data. Subsequently, this dataset is employed experiments for different components. The ablation to fine-tune the LLM for excelsior generation per- experiment for the setup is shown below: formance. With the tuned LLM, Ex3 employs a tree-like expansion method to generate arbitrarily 1. NO-TRAIN: A version that skips the extract- long novels. The experiment results demonstrate ing and excelsior stages and uses the original that Ex3 is able to produce higher-quality long- BaiChuan2-13B-Chat model to generate nov- form novels than previous methods. els. 2. NO-ENTITY: A version that does not use the 7 Acknowledgement entity extraction module to generate novels. This work is partially supported by the NSF Results. As shown in Table 3, Ex3 exhibits signif- of China (under Grants U20A20227, U22A2028, icant advantages over NO-TRAIN across all met- 62102399, 61925208, 62222214, 62341411, rics, indicating the critical contribution of the fine- 62102398, 62372436, 62302478, 62302482, tuned LLM to the generation of long novels that are 62302483, 62302480), Strategic Priority Re- well-liked by human readers. In comparison to NO- search Program of the Chinese Academy of Sci- ENTITY, although Ex3 performs relatively equally ences, (Grant No. XDB0660200, XDB0660201, or slightly inferior in terms of Diction and Interest- XDB0660202, CAS Project for Young Scientists ing metrics, it still maintains significant advantages in Basic Research (YSBR-029), Youth Innovation in other metrics, suggesting a positive impact of Promotion Association CAS and Xplore Prize. the entity extraction module on enhancing the co- Limitations herence of roles plots in generated novels. we also examine the output of the intermediate steps in our Our proposed framework, Ex3 , effectively learns method and provide the results in Appendix G. novel structures and language styles from raw novel 9133
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:它需要从现成网络小说构建训练材料,并不是只改提示词的零训练方法。实体库也会主动丢弃较旧或次要的信息,因而不是无损记忆;如果早期提取错了人物关系,错误可能继续影响后文。阅读这篇最有价值的地方,是区分结构学习、写作微调和运行时记忆各自负责什么,而非接受“任意长度”的字面质量保证。
条件:本地全文 ACL 2024 anthology PDF,Section 3.2; Entity Extraction;条件及比较对象见陈述
PDF p.5, Section 3.2; Entity Extraction · PDF p.5
Firstly, we utilize the Chapter Summarizing method Previous plot On a distant continent Current plot One day, a monster The main entities and their historical information are: {historical_info} The current plot is: {current_plot} to extract summaries of each chapter in the novel, named Markia🏰 away from Elena Tribe🏛, named Barlock 👹 attacked Markia 🏰, input LLM Please extract and briefly summarize the important information of the King Arthur🤴also has a took Alice 👰 away, and which are then integrated in a sequential manner. pretty daughter named occupied Mount Alice inpu t main entities in the current plot, and update the entity information Alice👰. She is the pride 🏔, turning it into a huge database. Next, we employ semantic similarity to segment of this kingdom and lives in harmony with people. and dangerous volcano: Inferno Peak 🌋! output and update these summaries into groups, with each containing input Please extract and Entity-Database 🤴 👹 🏰 output 🤴 Arthur: King of Markia. stories of strong internal coherence. We then use recent visit 👰 + entities 👰🏔 LLM briefly summarize the main entities mentioned Update 🏔 🌋 in the above content. 🏰 Kingdom of Markia: The a large language model to summarize each group, kingdom of King Arthur, a historical info prosperous and harmonious land. generating outlines for the next level. This process entities to visit 🤴Arthur,👰 Alice, 🤴 Arthur: King of Markia. One day , it was attacked by 🏔 Mount Alice, 👰 Alice: Arthur’s daughter, Monster Barlock! can be repeated iteratively to gradually obtain out- 👹 Monster Barlock, princess and pride of Markia… 👰 Alice: Arthur’s daughter, pride 🏰 Kingdom Markia, 🏔 Mount Alice: … and princess of Markia, taken lines encompassing varying levels of information 🌋 Inferno Peak 🏰 Kingdom Markia: … away by Monster Barlock. 🏔 Mount Alice: A mountain range updating collecting granularity until the final comprehensive summary retrieval named after Princess Alice, but occupied by monsters and turned of the novel is achieved. Entity-Database 🏛 Elena Tribe: Residing in Elena Elves, it is a into a volcano, Inferno Peak. New A termination criterion is required to converge tribe full of magic. 🏰 Kingdom of Markia: The kingdom of King 👹 Barlock: The monster who attacked the Markia, took Alice to a final novel summary, which can be flexibly Arthur, a prosperous and harmonious land. 🤴 Arthur: King of Markia. away, occupied Alice Mountain as his own nest Inferno Peak. determined based on the previous hierarchy. For 👰 Alice: King Arthur’s daughter, princess and pride of Markia, lives in harmony with people. 🌋 Inferno Peak: Formerly Alice 🏔 Mount Alice: A magnificent mountain range Mountain, but occupied by Barock example, when there are only two level group sum- named after Princess Alice. and turned into a volcano. maries remaining, or when the total length of the summaries in the previous hierarchy falls below a Figure 5: A simple example of Entity Information Ex- threshold set beforehand, the algorithm terminates traction method. When it comes to the current plot, the entities captured by LLMs, along with recent visits, are after collapsing them into a single summary. An- retrieved from the database to obtain the historical in- other option is to consider the semantic similarities formation of relevant entities prior to the current plot between the level group summaries in the previous events. Then the current plot and historical information hierarchy, which can also be constrained using a are both input to LLMs to obtain the latest entity in- threshold. If the semantic similarities among the formation, thereby adding new entries or updating the level group summaries are sufficiently high, the information of related existing entries in the database. algorithm proceeds to generate the final summary. In our experiments, we use the text length as the background to extract key information about the convergence criterion. entities from the current text. It does not retain all Entity Extraction In order to ensure the align- historical details, but instead selectively discards ment of entity information throughout the full text, some past and less important knowledge and in- alleviate the problem of model forgetting, and en- corporates new information, thereby evolving the hance the coherence between preceding and sub- entity information database with the progress of sequent contexts, we incorporate the entity infor- the story. mation extraction method. Entity extraction refers to the process of identifying entities with specific 3.2 Excelsior significance in the text and extracting crucial infor- During the Extracting process, we form tree-like mation associated with them, such as characters, structure information from the novel text in a re- locations, or organizations. verse manner. To endow the large language model The method maintains an entity information with the linguistic style of a novel and enable it to database, focusing on the text of segmented para- learn text expansions at different hierarchical lev- graph groups as the primary objects. It tracks els, we develop five distinct categories of prompts, and records key information about entities as the as shown in Figure 6, to construct corpora for su- novel’s narrative unfolds, which is divided into two pervised fine-tuning. These instruction formats of stages: collection and updating (Figure 5). In the the corpora contain all the instruction formats re- collecting stage, we utilize a large language model quired by the LLM in the Expanding stage. The to identify the entity names in the current text. To- writing assistant will maintain contextual consis- gether with recently visited entities, we retrieve tency through the previous outline, current outline entries from the entity information database, to and historical knowledge about relevant entities construct the historical knowledge of the entities during the Expanding process. related to the current text. In the updating stage, We collect approximately 800 web novels from the model leverages historical knowledge as the the internet, covering genres such as fantasy, sus- 9129
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。