先说结论
DOME 用动态层次大纲管理未来情节,用记忆检索约束已经发生的事实。它能在论文配置下写出更长且较少矛盾的故事,但调用成本和消融条件不能省略。 (原文:PDF p.3, §3;PDF p.5, Figure 4; §4.2;PDF p.6, experimental setup;PDF p.7, Table 1;PDF p.7, Table 2;PDF p.8, §5.2; Table 3;PDF p.9, Limitations)
指标:DOME 针对长故事越写越容易忘记前文的问题,把层次大纲和记忆增强结合起来。大纲控制接下来应该发生什么,记忆帮助模型知道已经发生过什么;前者主要组织情节,后者主要约束续写时的事实,两者不是同一种提示词技巧。
条件:仅限本地原始PDF的 §3;不同表格与实验不合并
PDF p.3, §3 · PDF p.3
nt Update Calculate Store the score Update • Setting DHO at stage i Long Story S • Characters Detailed Outline 𝑖 Partial Story 𝑠 … • Outline As he stood in the As he stood in the • Writing Theory middle of the room, middle of the room, taking in the blank taking in the blank canvas ... canvas ... … Peering through the query relevant content extract quadruples peephole, he saw an Rough Outline 𝑖 older gentleman with a <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > friendly smile - his … <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > Rough Outline 𝑖 1 update … relevant … … content <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > TKG at stage 𝑖 1 Memory-Enhancement Module Figure 2: General diagram of proposed DOME. The story generation process is divided into several stages based on the amount of rough outline. At stage i, we expand rough outline i into several detailed outlines based on the relevant content provided by MEM, and these outlines generate partial story sequentially based on their relevant content querying from MEM. Every generated partial story is stored in a Temporal Knowledge Graph (TKG) for the following query. writing process through a plan-and-write frame- et al., 2023), Llama 3 (AI@Meta, 2024) and work (Yao et al., 2019). Fan et al. (2018) proposes Qwen1.5 (Bai et al., 2023), the integration of LLMs a hierarchical story generation method, which first and KGs has attracted widespread attention due generates a story premise and then generates the to the potential improvement KGs can make for story based on it. Yao et al. (2019) introduces a LLMs (Ji et al., 2022). KG can be used as a knowl- "plan-and-write" framework for open-domain story edge base to provide references when LLM gen- generation, which divides the writing process into erates content. There are two kinds of work to planning and generating. Yang et al. (2022) further inject the knowledge in KG into LLM. The first subdivides writing into plan, draft, rewrite, and edit one fuse knowledge in KG and input by directly module. Yang et al. (2023) makes efforts on outline concatenating them in language level (Zhang et al., control to generate a more detailed and hierarchical 2024; Wen et al., 2024; Sun et al., 2021) or in to- story. Although this technique can lengthen the ken level (Zhang et al., 2019; He et al., 2020; Su narrative and enhance plot fluidity, the rigid nature et al., 2021). These methods can easily fuse the of a predetermined outline can hinder flexibility in knowledge between them but with little interac- the writing phase, resulting in plot inconsistencies, tion between knowledge and input. The second such as repeated or contradictory contexts. one applies the addition knowledge fusion mod- Other works (Zhou et al., 2023; Brahman et al., ule in which the knowledge is updated and simpli- 2020) explore using human interaction to replace fied (Sun et al., 2022; Zhang et al., 2022). pre-generated outlines. Brahman et al. (2020) intro- duce a content-inducing approach, which involves 3 Problem definition and motivation human being using cue-phrases. Zhou et al. (2023) 3.1 Problem Definition propose a language simulacrum of RNN recurrence, For a given story premise I from a writer, we design enabling human-guided story planning. This re- a framework F ∗ to generate a long-form story S. duces plot inconsistencies but results in less fluent The score of story S on the plot coherence is C P lot and readable narratives. and the score of story S on the context coherence is C Context . We aim to generate a story S with 2.2 KG-enhanced LLM Inference improved C P lot and C Context . Knowledge Graphs (KGs) can effectively model the key information in text by triples in the form of 3.2 Motivaiton < subject, action, object > (Ji et al., 2022). Af- Existing long-form story generation methods sepa- ter the appearance of LLMs, like GPT-3.5 (Achiam rate planning and writing stages based on the plan- 1354
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:记忆使用带时间索引的知识图谱,事实写成 subject、action、object、index 四元组,index 记录信息所在的章节。续写时按相关实体检索,再做相关性筛选,把相关事实带回生成上下文。这不是简单把全部历史原样塞回提示词,也不是证明模型从此不会遗忘。
条件:仅限本地原始PDF的 Figure 4; §4.2;不同表格与实验不合并
PDF p.5, Figure 4; §4.2 · PDF p.5
Outline Entity Knowledge Graph Quadruple Relevance filtering <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > 1.Rising Action: <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > Gabriel faces the LLM … select top-k … score content challenges... <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > calculate the similarity score Figure 4: The details of querying for the relevant content. Notably the last arrow points to the historical information semantically related to the input content. line generation prompt. Thus, the rough outline R Algorithm 1 Inference Pipeline for DOME was generated based on user input I: Require: Novel writing theory W T , the Large Language Model applied in DOME LLM , user input I, rough R = LLM (W T, I, Prough_outline ), (1) outline prompt Prough_outline , detailed outline prompt Pdetailed_outline , story generation prompt Pgen_story . 1: Initialize MEM KG. where W T is the novel writing theory, LLM (·) is 2: Generate rough outline R via Eq. (1). LLM inference operation, and Prough_outline is the 3: for ri in R = {ri }i=5i=1 do prompt guiding LLM to generate a rough outline. 4: Find relevant content RInf oi about ri from KG. 5: Generate detailed outlines di via Eq. (2). The detailed outline D = {di }5i=1 is generated 6: Add di into D. step by step according to the corresponding part 7: for doti in di = {doti }t=M t=1 do 8: Find relevant content DInf o.ti about doti from of the rough outline ri and its relevant content KG. RInf o.i , ensuring its adaptation to the uncertainty 9: Generate partial story sti via Eq. (3). in the story generation stage. 10: Add sti into story S. 11: Store sti into KG. 12: end for di = LLM (ri , RInf o.i , Pdetailed_outline ), (2) 13: end for 14: return R, D and S. where Pdetailed_outline is the prompt that indicates LLM to generate a detailed outline. The di = {doti }Mt=1 contains detailed outlines expanded from We propose an additional Memory-Enhancement the rough outline. The M is the number of detailed Module, named MEM, to store the generated story outlines expanded from the given rough outline ri and provide concise relevant content. which should be set at the beginning. KGs and their variants are well-established tools The story content sti is generated step-by-step for content storage and query (Wen et al., 2024). based on the detailed outline doti and relevant gen- KGs extract the key information for the content erated content DInf o.ti of the sub-detailed outline like subject, action, and object and ignore unimpor- doti , which is as follows: tant information like adverbs and modifiers. Be- sides, the structure of the knowledge graph sup- sti = LLM (doti , DInf o.ti , Pgen_story ), (3) ports reasoning and information fusion, which is where Pgen_story is the prompt that indicates LLM conducive to information integration (Pan et al., to generate a partial story. The detailed process 2024). Based on the analysis above, the MEM of writing story S in Algorithm 1. The details of applies Temporal Knowledge Graph (TKG) (Rod- prompts in the DHO are shown in Appendix B.1. dick and Spiliopoulou, 2002) to store the generated story. TKG is stored by quadruples in the form 4.2 Memory-Enhancement Module of < subject, action, object, index >. The index Recently, many works (Liu et al., 2024) have shown means the chapter number of the information. The that LLMs tend to ignore the information in the module stores the input story premise at the very middle of the long inputs. As the story generation beginning and the generated content and provides process progresses, the increasing story length af- query-relevant content based on entity retrieval in fects the LLM’s attention on the relevant content TKG each time the DHO generates content. when generating new content, increasing comput- To store entity, we use LLM to extract triples ing overhead (Choromanski et al., 2021) and even for every sentence and then add the current chapter leading to contextual conflict (Yang et al., 2022). number to form quadruples. To access the rele- 1356
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:实验沿用 DOC 的故事前提设置,以 Qwen1.5-72B-Chat 为主要底座,并比较基线与去模块变体。自动指标和人类平均排名共同描述输出,不能把人评排名当分类指标。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.6, experimental setup · PDF p.6
Figure 5: The criterion of filtering on semantic relevance. vant content (see Fig. 4), we first conduct entity- lows: based quadruple retrieval (Reinanda et al., 2020) CR. = m/N × 100%, (4) on TKG and then apply LLM to filter the retrieved results through semantics correlation by evaluat- where N is the number of quadruples in TKG and ing relevance based on rules (see Fig. 5). MEM m is the number of conflict quadruples in TKG. can provide the top-k most relevant information as query-relevant content, making it concise and 5 Experiment semantically relevant with input (more details can Implementation details. DOME * contains DHO be seen in Appendix B.2). and MEM. In DHO, every rough outline is ex- panded into 3 detailed outlines which means the M 4.3 Temporal Conflict Analyzer mentioned in Section 4.1 is set to 3. The embed- ding model we applied is bge-large-en-v1.5 (Chen The evaluation of long-form stories in previous et al., 2024). In MEM, we apply cosine similar- work mainly relies on humans, which is time- ity (Lahitani et al., 2016) and set the filter threshold consuming and laborious (Yang et al., 2023; Wang to 0.75 to implement the entity-based query. Be- et al., 2023a). MEM applies TKG to store story sides, we switch off the default historical content and it is easy for TKG to associate context (Wen input of LLM where MEM is applied. The tem- et al., 2024). Thus we propose an auto metric that perature of LLM is set to 0.5 and the max token measures the contextual consistency of the story of LLM is 1000 while other parameters are kept by calculating the rate of conflict quadruples to to- by default. All the experiments are conducted on tal quadruples. To detect the conflict quadruples, 2×A800 GPU with CUDA version 11.3. the quadruples in TKG Q = {qi }N i=1 of gener- Dataset and baselines. Following the settings of ated stories are grouped by rules (see Fig. 26 in DOC (Yang et al., 2023), we use its story premises† Appendix D) sequentially and without repetition as the input and generate 20 long stories for evalu- and the potential conflict information is aggregated. ation. The details of the dataset are in Appendix A. Since LLM-as-a-judge has been verified by exper- We use Qwen1.5-72B-Chat (Bai et al., 2023) for iments (Zheng et al., 2023) and it can evaluate long-form story generation as it has considerable some features of a text within a certain length ac- performance (Chiang et al., 2024) and is able to cording to rules (Achiam et al., 2023; Liu et al., deployed locally. We compare DOME with two 2021), we apply LLM to further detect the con- types of methods. The first is prompting LLM flict quadruples based on time order. More details to generate stories as long as possible with input. about the temporal conflict analyzer are reported in * The implementation are available at https://github. Appendix E. In this way, we can find the quadru- com/Qianyue-Wang/DOME. ples Qconf lict = {qiconf lict }m i=1 containing conflict † All the datasets are available at https://github.com/ information. The conflict rate is expressed as fol- Qianyue-Wang/DOME_dataset. 1357
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:DOME 的故事平均长度为 7113.75 words,矛盾率 CR 为 0.56%;RE3 的对应值为 3802.15 和 0.77%,DOC 为 3904.90 和 1.21%。长度与矛盾率应一起看,不能把 words 改成中文字数。人工评价考察情节完整、情节连贯、相关性、趣味性和表达连贯,使用平均排名而不是 F1,也没有名为“整体拟人性”的指标。
条件:仅限本地原始PDF的 Table 1;不同表格与实验不合并
PDF p.7, Table 1 · PDF p.7
Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ Llama3-70B-Instruct (AI@Meta, 2024) 612.65 6.78 9.25 3.77 3.81 3.58 3.96 3.72 Qwen1.5-72B-Chat (Bai et al., 2023) 495.70 0.66 9.06 4.77 4.80 4.58 4.96 4.72 Re3 (Yang et al., 2022) 3802.15 0.77 11.56 2.73 2.53 2.96 2.56 2.83 DOC (Yang et al., 2023) 3904.90 1.21 11.55 2.58 2.43 2.63 2.34 2.56 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.15 1.44 1.26 1.77 1.16 Table 1: Comparison with LLMs and SOTA baselines. We use the same premises as DOC Yang et al. (2023). Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ w/o MEM 6511.10 4.52 10.00 1.88 2.24 1.97 1.96 2.22 w/o DHO 1471.90 0.65 11.50 2.92 2.36 2.86 2.88 2.46 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.20 1.40 1.17 1.62 1.32 Table 2: Ablation study of different modules. The second are the state-of-the-art methods includ- human evaluation are shown in Appendix C. ing DOC (Yang et al., 2023) and Re3 (Yang et al., 2022). To validate the scalability of DOME, we 5.1 Comparison Experiments report the improvement when applying DOME on DOME is consistently better in auto evaluation. Llama-3-70b-Instruct (AI@Meta, 2024) and Yi1.5- From Table 1, the proposed DOME achieves su- 34B-Chat (Young et al., 2024). perior performance in both CR. and Ent-2. It Metrics. Since the content repetition is an im- also generates the longest content. Specifically, portant aspect reflecting the quality of stories in DOME surpasses the LLM baseline, Qwen1.5-72B- terms of coherence (Yang et al., 2022), We apply Chat, by 35.7% in Ent-2 and reduce the CR. by the auto evaluation metrics including n-gram en- 15.2%. Additionally, DOME outperforms the Re3 tropy (Zhang et al., 2018) and set n = 2 (Ent-2) to by 6.3% in Ent-2 and reduces the CR. by 27.3%. evaluate the degree of content repetition by measur- The results indicate that our DOME delivers di- ing the diversity of vocabulary. Besides, we apply verse content with fewer conflicts. We attribute the our proposed conflict rate (CR.) to evaluate the improvement to the following facts. Firstly, our contextual consistency of the generated stores. TKG is capable of fine-grained modeling of gener- To evaluate the alignment of the stories with hu- ated stories. It provides accurate relevant content man preferences in terms of contextual consistency through semantic filtering during the generation and coherence and other basic story quality, we stage, which ensures consistency and reduces con- further conduct a human evaluation to evaluate the textual conflicts in the generated content. Besides, story quality of plot completeness, coherence, rele- Our DHO dynamically adjusts the detailed out- vance, interest level, and expression coherence. We lines during the story generation process, thereby compare all methods according to each indicator increasing the space for plot development and en- and calculate their average rank. The description hancing content diversity. of every metric is as follows: 1) Plot Completeness DOME is consistently better in human eval- (P Co.): the extent to which the generated story uation. We conduct a human evaluation to assess covers all the stages mentioned in the story the- how well DOME aligns with human preferences. ory. 2) Plot Coherence (P Coh.): the fluency of In Table 1, our DOME ranks first across all five the development of the generated story. 3) Rele- metrics. The results demonstrate that MEM pro- vance (Rel.): the consistency between the gener- vides relevant content during the generation stage, ated story and the input premise. It demonstrates reducing the conflict due to the unclear memory of the actual usability of the method. 4) Interesting LLM itself (Zhang et al., 2023) and thus ensuring (Int.): the reading interest to the user. Since the contextual consistency and enhancing relevance reading interest reflects peoples’ preferences on the and expression coherence. Furthermore, our DHO completeness and coherence of stories (Wang et al., dynamically generates detailed outlines based on 2023b). 5) Expression Coherence (ECoh.): the the development of the storyline, adapting to the un- contextual consistency of the story. More details of certainty in generation and achieving improved flu- 1358
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:去掉 MEM 的变体报告 CR 为 4.52%,高于完整配置。它支持记忆模块值得重视,但不能单凭这一差距宣布记忆模块具有不受条件影响的绝对必要性。
条件:仅限本地原始PDF的 Table 2;不同表格与实验不合并
PDF p.7, Table 2 · PDF p.7
Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ Llama3-70B-Instruct (AI@Meta, 2024) 612.65 6.78 9.25 3.77 3.81 3.58 3.96 3.72 Qwen1.5-72B-Chat (Bai et al., 2023) 495.70 0.66 9.06 4.77 4.80 4.58 4.96 4.72 Re3 (Yang et al., 2022) 3802.15 0.77 11.56 2.73 2.53 2.96 2.56 2.83 DOC (Yang et al., 2023) 3904.90 1.21 11.55 2.58 2.43 2.63 2.34 2.56 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.15 1.44 1.26 1.77 1.16 Table 1: Comparison with LLMs and SOTA baselines. We use the same premises as DOC Yang et al. (2023). Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ w/o MEM 6511.10 4.52 10.00 1.88 2.24 1.97 1.96 2.22 w/o DHO 1471.90 0.65 11.50 2.92 2.36 2.86 2.88 2.46 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.20 1.40 1.17 1.62 1.32 Table 2: Ablation study of different modules. The second are the state-of-the-art methods includ- human evaluation are shown in Appendix C. ing DOC (Yang et al., 2023) and Re3 (Yang et al., 2022). To validate the scalability of DOME, we 5.1 Comparison Experiments report the improvement when applying DOME on DOME is consistently better in auto evaluation. Llama-3-70b-Instruct (AI@Meta, 2024) and Yi1.5- From Table 1, the proposed DOME achieves su- 34B-Chat (Young et al., 2024). perior performance in both CR. and Ent-2. It Metrics. Since the content repetition is an im- also generates the longest content. Specifically, portant aspect reflecting the quality of stories in DOME surpasses the LLM baseline, Qwen1.5-72B- terms of coherence (Yang et al., 2022), We apply Chat, by 35.7% in Ent-2 and reduce the CR. by the auto evaluation metrics including n-gram en- 15.2%. Additionally, DOME outperforms the Re3 tropy (Zhang et al., 2018) and set n = 2 (Ent-2) to by 6.3% in Ent-2 and reduces the CR. by 27.3%. evaluate the degree of content repetition by measur- The results indicate that our DOME delivers di- ing the diversity of vocabulary. Besides, we apply verse content with fewer conflicts. We attribute the our proposed conflict rate (CR.) to evaluate the improvement to the following facts. Firstly, our contextual consistency of the generated stores. TKG is capable of fine-grained modeling of gener- To evaluate the alignment of the stories with hu- ated stories. It provides accurate relevant content man preferences in terms of contextual consistency through semantic filtering during the generation and coherence and other basic story quality, we stage, which ensures consistency and reduces con- further conduct a human evaluation to evaluate the textual conflicts in the generated content. Besides, story quality of plot completeness, coherence, rele- Our DHO dynamically adjusts the detailed out- vance, interest level, and expression coherence. We lines during the story generation process, thereby compare all methods according to each indicator increasing the space for plot development and en- and calculate their average rank. The description hancing content diversity. of every metric is as follows: 1) Plot Completeness DOME is consistently better in human eval- (P Co.): the extent to which the generated story uation. We conduct a human evaluation to assess covers all the stages mentioned in the story the- how well DOME aligns with human preferences. ory. 2) Plot Coherence (P Coh.): the fluency of In Table 1, our DOME ranks first across all five the development of the generated story. 3) Rele- metrics. The results demonstrate that MEM pro- vance (Rel.): the consistency between the gener- vides relevant content during the generation stage, ated story and the input premise. It demonstrates reducing the conflict due to the unclear memory of the actual usability of the method. 4) Interesting LLM itself (Zhang et al., 2023) and thus ensuring (Int.): the reading interest to the user. Since the contextual consistency and enhancing relevance reading interest reflects peoples’ preferences on the and expression coherence. Furthermore, our DHO completeness and coherence of stories (Wang et al., dynamically generates detailed outlines based on 2023b). 5) Expression Coherence (ECoh.): the the development of the storyline, adapting to the un- contextual consistency of the story. More details of certainty in generation and achieving improved flu- 1358
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:作者对不带 MEM 的配置限制了最多 2 轮聊天,这是成本约束下的实验条件,解释消融时必须保留。Table 3 的 16 次 API 调用针对知识图谱构建,不是整篇故事的总生成成本;混淆这两个范围会让读者严重低估开销。
条件:仅限本地原始PDF的 §5.2; Table 3;不同表格与实验不合并
PDF p.8, §5.2; Table 3 · PDF p.8
80.00% 60.43% 60.00% 40.00% 20.00% 0.00% LLMs Ours Llama3-70B-Instruct Qwen1.5-72B-Chat Yi1.5-34B-Chat Ours LLM (in DOME) Nodes Relations Quadruples API calls CR. Ent-2 120.00% 100.00% Yi1.5-34B-Chat 691.38 328.45 354.55 16 150.00% 135.65% 125.51% 129.68% 100.00% 81.71% 84.85% Llama3-70B-Instruct 844.62 345.65 434.00 16 100.00% 80.00% 100.00% 60.43% Qwen1.5-72B-Chat 791.35 258.23 404.85 16 60.00% 50.00% 40.00% 20.00% Table 3: The computation and storage cost of DOME. 0.00% 0.00% Notable the API calls means the average number of LLMs Ours LLMs Ours API calls for KG construction. The column in the table named “LLM (in DOME)” means the Large Language Figure 6: Scalability results of applying DOME on Model applied in DOME. different LLMs. Left: the increase rates of Ent-2 metric. Right: the decrease rates of CR. metric. Method Ent-2↑ CR. ↓ Word Num. Qwen1.5-72B-Chat 9.06 0.66 495.70 AgentWriter 11.13 2.14 3140.00 ency. Additionally, our novel-writing mechanism DOME 12.29 0.56 7113.75 encourages Large Language Models to create sto- Table 4: The Comparison of the performance with the ries like writing a complete novel. This approach agent-based method, using the same Large Language ensures the plot’s completeness and to some extent, Model (Qwen1.5-72B-Chat). introduces fluctuations that capture and maintain reader interest. Chat, Llama3-70B-Instruct and Qwen1.5-72B- 5.2 Ablation Studies Chat. As illustrated in Fig. 6, DOME significantly Effectiveness of DHO. We remove the DHO so reduces conflicts and enhances content diversity on that the outline is fixed and consistent with the in- all LLMs with different parameter scales. Specif- put storyline. As shown in Table 2, this variant ically, DOME reduce the CR. by more than 18% exhibits higher content conflicts and reduced con- on Llama3-70B-Instruct. It also improves the Ent- tent variety. Additionally, it ranks lowest across 2 by more than 29% on Yi1.5-34B-Chat. This all human evaluation metrics. It supports the no- scalability is due to the straightforward and easy- tion that dynamic adjustment of the detailed outline to-follow prompts in our DOME, making it easy to helps to control content generation, thereby ensur- be adaptable across different LLMs. ing plot coherence. Furthermore, the application of novel writing theory enhances plot complete- 5.4 Computation and Storage Cost of DOME ness and thus improves the reading interest, this We report the computation and storage cost for is because a complete story encourages the reader constructing the knowledge graph dynamically, as to read to the end. See the example of DHO in shown in Table 3. With acceptable additional Appendix F. computation and storage overhead, the proposed Effectiveness of MEM. Similarly, we remove method improves the quality of generating long- the MEM to eliminate the knowledge graph for form stories. Specifically, as shown in Tables 1 reference and resort to the multi-round chatting ca- and 3, the proposed DOME only adds 791 nodes pability of LLM to generate content. Limited by of storage overhead and 16 LLM API calls to con- computing cost, we set the maximum chat rounds struct the KG dynamically, but it outperforms the to 2. As shown in Table 2, the conflict rate sig- SOTA methods in all performance metrics. This is nificantly increases from 0.56 to 4.52 and Ent-2 because the structured storage of KG and the access reduces from 12.29 to 10.00 without MEM. Addi- advantages of KG facilitate LLM in achieving ac- tionally, all human evaluation metrics deteriorate to curate and concise relevant memory and reducing varying degrees. These results indicate that MEM context inconsistency. ensures contextual coherence by providing relevant content during generation, which also improves 5.5 Compare with the Agent-based Method plot coherence and alignment with human prefer- To further validate the effectiveness of DOME, we ences. See the example of MEM in Appendix E. compare DOME with the agent-based long story generation method, AgentWriter (Bai et al., 2024). 5.3 The Scalability of DOME As shown in Table 4, the proposed DOME outper- To demonstrate the applicability of DOME on dif- forms AgentWriter across all metrics. Compared ferent LLMs, we apply our method to Yi1.5-34B- to AgentWriter, DOME generates stories twice as 1359
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:作者报告生成约 7,000 words 的故事约需 200 次调用和 4 小时。这里是所用模型与流程下的经验成本,不是部署到其他模型后的保证。DOME 提供的是结构与记忆的工程组合,复现时应同时记录质量、矛盾、长度和成本,不能只挑一个好看的指标。
条件:仅限本地原始PDF的 Limitations;不同表格与实验不合并
PDF p.9, Limitations · PDF p.9
long, with CR. dropping to a quarter and Ent-2 better performance. increasing by 1.16. This means that DOME gen- Although experiments demonstrate the effec- erates longer stories with both plot coherence and tiveness and scalability of our proposed DOME, contextual consistency. the prompts in DOME are designed based on hu- man experience. Therefore, the use of automatic 6 Conclusion prompts may further exploit the capabilities of DOME. However, automatic prompting methods In this paper, we propose a Dynamic Hierarchi- often struggle with capturing the nuanced context cal Outlining with Memory Enhancement, named required for a specific task (Si et al., 2023). Apply- DOME, to generate a coherent long-form story. ing them to long-form story generation tasks may Specifically, we propose a Dynamic Hierarchical not ensure the completeness of long-form stories Outline (DHO) mechanism for long-form story gen- and further affects the effectiveness and scalability eration, based on the plan-write framework and of DOME. novel-writing theory. The DHO mechanism cre- ates a rough outline that aligns with novel-writing Ethics Statement theory and dynamically generates it during the writ- ing process, enhancing plot fluency. Additionally, This work fully complies with the ACL Ethics Pol- the Memory-Enhancement Module (MEM) uses icy. We declare that there are no ethical issues in temporal knowledge graphs to store and access this paper, to the best of our knowledge. generated stories, providing contextual content for both detailed outline planning and story writing, References and reducing contextual conflicts. Lastly, the tem- poral conflict analyzer detects potential conflicts Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, using temporal knowledge graphs and integrates Diogo Almeida, Janko Altenschmidt, Sam Altman, with LLMs to automatically assess the contextual Shyamal Anadkat, et al. 2023. Gpt-4 technical report. consistency of the generated text. Experiments arXiv preprint arXiv:2303.08774. demonstrate that DOME significantly improves the AI@Meta. 2024. Llama 3 model card. coherence and overall quality of generated long- form stories from plot and expression compared to Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, SOTA methods. Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, et al. 2023. Qwen technical report. arXiv preprint arXiv:2309.16609. Limitations Yushi Bai, Jiajie Zhang, Xin Lv, Linzhi Zheng, Siqi Zhu, The lack of automatic evaluation matrics constrains Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. 2024. our experiments. Specifically, we have to rely on Longwriter: Unleashing 10,000+ word generation human evaluation to evaluate the quality of the from long context llms. CoRR, abs/2408.07055. generated stories which is time-consuming and Faeze Brahman, Alexandru Petrusca, and Snigdha costly. Besides, the amount of experimental data Chaturvedi. 2020. Cue me in: Content-inducing is limited since there are no specific datasets for approaches to interactive story generation. In Pro- ceedings of the 1st Conference of the Asia-Pacific long-form story generation and we follow the ex- Chapter of the Association for Computational Lin- periment setting of DOC (Yang et al., 2023). In guistics and the 10th International Joint Conference addition, our framework requires massive LLM on Natural Language Processing, pages 588–597, API calls which are time-consuming. On average, Suzhou, China. Association for Computational Lin- guistics. Generating a story requires about 200 API calls. Massive API calls result in a limited story gener- Joseph Campbell. 1949. The Hero with a Thousand ation speed, taking about 4 hours to complete a Faces. Pantheon Books, New York, NY, USA. 7,000-word story. Thus the long text generation Jianlyu Chen, Shitao Xiao, Peitian Zhang, Kun and a large number of API calls limit our usage of Luo, Defu Lian, and Zheng Liu. 2024. M3- paid closed-source LLMs, such as ChatGPT. Al- embedding: Multi-linguality, multi-functionality, though we report the result about the extensibility multi-granularity text embeddings through self- knowledge distillation. In Findings of the Asso- of our framework, many steps in our framework ciation for Computational Linguistics: ACL 2024, are realized based on custom-designed prompts and pages 2318–2335, Bangkok, Thailand. Association it is better to re-design these prompts to achieve for Computational Linguistics. 1360
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
论文为什么要做这件事
DOME 针对长故事越写越容易忘记前文的问题,把层次大纲和记忆增强结合起来。大纲控制接下来应该发生什么,记忆帮助模型知道已经发生过什么;前者主要组织情节,后者主要约束续写时的事实,两者不是同一种提示词技巧。 (原文:PDF p.3, §3)
指标:DOME 针对长故事越写越容易忘记前文的问题,把层次大纲和记忆增强结合起来。大纲控制接下来应该发生什么,记忆帮助模型知道已经发生过什么;前者主要组织情节,后者主要约束续写时的事实,两者不是同一种提示词技巧。
条件:仅限本地原始PDF的 §3;不同表格与实验不合并
PDF p.3, §3 · PDF p.3
nt Update Calculate Store the score Update • Setting DHO at stage i Long Story S • Characters Detailed Outline 𝑖 Partial Story 𝑠 … • Outline As he stood in the As he stood in the • Writing Theory middle of the room, middle of the room, taking in the blank taking in the blank canvas ... canvas ... … Peering through the query relevant content extract quadruples peephole, he saw an Rough Outline 𝑖 older gentleman with a <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > friendly smile - his … <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > Rough Outline 𝑖 1 update … relevant … … content <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > TKG at stage 𝑖 1 Memory-Enhancement Module Figure 2: General diagram of proposed DOME. The story generation process is divided into several stages based on the amount of rough outline. At stage i, we expand rough outline i into several detailed outlines based on the relevant content provided by MEM, and these outlines generate partial story sequentially based on their relevant content querying from MEM. Every generated partial story is stored in a Temporal Knowledge Graph (TKG) for the following query. writing process through a plan-and-write frame- et al., 2023), Llama 3 (AI@Meta, 2024) and work (Yao et al., 2019). Fan et al. (2018) proposes Qwen1.5 (Bai et al., 2023), the integration of LLMs a hierarchical story generation method, which first and KGs has attracted widespread attention due generates a story premise and then generates the to the potential improvement KGs can make for story based on it. Yao et al. (2019) introduces a LLMs (Ji et al., 2022). KG can be used as a knowl- "plan-and-write" framework for open-domain story edge base to provide references when LLM gen- generation, which divides the writing process into erates content. There are two kinds of work to planning and generating. Yang et al. (2022) further inject the knowledge in KG into LLM. The first subdivides writing into plan, draft, rewrite, and edit one fuse knowledge in KG and input by directly module. Yang et al. (2023) makes efforts on outline concatenating them in language level (Zhang et al., control to generate a more detailed and hierarchical 2024; Wen et al., 2024; Sun et al., 2021) or in to- story. Although this technique can lengthen the ken level (Zhang et al., 2019; He et al., 2020; Su narrative and enhance plot fluidity, the rigid nature et al., 2021). These methods can easily fuse the of a predetermined outline can hinder flexibility in knowledge between them but with little interac- the writing phase, resulting in plot inconsistencies, tion between knowledge and input. The second such as repeated or contradictory contexts. one applies the addition knowledge fusion mod- Other works (Zhou et al., 2023; Brahman et al., ule in which the knowledge is updated and simpli- 2020) explore using human interaction to replace fied (Sun et al., 2022; Zhang et al., 2022). pre-generated outlines. Brahman et al. (2020) intro- duce a content-inducing approach, which involves 3 Problem definition and motivation human being using cue-phrases. Zhou et al. (2023) 3.1 Problem Definition propose a language simulacrum of RNN recurrence, For a given story premise I from a writer, we design enabling human-guided story planning. This re- a framework F ∗ to generate a long-form story S. duces plot inconsistencies but results in less fluent The score of story S on the plot coherence is C P lot and readable narratives. and the score of story S on the context coherence is C Context . We aim to generate a story S with 2.2 KG-enhanced LLM Inference improved C P lot and C Context . Knowledge Graphs (KGs) can effectively model the key information in text by triples in the form of 3.2 Motivaiton < subject, action, object > (Ji et al., 2022). Af- Existing long-form story generation methods sepa- ter the appearance of LLMs, like GPT-3.5 (Achiam rate planning and writing stages based on the plan- 1354
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
核心方法到底怎么运转
记忆使用带时间索引的知识图谱,事实写成 subject、action、object、index 四元组,index 记录信息所在的章节。续写时按相关实体检索,再做相关性筛选,把相关事实带回生成上下文。这不是简单把全部历史原样塞回提示词,也不是证明模型从此不会遗忘。 (原文:PDF p.5, Figure 4; §4.2)
指标:记忆使用带时间索引的知识图谱,事实写成 subject、action、object、index 四元组,index 记录信息所在的章节。续写时按相关实体检索,再做相关性筛选,把相关事实带回生成上下文。这不是简单把全部历史原样塞回提示词,也不是证明模型从此不会遗忘。
条件:仅限本地原始PDF的 Figure 4; §4.2;不同表格与实验不合并
PDF p.5, Figure 4; §4.2 · PDF p.5
Outline Entity Knowledge Graph Quadruple Relevance filtering <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > 1.Rising Action: <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > Gabriel faces the LLM … select top-k … score content challenges... <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > calculate the similarity score Figure 4: The details of querying for the relevant content. Notably the last arrow points to the historical information semantically related to the input content. line generation prompt. Thus, the rough outline R Algorithm 1 Inference Pipeline for DOME was generated based on user input I: Require: Novel writing theory W T , the Large Language Model applied in DOME LLM , user input I, rough R = LLM (W T, I, Prough_outline ), (1) outline prompt Prough_outline , detailed outline prompt Pdetailed_outline , story generation prompt Pgen_story . 1: Initialize MEM KG. where W T is the novel writing theory, LLM (·) is 2: Generate rough outline R via Eq. (1). LLM inference operation, and Prough_outline is the 3: for ri in R = {ri }i=5i=1 do prompt guiding LLM to generate a rough outline. 4: Find relevant content RInf oi about ri from KG. 5: Generate detailed outlines di via Eq. (2). The detailed outline D = {di }5i=1 is generated 6: Add di into D. step by step according to the corresponding part 7: for doti in di = {doti }t=M t=1 do 8: Find relevant content DInf o.ti about doti from of the rough outline ri and its relevant content KG. RInf o.i , ensuring its adaptation to the uncertainty 9: Generate partial story sti via Eq. (3). in the story generation stage. 10: Add sti into story S. 11: Store sti into KG. 12: end for di = LLM (ri , RInf o.i , Pdetailed_outline ), (2) 13: end for 14: return R, D and S. where Pdetailed_outline is the prompt that indicates LLM to generate a detailed outline. The di = {doti }Mt=1 contains detailed outlines expanded from We propose an additional Memory-Enhancement the rough outline. The M is the number of detailed Module, named MEM, to store the generated story outlines expanded from the given rough outline ri and provide concise relevant content. which should be set at the beginning. KGs and their variants are well-established tools The story content sti is generated step-by-step for content storage and query (Wen et al., 2024). based on the detailed outline doti and relevant gen- KGs extract the key information for the content erated content DInf o.ti of the sub-detailed outline like subject, action, and object and ignore unimpor- doti , which is as follows: tant information like adverbs and modifiers. Be- sides, the structure of the knowledge graph sup- sti = LLM (doti , DInf o.ti , Pgen_story ), (3) ports reasoning and information fusion, which is where Pgen_story is the prompt that indicates LLM conducive to information integration (Pan et al., to generate a partial story. The detailed process 2024). Based on the analysis above, the MEM of writing story S in Algorithm 1. The details of applies Temporal Knowledge Graph (TKG) (Rod- prompts in the DHO are shown in Appendix B.1. dick and Spiliopoulou, 2002) to store the generated story. TKG is stored by quadruples in the form 4.2 Memory-Enhancement Module of < subject, action, object, index >. The index Recently, many works (Liu et al., 2024) have shown means the chapter number of the information. The that LLMs tend to ignore the information in the module stores the input story premise at the very middle of the long inputs. As the story generation beginning and the generated content and provides process progresses, the increasing story length af- query-relevant content based on entity retrieval in fects the LLM’s attention on the relevant content TKG each time the DHO generates content. when generating new content, increasing comput- To store entity, we use LLM to extract triples ing overhead (Choromanski et al., 2021) and even for every sentence and then add the current chapter leading to contextual conflict (Yang et al., 2022). number to form quadruples. To access the rele- 1356
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
实验怎样检验这个方法
实验沿用 DOC 的故事前提设置,以 Qwen1.5-72B-Chat 为主要底座,并比较基线与去模块变体。自动指标和人类平均排名共同描述输出,不能把人评排名当分类指标。 (原文:PDF p.6, experimental setup)
指标:实验沿用 DOC 的故事前提设置,以 Qwen1.5-72B-Chat 为主要底座,并比较基线与去模块变体。自动指标和人类平均排名共同描述输出,不能把人评排名当分类指标。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.6, experimental setup · PDF p.6
Figure 5: The criterion of filtering on semantic relevance. vant content (see Fig. 4), we first conduct entity- lows: based quadruple retrieval (Reinanda et al., 2020) CR. = m/N × 100%, (4) on TKG and then apply LLM to filter the retrieved results through semantics correlation by evaluat- where N is the number of quadruples in TKG and ing relevance based on rules (see Fig. 5). MEM m is the number of conflict quadruples in TKG. can provide the top-k most relevant information as query-relevant content, making it concise and 5 Experiment semantically relevant with input (more details can Implementation details. DOME * contains DHO be seen in Appendix B.2). and MEM. In DHO, every rough outline is ex- panded into 3 detailed outlines which means the M 4.3 Temporal Conflict Analyzer mentioned in Section 4.1 is set to 3. The embed- ding model we applied is bge-large-en-v1.5 (Chen The evaluation of long-form stories in previous et al., 2024). In MEM, we apply cosine similar- work mainly relies on humans, which is time- ity (Lahitani et al., 2016) and set the filter threshold consuming and laborious (Yang et al., 2023; Wang to 0.75 to implement the entity-based query. Be- et al., 2023a). MEM applies TKG to store story sides, we switch off the default historical content and it is easy for TKG to associate context (Wen input of LLM where MEM is applied. The tem- et al., 2024). Thus we propose an auto metric that perature of LLM is set to 0.5 and the max token measures the contextual consistency of the story of LLM is 1000 while other parameters are kept by calculating the rate of conflict quadruples to to- by default. All the experiments are conducted on tal quadruples. To detect the conflict quadruples, 2×A800 GPU with CUDA version 11.3. the quadruples in TKG Q = {qi }N i=1 of gener- Dataset and baselines. Following the settings of ated stories are grouped by rules (see Fig. 26 in DOC (Yang et al., 2023), we use its story premises† Appendix D) sequentially and without repetition as the input and generate 20 long stories for evalu- and the potential conflict information is aggregated. ation. The details of the dataset are in Appendix A. Since LLM-as-a-judge has been verified by exper- We use Qwen1.5-72B-Chat (Bai et al., 2023) for iments (Zheng et al., 2023) and it can evaluate long-form story generation as it has considerable some features of a text within a certain length ac- performance (Chiang et al., 2024) and is able to cording to rules (Achiam et al., 2023; Liu et al., deployed locally. We compare DOME with two 2021), we apply LLM to further detect the con- types of methods. The first is prompting LLM flict quadruples based on time order. More details to generate stories as long as possible with input. about the temporal conflict analyzer are reported in * The implementation are available at https://github. Appendix E. In this way, we can find the quadru- com/Qianyue-Wang/DOME. ples Qconf lict = {qiconf lict }m i=1 containing conflict † All the datasets are available at https://github.com/ information. The conflict rate is expressed as fol- Qianyue-Wang/DOME_dataset. 1357
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
结果说明了什么
DOME 的故事平均长度为 7113.75 words,矛盾率 CR 为 0.56%;RE3 的对应值为 3802.15 和 0.77%,DOC 为 3904.90 和 1.21%。长度与矛盾率应一起看,不能把 words 改成中文字数。人工评价考察情节完整、情节连贯、相关性、趣味性和表达连贯,使用平均排名而不是 F1,也没有名为“整体拟人性”的指标。 (原文:PDF p.7, Table 1)
指标:DOME 的故事平均长度为 7113.75 words,矛盾率 CR 为 0.56%;RE3 的对应值为 3802.15 和 0.77%,DOC 为 3904.90 和 1.21%。长度与矛盾率应一起看,不能把 words 改成中文字数。人工评价考察情节完整、情节连贯、相关性、趣味性和表达连贯,使用平均排名而不是 F1,也没有名为“整体拟人性”的指标。
条件:仅限本地原始PDF的 Table 1;不同表格与实验不合并
PDF p.7, Table 1 · PDF p.7
Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ Llama3-70B-Instruct (AI@Meta, 2024) 612.65 6.78 9.25 3.77 3.81 3.58 3.96 3.72 Qwen1.5-72B-Chat (Bai et al., 2023) 495.70 0.66 9.06 4.77 4.80 4.58 4.96 4.72 Re3 (Yang et al., 2022) 3802.15 0.77 11.56 2.73 2.53 2.96 2.56 2.83 DOC (Yang et al., 2023) 3904.90 1.21 11.55 2.58 2.43 2.63 2.34 2.56 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.15 1.44 1.26 1.77 1.16 Table 1: Comparison with LLMs and SOTA baselines. We use the same premises as DOC Yang et al. (2023). Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ w/o MEM 6511.10 4.52 10.00 1.88 2.24 1.97 1.96 2.22 w/o DHO 1471.90 0.65 11.50 2.92 2.36 2.86 2.88 2.46 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.20 1.40 1.17 1.62 1.32 Table 2: Ablation study of different modules. The second are the state-of-the-art methods includ- human evaluation are shown in Appendix C. ing DOC (Yang et al., 2023) and Re3 (Yang et al., 2022). To validate the scalability of DOME, we 5.1 Comparison Experiments report the improvement when applying DOME on DOME is consistently better in auto evaluation. Llama-3-70b-Instruct (AI@Meta, 2024) and Yi1.5- From Table 1, the proposed DOME achieves su- 34B-Chat (Young et al., 2024). perior performance in both CR. and Ent-2. It Metrics. Since the content repetition is an im- also generates the longest content. Specifically, portant aspect reflecting the quality of stories in DOME surpasses the LLM baseline, Qwen1.5-72B- terms of coherence (Yang et al., 2022), We apply Chat, by 35.7% in Ent-2 and reduce the CR. by the auto evaluation metrics including n-gram en- 15.2%. Additionally, DOME outperforms the Re3 tropy (Zhang et al., 2018) and set n = 2 (Ent-2) to by 6.3% in Ent-2 and reduces the CR. by 27.3%. evaluate the degree of content repetition by measur- The results indicate that our DOME delivers di- ing the diversity of vocabulary. Besides, we apply verse content with fewer conflicts. We attribute the our proposed conflict rate (CR.) to evaluate the improvement to the following facts. Firstly, our contextual consistency of the generated stores. TKG is capable of fine-grained modeling of gener- To evaluate the alignment of the stories with hu- ated stories. It provides accurate relevant content man preferences in terms of contextual consistency through semantic filtering during the generation and coherence and other basic story quality, we stage, which ensures consistency and reduces con- further conduct a human evaluation to evaluate the textual conflicts in the generated content. Besides, story quality of plot completeness, coherence, rele- Our DHO dynamically adjusts the detailed out- vance, interest level, and expression coherence. We lines during the story generation process, thereby compare all methods according to each indicator increasing the space for plot development and en- and calculate their average rank. The description hancing content diversity. of every metric is as follows: 1) Plot Completeness DOME is consistently better in human eval- (P Co.): the extent to which the generated story uation. We conduct a human evaluation to assess covers all the stages mentioned in the story the- how well DOME aligns with human preferences. ory. 2) Plot Coherence (P Coh.): the fluency of In Table 1, our DOME ranks first across all five the development of the generated story. 3) Rele- metrics. The results demonstrate that MEM pro- vance (Rel.): the consistency between the gener- vides relevant content during the generation stage, ated story and the input premise. It demonstrates reducing the conflict due to the unclear memory of the actual usability of the method. 4) Interesting LLM itself (Zhang et al., 2023) and thus ensuring (Int.): the reading interest to the user. Since the contextual consistency and enhancing relevance reading interest reflects peoples’ preferences on the and expression coherence. Furthermore, our DHO completeness and coherence of stories (Wang et al., dynamically generates detailed outlines based on 2023b). 5) Expression Coherence (ECoh.): the the development of the storyline, adapting to the un- contextual consistency of the story. More details of certainty in generation and achieving improved flu- 1358
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
消融结果与混杂条件
去掉 MEM 的变体报告 CR 为 4.52%,高于完整配置。它支持记忆模块值得重视,但不能单凭这一差距宣布记忆模块具有不受条件影响的绝对必要性。 (原文:PDF p.7, Table 2)
指标:去掉 MEM 的变体报告 CR 为 4.52%,高于完整配置。它支持记忆模块值得重视,但不能单凭这一差距宣布记忆模块具有不受条件影响的绝对必要性。
条件:仅限本地原始PDF的 Table 2;不同表格与实验不合并
PDF p.7, Table 2 · PDF p.7
Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ Llama3-70B-Instruct (AI@Meta, 2024) 612.65 6.78 9.25 3.77 3.81 3.58 3.96 3.72 Qwen1.5-72B-Chat (Bai et al., 2023) 495.70 0.66 9.06 4.77 4.80 4.58 4.96 4.72 Re3 (Yang et al., 2022) 3802.15 0.77 11.56 2.73 2.53 2.96 2.56 2.83 DOC (Yang et al., 2023) 3904.90 1.21 11.55 2.58 2.43 2.63 2.34 2.56 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.15 1.44 1.26 1.77 1.16 Table 1: Comparison with LLMs and SOTA baselines. We use the same premises as DOC Yang et al. (2023). Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ w/o MEM 6511.10 4.52 10.00 1.88 2.24 1.97 1.96 2.22 w/o DHO 1471.90 0.65 11.50 2.92 2.36 2.86 2.88 2.46 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.20 1.40 1.17 1.62 1.32 Table 2: Ablation study of different modules. The second are the state-of-the-art methods includ- human evaluation are shown in Appendix C. ing DOC (Yang et al., 2023) and Re3 (Yang et al., 2022). To validate the scalability of DOME, we 5.1 Comparison Experiments report the improvement when applying DOME on DOME is consistently better in auto evaluation. Llama-3-70b-Instruct (AI@Meta, 2024) and Yi1.5- From Table 1, the proposed DOME achieves su- 34B-Chat (Young et al., 2024). perior performance in both CR. and Ent-2. It Metrics. Since the content repetition is an im- also generates the longest content. Specifically, portant aspect reflecting the quality of stories in DOME surpasses the LLM baseline, Qwen1.5-72B- terms of coherence (Yang et al., 2022), We apply Chat, by 35.7% in Ent-2 and reduce the CR. by the auto evaluation metrics including n-gram en- 15.2%. Additionally, DOME outperforms the Re3 tropy (Zhang et al., 2018) and set n = 2 (Ent-2) to by 6.3% in Ent-2 and reduces the CR. by 27.3%. evaluate the degree of content repetition by measur- The results indicate that our DOME delivers di- ing the diversity of vocabulary. Besides, we apply verse content with fewer conflicts. We attribute the our proposed conflict rate (CR.) to evaluate the improvement to the following facts. Firstly, our contextual consistency of the generated stores. TKG is capable of fine-grained modeling of gener- To evaluate the alignment of the stories with hu- ated stories. It provides accurate relevant content man preferences in terms of contextual consistency through semantic filtering during the generation and coherence and other basic story quality, we stage, which ensures consistency and reduces con- further conduct a human evaluation to evaluate the textual conflicts in the generated content. Besides, story quality of plot completeness, coherence, rele- Our DHO dynamically adjusts the detailed out- vance, interest level, and expression coherence. We lines during the story generation process, thereby compare all methods according to each indicator increasing the space for plot development and en- and calculate their average rank. The description hancing content diversity. of every metric is as follows: 1) Plot Completeness DOME is consistently better in human eval- (P Co.): the extent to which the generated story uation. We conduct a human evaluation to assess covers all the stages mentioned in the story the- how well DOME aligns with human preferences. ory. 2) Plot Coherence (P Coh.): the fluency of In Table 1, our DOME ranks first across all five the development of the generated story. 3) Rele- metrics. The results demonstrate that MEM pro- vance (Rel.): the consistency between the gener- vides relevant content during the generation stage, ated story and the input premise. It demonstrates reducing the conflict due to the unclear memory of the actual usability of the method. 4) Interesting LLM itself (Zhang et al., 2023) and thus ensuring (Int.): the reading interest to the user. Since the contextual consistency and enhancing relevance reading interest reflects peoples’ preferences on the and expression coherence. Furthermore, our DHO completeness and coherence of stories (Wang et al., dynamically generates detailed outlines based on 2023b). 5) Expression Coherence (ECoh.): the the development of the storyline, adapting to the un- contextual consistency of the story. More details of certainty in generation and achieving improved flu- 1358
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
为什么不能直接作纯因果归因
作者对不带 MEM 的配置限制了最多 2 轮聊天,这是成本约束下的实验条件,解释消融时必须保留。Table 3 的 16 次 API 调用针对知识图谱构建,不是整篇故事的总生成成本;混淆这两个范围会让读者严重低估开销。 (原文:PDF p.8, §5.2; Table 3)
指标:作者对不带 MEM 的配置限制了最多 2 轮聊天,这是成本约束下的实验条件,解释消融时必须保留。Table 3 的 16 次 API 调用针对知识图谱构建,不是整篇故事的总生成成本;混淆这两个范围会让读者严重低估开销。
条件:仅限本地原始PDF的 §5.2; Table 3;不同表格与实验不合并
PDF p.8, §5.2; Table 3 · PDF p.8
80.00% 60.43% 60.00% 40.00% 20.00% 0.00% LLMs Ours Llama3-70B-Instruct Qwen1.5-72B-Chat Yi1.5-34B-Chat Ours LLM (in DOME) Nodes Relations Quadruples API calls CR. Ent-2 120.00% 100.00% Yi1.5-34B-Chat 691.38 328.45 354.55 16 150.00% 135.65% 125.51% 129.68% 100.00% 81.71% 84.85% Llama3-70B-Instruct 844.62 345.65 434.00 16 100.00% 80.00% 100.00% 60.43% Qwen1.5-72B-Chat 791.35 258.23 404.85 16 60.00% 50.00% 40.00% 20.00% Table 3: The computation and storage cost of DOME. 0.00% 0.00% Notable the API calls means the average number of LLMs Ours LLMs Ours API calls for KG construction. The column in the table named “LLM (in DOME)” means the Large Language Figure 6: Scalability results of applying DOME on Model applied in DOME. different LLMs. Left: the increase rates of Ent-2 metric. Right: the decrease rates of CR. metric. Method Ent-2↑ CR. ↓ Word Num. Qwen1.5-72B-Chat 9.06 0.66 495.70 AgentWriter 11.13 2.14 3140.00 ency. Additionally, our novel-writing mechanism DOME 12.29 0.56 7113.75 encourages Large Language Models to create sto- Table 4: The Comparison of the performance with the ries like writing a complete novel. This approach agent-based method, using the same Large Language ensures the plot’s completeness and to some extent, Model (Qwen1.5-72B-Chat). introduces fluctuations that capture and maintain reader interest. Chat, Llama3-70B-Instruct and Qwen1.5-72B- 5.2 Ablation Studies Chat. As illustrated in Fig. 6, DOME significantly Effectiveness of DHO. We remove the DHO so reduces conflicts and enhances content diversity on that the outline is fixed and consistent with the in- all LLMs with different parameter scales. Specif- put storyline. As shown in Table 2, this variant ically, DOME reduce the CR. by more than 18% exhibits higher content conflicts and reduced con- on Llama3-70B-Instruct. It also improves the Ent- tent variety. Additionally, it ranks lowest across 2 by more than 29% on Yi1.5-34B-Chat. This all human evaluation metrics. It supports the no- scalability is due to the straightforward and easy- tion that dynamic adjustment of the detailed outline to-follow prompts in our DOME, making it easy to helps to control content generation, thereby ensur- be adaptable across different LLMs. ing plot coherence. Furthermore, the application of novel writing theory enhances plot complete- 5.4 Computation and Storage Cost of DOME ness and thus improves the reading interest, this We report the computation and storage cost for is because a complete story encourages the reader constructing the knowledge graph dynamically, as to read to the end. See the example of DHO in shown in Table 3. With acceptable additional Appendix F. computation and storage overhead, the proposed Effectiveness of MEM. Similarly, we remove method improves the quality of generating long- the MEM to eliminate the knowledge graph for form stories. Specifically, as shown in Tables 1 reference and resort to the multi-round chatting ca- and 3, the proposed DOME only adds 791 nodes pability of LLM to generate content. Limited by of storage overhead and 16 LLM API calls to con- computing cost, we set the maximum chat rounds struct the KG dynamically, but it outperforms the to 2. As shown in Table 2, the conflict rate sig- SOTA methods in all performance metrics. This is nificantly increases from 0.56 to 4.52 and Ent-2 because the structured storage of KG and the access reduces from 12.29 to 10.00 without MEM. Addi- advantages of KG facilitate LLM in achieving ac- tionally, all human evaluation metrics deteriorate to curate and concise relevant memory and reducing varying degrees. These results indicate that MEM context inconsistency. ensures contextual coherence by providing relevant content during generation, which also improves 5.5 Compare with the Agent-based Method plot coherence and alignment with human prefer- To further validate the effectiveness of DOME, we ences. See the example of MEM in Appendix E. compare DOME with the agent-based long story generation method, AgentWriter (Bai et al., 2024). 5.3 The Scalability of DOME As shown in Table 4, the proposed DOME outper- To demonstrate the applicability of DOME on dif- forms AgentWriter across all metrics. Compared ferent LLMs, we apply our method to Yi1.5-34B- to AgentWriter, DOME generates stories twice as 1359
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
这篇论文哪里最强,哪里最危险
作者报告生成约 7,000 words 的故事约需 200 次调用和 4 小时。这里是所用模型与流程下的经验成本,不是部署到其他模型后的保证。DOME 提供的是结构与记忆的工程组合,复现时应同时记录质量、矛盾、长度和成本,不能只挑一个好看的指标。 (原文:PDF p.9, Limitations)
指标:作者报告生成约 7,000 words 的故事约需 200 次调用和 4 小时。这里是所用模型与流程下的经验成本,不是部署到其他模型后的保证。DOME 提供的是结构与记忆的工程组合,复现时应同时记录质量、矛盾、长度和成本,不能只挑一个好看的指标。
条件:仅限本地原始PDF的 Limitations;不同表格与实验不合并
PDF p.9, Limitations · PDF p.9
long, with CR. dropping to a quarter and Ent-2 better performance. increasing by 1.16. This means that DOME gen- Although experiments demonstrate the effec- erates longer stories with both plot coherence and tiveness and scalability of our proposed DOME, contextual consistency. the prompts in DOME are designed based on hu- man experience. Therefore, the use of automatic 6 Conclusion prompts may further exploit the capabilities of DOME. However, automatic prompting methods In this paper, we propose a Dynamic Hierarchi- often struggle with capturing the nuanced context cal Outlining with Memory Enhancement, named required for a specific task (Si et al., 2023). Apply- DOME, to generate a coherent long-form story. ing them to long-form story generation tasks may Specifically, we propose a Dynamic Hierarchical not ensure the completeness of long-form stories Outline (DHO) mechanism for long-form story gen- and further affects the effectiveness and scalability eration, based on the plan-write framework and of DOME. novel-writing theory. The DHO mechanism cre- ates a rough outline that aligns with novel-writing Ethics Statement theory and dynamically generates it during the writ- ing process, enhancing plot fluency. Additionally, This work fully complies with the ACL Ethics Pol- the Memory-Enhancement Module (MEM) uses icy. We declare that there are no ethical issues in temporal knowledge graphs to store and access this paper, to the best of our knowledge. generated stories, providing contextual content for both detailed outline planning and story writing, References and reducing contextual conflicts. Lastly, the tem- poral conflict analyzer detects potential conflicts Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, using temporal knowledge graphs and integrates Diogo Almeida, Janko Altenschmidt, Sam Altman, with LLMs to automatically assess the contextual Shyamal Anadkat, et al. 2023. Gpt-4 technical report. consistency of the generated text. Experiments arXiv preprint arXiv:2303.08774. demonstrate that DOME significantly improves the AI@Meta. 2024. Llama 3 model card. coherence and overall quality of generated long- form stories from plot and expression compared to Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, SOTA methods. Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, et al. 2023. Qwen technical report. arXiv preprint arXiv:2309.16609. Limitations Yushi Bai, Jiajie Zhang, Xin Lv, Linzhi Zheng, Siqi Zhu, The lack of automatic evaluation matrics constrains Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. 2024. our experiments. Specifically, we have to rely on Longwriter: Unleashing 10,000+ word generation human evaluation to evaluate the quality of the from long context llms. CoRR, abs/2408.07055. generated stories which is time-consuming and Faeze Brahman, Alexandru Petrusca, and Snigdha costly. Besides, the amount of experimental data Chaturvedi. 2020. Cue me in: Content-inducing is limited since there are no specific datasets for approaches to interactive story generation. In Pro- ceedings of the 1st Conference of the Asia-Pacific long-form story generation and we follow the ex- Chapter of the Association for Computational Lin- periment setting of DOC (Yang et al., 2023). In guistics and the 10th International Joint Conference addition, our framework requires massive LLM on Natural Language Processing, pages 588–597, API calls which are time-consuming. On average, Suzhou, China. Association for Computational Lin- guistics. Generating a story requires about 200 API calls. Massive API calls result in a limited story gener- Joseph Campbell. 1949. The Hero with a Thousand ation speed, taking about 4 hours to complete a Faces. Pantheon Books, New York, NY, USA. 7,000-word story. Thus the long text generation Jianlyu Chen, Shitao Xiao, Peitian Zhang, Kun and a large number of API calls limit our usage of Luo, Defu Lian, and Zheng Liu. 2024. M3- paid closed-source LLMs, such as ChatGPT. Al- embedding: Multi-linguality, multi-functionality, though we report the result about the extensibility multi-granularity text embeddings through self- knowledge distillation. In Findings of the Asso- of our framework, many steps in our framework ciation for Computational Linguistics: ACL 2024, are realized based on custom-designed prompts and pages 2318–2335, Bangkok, Thailand. Association it is better to re-design these prompts to achieve for Computational Linguistics. 1360
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
读完后记住这三件事
记住三个对象:粗大纲控制走向,细大纲指导当前内容,记忆提供相关历史。看结果时同时看长度、矛盾和成本,不能把图谱构建成本当整篇成本。 (原文:PDF p.3, §3;PDF p.5, Figure 4; §4.2;PDF p.6, experimental setup;PDF p.7, Table 1;PDF p.7, Table 2;PDF p.8, §5.2; Table 3;PDF p.9, Limitations)
指标:DOME 针对长故事越写越容易忘记前文的问题,把层次大纲和记忆增强结合起来。大纲控制接下来应该发生什么,记忆帮助模型知道已经发生过什么;前者主要组织情节,后者主要约束续写时的事实,两者不是同一种提示词技巧。
条件:仅限本地原始PDF的 §3;不同表格与实验不合并
PDF p.3, §3 · PDF p.3
nt Update Calculate Store the score Update • Setting DHO at stage i Long Story S • Characters Detailed Outline 𝑖 Partial Story 𝑠 … • Outline As he stood in the As he stood in the • Writing Theory middle of the room, middle of the room, taking in the blank taking in the blank canvas ... canvas ... … Peering through the query relevant content extract quadruples peephole, he saw an Rough Outline 𝑖 older gentleman with a <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > friendly smile - his … <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > Rough Outline 𝑖 1 update … relevant … … content <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > TKG at stage 𝑖 1 Memory-Enhancement Module Figure 2: General diagram of proposed DOME. The story generation process is divided into several stages based on the amount of rough outline. At stage i, we expand rough outline i into several detailed outlines based on the relevant content provided by MEM, and these outlines generate partial story sequentially based on their relevant content querying from MEM. Every generated partial story is stored in a Temporal Knowledge Graph (TKG) for the following query. writing process through a plan-and-write frame- et al., 2023), Llama 3 (AI@Meta, 2024) and work (Yao et al., 2019). Fan et al. (2018) proposes Qwen1.5 (Bai et al., 2023), the integration of LLMs a hierarchical story generation method, which first and KGs has attracted widespread attention due generates a story premise and then generates the to the potential improvement KGs can make for story based on it. Yao et al. (2019) introduces a LLMs (Ji et al., 2022). KG can be used as a knowl- "plan-and-write" framework for open-domain story edge base to provide references when LLM gen- generation, which divides the writing process into erates content. There are two kinds of work to planning and generating. Yang et al. (2022) further inject the knowledge in KG into LLM. The first subdivides writing into plan, draft, rewrite, and edit one fuse knowledge in KG and input by directly module. Yang et al. (2023) makes efforts on outline concatenating them in language level (Zhang et al., control to generate a more detailed and hierarchical 2024; Wen et al., 2024; Sun et al., 2021) or in to- story. Although this technique can lengthen the ken level (Zhang et al., 2019; He et al., 2020; Su narrative and enhance plot fluidity, the rigid nature et al., 2021). These methods can easily fuse the of a predetermined outline can hinder flexibility in knowledge between them but with little interac- the writing phase, resulting in plot inconsistencies, tion between knowledge and input. The second such as repeated or contradictory contexts. one applies the addition knowledge fusion mod- Other works (Zhou et al., 2023; Brahman et al., ule in which the knowledge is updated and simpli- 2020) explore using human interaction to replace fied (Sun et al., 2022; Zhang et al., 2022). pre-generated outlines. Brahman et al. (2020) intro- duce a content-inducing approach, which involves 3 Problem definition and motivation human being using cue-phrases. Zhou et al. (2023) 3.1 Problem Definition propose a language simulacrum of RNN recurrence, For a given story premise I from a writer, we design enabling human-guided story planning. This re- a framework F ∗ to generate a long-form story S. duces plot inconsistencies but results in less fluent The score of story S on the plot coherence is C P lot and readable narratives. and the score of story S on the context coherence is C Context . We aim to generate a story S with 2.2 KG-enhanced LLM Inference improved C P lot and C Context . Knowledge Graphs (KGs) can effectively model the key information in text by triples in the form of 3.2 Motivaiton < subject, action, object > (Ji et al., 2022). Af- Existing long-form story generation methods sepa- ter the appearance of LLMs, like GPT-3.5 (Achiam rate planning and writing stages based on the plan- 1354
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:记忆使用带时间索引的知识图谱,事实写成 subject、action、object、index 四元组,index 记录信息所在的章节。续写时按相关实体检索,再做相关性筛选,把相关事实带回生成上下文。这不是简单把全部历史原样塞回提示词,也不是证明模型从此不会遗忘。
条件:仅限本地原始PDF的 Figure 4; §4.2;不同表格与实验不合并
PDF p.5, Figure 4; §4.2 · PDF p.5
Outline Entity Knowledge Graph Quadruple Relevance filtering <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > 1.Rising Action: <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > Gabriel faces the LLM … select top-k … score content challenges... <𝑠𝑢𝑏 , 𝑎𝑐𝑡 , 𝑜𝑏𝑗 , 𝑖𝑑𝑥 > calculate the similarity score Figure 4: The details of querying for the relevant content. Notably the last arrow points to the historical information semantically related to the input content. line generation prompt. Thus, the rough outline R Algorithm 1 Inference Pipeline for DOME was generated based on user input I: Require: Novel writing theory W T , the Large Language Model applied in DOME LLM , user input I, rough R = LLM (W T, I, Prough_outline ), (1) outline prompt Prough_outline , detailed outline prompt Pdetailed_outline , story generation prompt Pgen_story . 1: Initialize MEM KG. where W T is the novel writing theory, LLM (·) is 2: Generate rough outline R via Eq. (1). LLM inference operation, and Prough_outline is the 3: for ri in R = {ri }i=5i=1 do prompt guiding LLM to generate a rough outline. 4: Find relevant content RInf oi about ri from KG. 5: Generate detailed outlines di via Eq. (2). The detailed outline D = {di }5i=1 is generated 6: Add di into D. step by step according to the corresponding part 7: for doti in di = {doti }t=M t=1 do 8: Find relevant content DInf o.ti about doti from of the rough outline ri and its relevant content KG. RInf o.i , ensuring its adaptation to the uncertainty 9: Generate partial story sti via Eq. (3). in the story generation stage. 10: Add sti into story S. 11: Store sti into KG. 12: end for di = LLM (ri , RInf o.i , Pdetailed_outline ), (2) 13: end for 14: return R, D and S. where Pdetailed_outline is the prompt that indicates LLM to generate a detailed outline. The di = {doti }Mt=1 contains detailed outlines expanded from We propose an additional Memory-Enhancement the rough outline. The M is the number of detailed Module, named MEM, to store the generated story outlines expanded from the given rough outline ri and provide concise relevant content. which should be set at the beginning. KGs and their variants are well-established tools The story content sti is generated step-by-step for content storage and query (Wen et al., 2024). based on the detailed outline doti and relevant gen- KGs extract the key information for the content erated content DInf o.ti of the sub-detailed outline like subject, action, and object and ignore unimpor- doti , which is as follows: tant information like adverbs and modifiers. Be- sides, the structure of the knowledge graph sup- sti = LLM (doti , DInf o.ti , Pgen_story ), (3) ports reasoning and information fusion, which is where Pgen_story is the prompt that indicates LLM conducive to information integration (Pan et al., to generate a partial story. The detailed process 2024). Based on the analysis above, the MEM of writing story S in Algorithm 1. The details of applies Temporal Knowledge Graph (TKG) (Rod- prompts in the DHO are shown in Appendix B.1. dick and Spiliopoulou, 2002) to store the generated story. TKG is stored by quadruples in the form 4.2 Memory-Enhancement Module of < subject, action, object, index >. The index Recently, many works (Liu et al., 2024) have shown means the chapter number of the information. The that LLMs tend to ignore the information in the module stores the input story premise at the very middle of the long inputs. As the story generation beginning and the generated content and provides process progresses, the increasing story length af- query-relevant content based on entity retrieval in fects the LLM’s attention on the relevant content TKG each time the DHO generates content. when generating new content, increasing comput- To store entity, we use LLM to extract triples ing overhead (Choromanski et al., 2021) and even for every sentence and then add the current chapter leading to contextual conflict (Yang et al., 2022). number to form quadruples. To access the rele- 1356
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:实验沿用 DOC 的故事前提设置,以 Qwen1.5-72B-Chat 为主要底座,并比较基线与去模块变体。自动指标和人类平均排名共同描述输出,不能把人评排名当分类指标。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.6, experimental setup · PDF p.6
Figure 5: The criterion of filtering on semantic relevance. vant content (see Fig. 4), we first conduct entity- lows: based quadruple retrieval (Reinanda et al., 2020) CR. = m/N × 100%, (4) on TKG and then apply LLM to filter the retrieved results through semantics correlation by evaluat- where N is the number of quadruples in TKG and ing relevance based on rules (see Fig. 5). MEM m is the number of conflict quadruples in TKG. can provide the top-k most relevant information as query-relevant content, making it concise and 5 Experiment semantically relevant with input (more details can Implementation details. DOME * contains DHO be seen in Appendix B.2). and MEM. In DHO, every rough outline is ex- panded into 3 detailed outlines which means the M 4.3 Temporal Conflict Analyzer mentioned in Section 4.1 is set to 3. The embed- ding model we applied is bge-large-en-v1.5 (Chen The evaluation of long-form stories in previous et al., 2024). In MEM, we apply cosine similar- work mainly relies on humans, which is time- ity (Lahitani et al., 2016) and set the filter threshold consuming and laborious (Yang et al., 2023; Wang to 0.75 to implement the entity-based query. Be- et al., 2023a). MEM applies TKG to store story sides, we switch off the default historical content and it is easy for TKG to associate context (Wen input of LLM where MEM is applied. The tem- et al., 2024). Thus we propose an auto metric that perature of LLM is set to 0.5 and the max token measures the contextual consistency of the story of LLM is 1000 while other parameters are kept by calculating the rate of conflict quadruples to to- by default. All the experiments are conducted on tal quadruples. To detect the conflict quadruples, 2×A800 GPU with CUDA version 11.3. the quadruples in TKG Q = {qi }N i=1 of gener- Dataset and baselines. Following the settings of ated stories are grouped by rules (see Fig. 26 in DOC (Yang et al., 2023), we use its story premises† Appendix D) sequentially and without repetition as the input and generate 20 long stories for evalu- and the potential conflict information is aggregated. ation. The details of the dataset are in Appendix A. Since LLM-as-a-judge has been verified by exper- We use Qwen1.5-72B-Chat (Bai et al., 2023) for iments (Zheng et al., 2023) and it can evaluate long-form story generation as it has considerable some features of a text within a certain length ac- performance (Chiang et al., 2024) and is able to cording to rules (Achiam et al., 2023; Liu et al., deployed locally. We compare DOME with two 2021), we apply LLM to further detect the con- types of methods. The first is prompting LLM flict quadruples based on time order. More details to generate stories as long as possible with input. about the temporal conflict analyzer are reported in * The implementation are available at https://github. Appendix E. In this way, we can find the quadru- com/Qianyue-Wang/DOME. ples Qconf lict = {qiconf lict }m i=1 containing conflict † All the datasets are available at https://github.com/ information. The conflict rate is expressed as fol- Qianyue-Wang/DOME_dataset. 1357
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:DOME 的故事平均长度为 7113.75 words,矛盾率 CR 为 0.56%;RE3 的对应值为 3802.15 和 0.77%,DOC 为 3904.90 和 1.21%。长度与矛盾率应一起看,不能把 words 改成中文字数。人工评价考察情节完整、情节连贯、相关性、趣味性和表达连贯,使用平均排名而不是 F1,也没有名为“整体拟人性”的指标。
条件:仅限本地原始PDF的 Table 1;不同表格与实验不合并
PDF p.7, Table 1 · PDF p.7
Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ Llama3-70B-Instruct (AI@Meta, 2024) 612.65 6.78 9.25 3.77 3.81 3.58 3.96 3.72 Qwen1.5-72B-Chat (Bai et al., 2023) 495.70 0.66 9.06 4.77 4.80 4.58 4.96 4.72 Re3 (Yang et al., 2022) 3802.15 0.77 11.56 2.73 2.53 2.96 2.56 2.83 DOC (Yang et al., 2023) 3904.90 1.21 11.55 2.58 2.43 2.63 2.34 2.56 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.15 1.44 1.26 1.77 1.16 Table 1: Comparison with LLMs and SOTA baselines. We use the same premises as DOC Yang et al. (2023). Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ w/o MEM 6511.10 4.52 10.00 1.88 2.24 1.97 1.96 2.22 w/o DHO 1471.90 0.65 11.50 2.92 2.36 2.86 2.88 2.46 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.20 1.40 1.17 1.62 1.32 Table 2: Ablation study of different modules. The second are the state-of-the-art methods includ- human evaluation are shown in Appendix C. ing DOC (Yang et al., 2023) and Re3 (Yang et al., 2022). To validate the scalability of DOME, we 5.1 Comparison Experiments report the improvement when applying DOME on DOME is consistently better in auto evaluation. Llama-3-70b-Instruct (AI@Meta, 2024) and Yi1.5- From Table 1, the proposed DOME achieves su- 34B-Chat (Young et al., 2024). perior performance in both CR. and Ent-2. It Metrics. Since the content repetition is an im- also generates the longest content. Specifically, portant aspect reflecting the quality of stories in DOME surpasses the LLM baseline, Qwen1.5-72B- terms of coherence (Yang et al., 2022), We apply Chat, by 35.7% in Ent-2 and reduce the CR. by the auto evaluation metrics including n-gram en- 15.2%. Additionally, DOME outperforms the Re3 tropy (Zhang et al., 2018) and set n = 2 (Ent-2) to by 6.3% in Ent-2 and reduces the CR. by 27.3%. evaluate the degree of content repetition by measur- The results indicate that our DOME delivers di- ing the diversity of vocabulary. Besides, we apply verse content with fewer conflicts. We attribute the our proposed conflict rate (CR.) to evaluate the improvement to the following facts. Firstly, our contextual consistency of the generated stores. TKG is capable of fine-grained modeling of gener- To evaluate the alignment of the stories with hu- ated stories. It provides accurate relevant content man preferences in terms of contextual consistency through semantic filtering during the generation and coherence and other basic story quality, we stage, which ensures consistency and reduces con- further conduct a human evaluation to evaluate the textual conflicts in the generated content. Besides, story quality of plot completeness, coherence, rele- Our DHO dynamically adjusts the detailed out- vance, interest level, and expression coherence. We lines during the story generation process, thereby compare all methods according to each indicator increasing the space for plot development and en- and calculate their average rank. The description hancing content diversity. of every metric is as follows: 1) Plot Completeness DOME is consistently better in human eval- (P Co.): the extent to which the generated story uation. We conduct a human evaluation to assess covers all the stages mentioned in the story the- how well DOME aligns with human preferences. ory. 2) Plot Coherence (P Coh.): the fluency of In Table 1, our DOME ranks first across all five the development of the generated story. 3) Rele- metrics. The results demonstrate that MEM pro- vance (Rel.): the consistency between the gener- vides relevant content during the generation stage, ated story and the input premise. It demonstrates reducing the conflict due to the unclear memory of the actual usability of the method. 4) Interesting LLM itself (Zhang et al., 2023) and thus ensuring (Int.): the reading interest to the user. Since the contextual consistency and enhancing relevance reading interest reflects peoples’ preferences on the and expression coherence. Furthermore, our DHO completeness and coherence of stories (Wang et al., dynamically generates detailed outlines based on 2023b). 5) Expression Coherence (ECoh.): the the development of the storyline, adapting to the un- contextual consistency of the story. More details of certainty in generation and achieving improved flu- 1358
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:去掉 MEM 的变体报告 CR 为 4.52%,高于完整配置。它支持记忆模块值得重视,但不能单凭这一差距宣布记忆模块具有不受条件影响的绝对必要性。
条件:仅限本地原始PDF的 Table 2;不同表格与实验不合并
PDF p.7, Table 2 · PDF p.7
Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ Llama3-70B-Instruct (AI@Meta, 2024) 612.65 6.78 9.25 3.77 3.81 3.58 3.96 3.72 Qwen1.5-72B-Chat (Bai et al., 2023) 495.70 0.66 9.06 4.77 4.80 4.58 4.96 4.72 Re3 (Yang et al., 2022) 3802.15 0.77 11.56 2.73 2.53 2.96 2.56 2.83 DOC (Yang et al., 2023) 3904.90 1.21 11.55 2.58 2.43 2.63 2.34 2.56 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.15 1.44 1.26 1.77 1.16 Table 1: Comparison with LLMs and SOTA baselines. We use the same premises as DOC Yang et al. (2023). Auto Evaluation Human Evaluation Methods Word Num. CR. ↓ Ent-2↑ P Co. ↓ P Coh. ↓ Rel. ↓ Int. ↓ Ecoh. ↓ w/o MEM 6511.10 4.52 10.00 1.88 2.24 1.97 1.96 2.22 w/o DHO 1471.90 0.65 11.50 2.92 2.36 2.86 2.88 2.46 Ours (Qwen1.5-72B-Chat) 7113.75 0.56 12.29 1.20 1.40 1.17 1.62 1.32 Table 2: Ablation study of different modules. The second are the state-of-the-art methods includ- human evaluation are shown in Appendix C. ing DOC (Yang et al., 2023) and Re3 (Yang et al., 2022). To validate the scalability of DOME, we 5.1 Comparison Experiments report the improvement when applying DOME on DOME is consistently better in auto evaluation. Llama-3-70b-Instruct (AI@Meta, 2024) and Yi1.5- From Table 1, the proposed DOME achieves su- 34B-Chat (Young et al., 2024). perior performance in both CR. and Ent-2. It Metrics. Since the content repetition is an im- also generates the longest content. Specifically, portant aspect reflecting the quality of stories in DOME surpasses the LLM baseline, Qwen1.5-72B- terms of coherence (Yang et al., 2022), We apply Chat, by 35.7% in Ent-2 and reduce the CR. by the auto evaluation metrics including n-gram en- 15.2%. Additionally, DOME outperforms the Re3 tropy (Zhang et al., 2018) and set n = 2 (Ent-2) to by 6.3% in Ent-2 and reduces the CR. by 27.3%. evaluate the degree of content repetition by measur- The results indicate that our DOME delivers di- ing the diversity of vocabulary. Besides, we apply verse content with fewer conflicts. We attribute the our proposed conflict rate (CR.) to evaluate the improvement to the following facts. Firstly, our contextual consistency of the generated stores. TKG is capable of fine-grained modeling of gener- To evaluate the alignment of the stories with hu- ated stories. It provides accurate relevant content man preferences in terms of contextual consistency through semantic filtering during the generation and coherence and other basic story quality, we stage, which ensures consistency and reduces con- further conduct a human evaluation to evaluate the textual conflicts in the generated content. Besides, story quality of plot completeness, coherence, rele- Our DHO dynamically adjusts the detailed out- vance, interest level, and expression coherence. We lines during the story generation process, thereby compare all methods according to each indicator increasing the space for plot development and en- and calculate their average rank. The description hancing content diversity. of every metric is as follows: 1) Plot Completeness DOME is consistently better in human eval- (P Co.): the extent to which the generated story uation. We conduct a human evaluation to assess covers all the stages mentioned in the story the- how well DOME aligns with human preferences. ory. 2) Plot Coherence (P Coh.): the fluency of In Table 1, our DOME ranks first across all five the development of the generated story. 3) Rele- metrics. The results demonstrate that MEM pro- vance (Rel.): the consistency between the gener- vides relevant content during the generation stage, ated story and the input premise. It demonstrates reducing the conflict due to the unclear memory of the actual usability of the method. 4) Interesting LLM itself (Zhang et al., 2023) and thus ensuring (Int.): the reading interest to the user. Since the contextual consistency and enhancing relevance reading interest reflects peoples’ preferences on the and expression coherence. Furthermore, our DHO completeness and coherence of stories (Wang et al., dynamically generates detailed outlines based on 2023b). 5) Expression Coherence (ECoh.): the the development of the storyline, adapting to the un- contextual consistency of the story. More details of certainty in generation and achieving improved flu- 1358
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:作者对不带 MEM 的配置限制了最多 2 轮聊天,这是成本约束下的实验条件,解释消融时必须保留。Table 3 的 16 次 API 调用针对知识图谱构建,不是整篇故事的总生成成本;混淆这两个范围会让读者严重低估开销。
条件:仅限本地原始PDF的 §5.2; Table 3;不同表格与实验不合并
PDF p.8, §5.2; Table 3 · PDF p.8
80.00% 60.43% 60.00% 40.00% 20.00% 0.00% LLMs Ours Llama3-70B-Instruct Qwen1.5-72B-Chat Yi1.5-34B-Chat Ours LLM (in DOME) Nodes Relations Quadruples API calls CR. Ent-2 120.00% 100.00% Yi1.5-34B-Chat 691.38 328.45 354.55 16 150.00% 135.65% 125.51% 129.68% 100.00% 81.71% 84.85% Llama3-70B-Instruct 844.62 345.65 434.00 16 100.00% 80.00% 100.00% 60.43% Qwen1.5-72B-Chat 791.35 258.23 404.85 16 60.00% 50.00% 40.00% 20.00% Table 3: The computation and storage cost of DOME. 0.00% 0.00% Notable the API calls means the average number of LLMs Ours LLMs Ours API calls for KG construction. The column in the table named “LLM (in DOME)” means the Large Language Figure 6: Scalability results of applying DOME on Model applied in DOME. different LLMs. Left: the increase rates of Ent-2 metric. Right: the decrease rates of CR. metric. Method Ent-2↑ CR. ↓ Word Num. Qwen1.5-72B-Chat 9.06 0.66 495.70 AgentWriter 11.13 2.14 3140.00 ency. Additionally, our novel-writing mechanism DOME 12.29 0.56 7113.75 encourages Large Language Models to create sto- Table 4: The Comparison of the performance with the ries like writing a complete novel. This approach agent-based method, using the same Large Language ensures the plot’s completeness and to some extent, Model (Qwen1.5-72B-Chat). introduces fluctuations that capture and maintain reader interest. Chat, Llama3-70B-Instruct and Qwen1.5-72B- 5.2 Ablation Studies Chat. As illustrated in Fig. 6, DOME significantly Effectiveness of DHO. We remove the DHO so reduces conflicts and enhances content diversity on that the outline is fixed and consistent with the in- all LLMs with different parameter scales. Specif- put storyline. As shown in Table 2, this variant ically, DOME reduce the CR. by more than 18% exhibits higher content conflicts and reduced con- on Llama3-70B-Instruct. It also improves the Ent- tent variety. Additionally, it ranks lowest across 2 by more than 29% on Yi1.5-34B-Chat. This all human evaluation metrics. It supports the no- scalability is due to the straightforward and easy- tion that dynamic adjustment of the detailed outline to-follow prompts in our DOME, making it easy to helps to control content generation, thereby ensur- be adaptable across different LLMs. ing plot coherence. Furthermore, the application of novel writing theory enhances plot complete- 5.4 Computation and Storage Cost of DOME ness and thus improves the reading interest, this We report the computation and storage cost for is because a complete story encourages the reader constructing the knowledge graph dynamically, as to read to the end. See the example of DHO in shown in Table 3. With acceptable additional Appendix F. computation and storage overhead, the proposed Effectiveness of MEM. Similarly, we remove method improves the quality of generating long- the MEM to eliminate the knowledge graph for form stories. Specifically, as shown in Tables 1 reference and resort to the multi-round chatting ca- and 3, the proposed DOME only adds 791 nodes pability of LLM to generate content. Limited by of storage overhead and 16 LLM API calls to con- computing cost, we set the maximum chat rounds struct the KG dynamically, but it outperforms the to 2. As shown in Table 2, the conflict rate sig- SOTA methods in all performance metrics. This is nificantly increases from 0.56 to 4.52 and Ent-2 because the structured storage of KG and the access reduces from 12.29 to 10.00 without MEM. Addi- advantages of KG facilitate LLM in achieving ac- tionally, all human evaluation metrics deteriorate to curate and concise relevant memory and reducing varying degrees. These results indicate that MEM context inconsistency. ensures contextual coherence by providing relevant content during generation, which also improves 5.5 Compare with the Agent-based Method plot coherence and alignment with human prefer- To further validate the effectiveness of DOME, we ences. See the example of MEM in Appendix E. compare DOME with the agent-based long story generation method, AgentWriter (Bai et al., 2024). 5.3 The Scalability of DOME As shown in Table 4, the proposed DOME outper- To demonstrate the applicability of DOME on dif- forms AgentWriter across all metrics. Compared ferent LLMs, we apply our method to Yi1.5-34B- to AgentWriter, DOME generates stories twice as 1359
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:作者报告生成约 7,000 words 的故事约需 200 次调用和 4 小时。这里是所用模型与流程下的经验成本,不是部署到其他模型后的保证。DOME 提供的是结构与记忆的工程组合,复现时应同时记录质量、矛盾、长度和成本,不能只挑一个好看的指标。
条件:仅限本地原始PDF的 Limitations;不同表格与实验不合并
PDF p.9, Limitations · PDF p.9
long, with CR. dropping to a quarter and Ent-2 better performance. increasing by 1.16. This means that DOME gen- Although experiments demonstrate the effec- erates longer stories with both plot coherence and tiveness and scalability of our proposed DOME, contextual consistency. the prompts in DOME are designed based on hu- man experience. Therefore, the use of automatic 6 Conclusion prompts may further exploit the capabilities of DOME. However, automatic prompting methods In this paper, we propose a Dynamic Hierarchi- often struggle with capturing the nuanced context cal Outlining with Memory Enhancement, named required for a specific task (Si et al., 2023). Apply- DOME, to generate a coherent long-form story. ing them to long-form story generation tasks may Specifically, we propose a Dynamic Hierarchical not ensure the completeness of long-form stories Outline (DHO) mechanism for long-form story gen- and further affects the effectiveness and scalability eration, based on the plan-write framework and of DOME. novel-writing theory. The DHO mechanism cre- ates a rough outline that aligns with novel-writing Ethics Statement theory and dynamically generates it during the writ- ing process, enhancing plot fluency. Additionally, This work fully complies with the ACL Ethics Pol- the Memory-Enhancement Module (MEM) uses icy. We declare that there are no ethical issues in temporal knowledge graphs to store and access this paper, to the best of our knowledge. generated stories, providing contextual content for both detailed outline planning and story writing, References and reducing contextual conflicts. Lastly, the tem- poral conflict analyzer detects potential conflicts Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, using temporal knowledge graphs and integrates Diogo Almeida, Janko Altenschmidt, Sam Altman, with LLMs to automatically assess the contextual Shyamal Anadkat, et al. 2023. Gpt-4 technical report. consistency of the generated text. Experiments arXiv preprint arXiv:2303.08774. demonstrate that DOME significantly improves the AI@Meta. 2024. Llama 3 model card. coherence and overall quality of generated long- form stories from plot and expression compared to Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, SOTA methods. Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, et al. 2023. Qwen technical report. arXiv preprint arXiv:2309.16609. Limitations Yushi Bai, Jiajie Zhang, Xin Lv, Linzhi Zheng, Siqi Zhu, The lack of automatic evaluation matrics constrains Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. 2024. our experiments. Specifically, we have to rely on Longwriter: Unleashing 10,000+ word generation human evaluation to evaluate the quality of the from long context llms. CoRR, abs/2408.07055. generated stories which is time-consuming and Faeze Brahman, Alexandru Petrusca, and Snigdha costly. Besides, the amount of experimental data Chaturvedi. 2020. Cue me in: Content-inducing is limited since there are no specific datasets for approaches to interactive story generation. In Pro- ceedings of the 1st Conference of the Asia-Pacific long-form story generation and we follow the ex- Chapter of the Association for Computational Lin- periment setting of DOC (Yang et al., 2023). In guistics and the 10th International Joint Conference addition, our framework requires massive LLM on Natural Language Processing, pages 588–597, API calls which are time-consuming. On average, Suzhou, China. Association for Computational Lin- guistics. Generating a story requires about 200 API calls. Massive API calls result in a limited story gener- Joseph Campbell. 1949. The Hero with a Thousand ation speed, taking about 4 hours to complete a Faces. Pantheon Books, New York, NY, USA. 7,000-word story. Thus the long text generation Jianlyu Chen, Shitao Xiao, Peitian Zhang, Kun and a large number of API calls limit our usage of Luo, Defu Lian, and Zheng Liu. 2024. M3- paid closed-source LLMs, such as ChatGPT. Al- embedding: Multi-linguality, multi-functionality, though we report the result about the extensibility multi-granularity text embeddings through self- knowledge distillation. In Findings of the Asso- of our framework, many steps in our framework ciation for Computational Linguistics: ACL 2024, are realized based on custom-designed prompts and pages 2318–2335, Bangkok, Thailand. Association it is better to re-design these prompts to achieve for Computational Linguistics. 1360
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
代码从哪里读
原始来源入口。原文给出这一代码地址,但本轮尚未成功核实仓库内容;不能声称已确认入口或可运行性。理解时先分清大纲、记忆检索和知识图谱构建的成本范围。