跳到正文
论文阅读馆THE RESEARCH LIBRARY 查找论文
← 论文库AI 研究与应用 / 绘本与图像一致性导出 ↗

PAPER / 2024

Intelligent Grimm / StoryGen:用前文图像与文字接着画故事

Intelligent Grimm - Open-ended Visual Storytelling via Latent Diffusion Models

Chang Liu · Haoning Wu · Yujie Zhong · Xiaoyun Zhang · Yanfeng Wang · Weidi Xie

arXiv · 2024

30 秒读懂

系统给先前图像加少量噪声,在原扩散网络里做一步去噪并提取多层特征,作为视觉上下文。较远的图像加更多噪声,用以编码时间距离;当前文字和历史视觉分别经过交叉注意力再融合。训练先建立单帧能力,再训练新增图像注意力,推理时才逐张自回归生成。

输入是分步故事描述,也可以提供人物参考图;输出是一串图像,而非自然运动视频。以往固定动画角色的数据限制了泛化,本文希望通过前面图文上下文支持不同故事和人物。生成每一张时都带上前序图文,而不只带上一句人物外貌描述。

先说结论

本文的StoryGen按顺序生成故事插画,把已生成的图文作为下一张的条件,并用更丰富的StorySalon数据训练。它改善人物与画风延续,但图文匹配并非每个指标都更高;“无需为新人物微调”不等于整个模型无需训练。 (原文:PDF p.3, Figure 2; Section 3.1;PDF p.4, Section 3.2;PDF p.6, Section 5.1;PDF p.6, Table 2;PDF p.6, Tables 2–3;PDF p.5, StorySalon visual-language alignment)

论文为什么要做这件事

输入是分步故事描述,也可以提供人物参考图;输出是一串图像,而非自然运动视频。以往固定动画角色的数据限制了泛化,本文希望通过前面图文上下文支持不同故事和人物。生成每一张时都带上前序图文,而不只带上一句人物外貌描述。 (原文:PDF p.3, Figure 2; Section 3.1)

核心方法到底怎么运转

系统给先前图像加少量噪声,在原扩散网络里做一步去噪并提取多层特征,作为视觉上下文。较远的图像加更多噪声,用以编码时间距离;当前文字和历史视觉分别经过交叉注意力再融合。训练先建立单帧能力,再训练新增图像注意力,推理时才逐张自回归生成。 (原文:PDF p.4, Section 3.2)

解释性例子:上一幅图里小熊穿红衣,下一句只说“它来到河边”。模型从前图特征接续人物外貌,同时根据当前文字改变背景;如果只复制前图又不看文字,就会保持人物却错过河边事件。

实验怎样检验这个方法

实验把从故事直接生成与给定首图后续写分开,自动指标包括FID及图像、文字相似性。作者还用PickScore从10个候选中选图,因此报告结果不是一次裸采样的全部表现。比较复现时应保留候选选择预算,不能只复刻最终生成器。 (原文:PDF p.6, Section 5.1)

结果说明了什么

StorySalon测试中StoryGen的FID为33.90,微调SDM为42.01;图像相似性CLIP-I为0.7467与0.6970。这支持视觉上下文有助于分布质量与图像延续,但并非自动证明故事逻辑合理。FID越低越好,相似性越高越好,方向不能混淆。 (原文:PDF p.6, Table 2)

文字相似性CLIP-T,StoryGen为0.2875,低于微调SDM的0.3005和Prompt-SDM的0.3225。另一方面,人类故事生成偏好占比本文67.14%,SDM为14.05%。这说明代理指标与人类比较关注的侧面不同,不该删除不利指标来让结论看起来整齐。 (原文:PDF p.6, Tables 2–3)

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

故事旁白与可见画面有语义差距,数据管线还生成更贴近画面的描述用于训练。因此学到的是视觉呈现与上下文延续,不是对所有隐含情节和角色心理的理解。训练素材以故事书动画风格为主,也不能直接当作写实电影全域泛化的证明。 (原文:PDF p.5, StorySalon visual-language alignment)

代码从哪里读

已核验作者代码仓库可以访问。先从项目说明核对版本、运行环境与输入格式,再决定是否复现。本次未安装、运行作者代码,也没有验证复现成功。

读完后记住这三件事

前序图文成为下一张插画的条件;模型整体需要训练;视觉延续的提高不保证文字相似性也提高。 (原文:PDF p.3, Figure 2; Section 3.1;PDF p.4, Section 3.2;PDF p.6, Section 5.1;PDF p.6, Table 2;PDF p.6, Tables 2–3;PDF p.5, StorySalon visual-language alignment)

原文证据

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

方法

研究问题

原文摘录
Preceding Feature Extraction Text Encoder❄ Preceding Text Embedding Image Condition “Doraemon is standing happily at the table.” Self Attention Layer Text Condition (No use, just discard.) Text Cross Image Cross Attention Attention Self Attn Text Attn Self Attn Text Attn Add Denoise Layer Layer Noise one step (b) Visual-Language Context Module Preceding Frame Noisy Image Diffusion UNet Denoised Image noise level storyline Image Diffusion Denoising Feature ⋯ ⋯ Shared Parameters More noise Less noise (Trainable) Image Attn Image Attn Self Attn Self Attn Shared Parameters (Frozen) ⋯ ⋯ Text Attn Text Attn New Parameters (Trainable) Random Noise StoryGen Model Visual Feature Extraction + Concat Current Frame ❄ “Doraemon is very confused in bedroom.” Text Encoder Current Text Embedding Current Frame Generation (a) Preceding Feature Extraction Process and Current Frame Generation Process (c) Multi-frame Conditioning Figure 2. Architecture Overview. (a) Our StoryGen model utilizes current text prompt and previous visual-language contexts as conditions to generate an image, iteratively synthesizing a coherent image sequence. Note the parameters of the corresponding attention layers are shared between Diffusion UNet and StoryGen. To avoid potential ambiguity, the parameters are not shared across UNet blocks in a single model. (b) The proposed Visual-Language Context Module can effectively combine the information from current text prompt and contexts from preceding image-caption pairs. (c) We add more noise to reference frames with longer temporal distances to the current frame as positional encoding to distinguish the temporal order. The multiple features can then be directly concatenated to serve as context conditions. sequences based on storylines of diverse topics. Relation to Existing Tasks. In contrast to existing story vi- sualization works, this paper makes improvements from two 3. Method aspects: (i) conventional generation/continuation tasks are limited to training on specific characters/stories, for exam- In this section, we start by formulating the problem of open- ple, [25, 31, 36] only exploits datasets from animation The ended visual storytelling in Section 3.1; then we elaborate Flintstones and Pororo, while our model enables to generate on the proposed StoryGen architecture in Section 3.2; lastly, visual stories based on any given storyline, such as a brand- we present details for model training in Section 3.3. new one generated by ChatGPT; and any pre-defined char- acter, for example, ‘Doraemon’ from the Internet; (ii) unlike 3.1. Problem Formulation existing work that requires costly character-specific opti- In this paper, we focus on a challenging task, termed as mization, for example, [7, 36] rely on LoRA-based [16] op- open-ended visual storytelling, the goal is to generate con- timization to adapt to new characters, our model is learning- tinuous image sequence from a given story in the form of based and expected to generalize to any unseen character natural language. Specifically, we propose a learning-based without any further optimization. auto-regressive image generation model, called StoryGen, 3.2. Architecture that generates the current frame Îk by conditioning on the current text prompt Tk , and image-text pairs (Î<k , T<k ) of To tackle the problem of open-ended visual storytelling, we previous frames, as illustrated in Figure 2 (a). The model is expect the model to not only condition on the current text formulated as follows: prompt, but also preceding image-text pairs. In this sec- tion, we describe the procedure for one-step generation, {Î1 , Î2 , . . . , ÎL } = ΦStoryGen ({T1 , T2 , . . . , TL }; Θ) i.e., generating the k-th frame (k > 1) by conditioning Îk := ΦStoryGen (Îk |Tk , (Î<k , T<k )) on {(Î1 , T1 ), . . . , (Îk−1 , Tk−1 ), Tk }. Generally speaking, our proposed StoryGen model comprises four components: Here, {T1 , T2 , . . . , TL } refer to the given storylines, and (i) Input Initialization, (ii) Context Encoding, (iii) Visual- {Î1 , Î2 , . . . , ÎL } denote the generated image sequence. Language Contextual Fusion, (iv) Conditional Generation. ΦStoryGen (·) represents our proposed StoryGen model. Input Initialization. Our model is built upon the founda- In one-step generation, StoryGen takes the current text tion of a pre-trained stable diffusion model (SDM), which prompt, and preceding image-caption pairs as conditions, randomly samples a noisy latent x from the latent space of and generates an image consistent with both the story’s nar- the VAE [19] encoder. Moreover, for a given text prompt rative and previous frames. The whole image sequence can Tk , the text condition will be extracted by a pre-trained then be synthesized with step-by-step inference. CLIP [38] text encoder ϕCLIP via C T = ϕCLIP (Tk ). 3

条件:本地全文 arXiv:2306.00973v3,Figure 2; Section 3.1;条件及比较对象见陈述

指标:输入是分步故事描述,也可以提供人物参考图;输出是一串图像,而非自然运动视频。以往固定动画角色的数据限制了泛化,本文希望通过前面图文上下文支持不同故事和人物。生成每一张时都带上前序图文,而不只带上一句人物外貌描述。

原文第 3 页 ↗PDF p.3, Figure 2; Section 3.1

只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。

方法

核心机制

原文摘录
Context Encoding. In standard SDM, the noisy latent is As depicted in Figure 2 (b), the image cross-attention recursively denoised with a UNet, conditioning on the text layer is inserted in parallel to the text cross-attention layer in prompt. However, in our case, it is crucial for the generation the transformer decoder of UNet blocks. Drawing inspira- procedure to also condition on context features of preceding tion from ControlNet [58], the results from these two cross- frames, to maintain consistency in characters and storyline. attention layers are simply summed up as the final output In practice, to extract the contextual features, we add O. The final output can thus be expressed as: noise to the preceding frames and exploit the pre-trained SDM to denoise for one diffusion step under the guidance QI (KI )⊤ QT (KT )⊤ O = Softmax( √ )VI + Softmax( √ )VT of their corresponding captions. The diffusion features after d d every self-attention layer in the UNet blocks can be directly Conditional Generation. With the fused vision-language selected to serve as the conditioning visual context features, condition features from above, our StoryGen can now gen- thus constituting a pyramid of visual context features. The erate visual stories that achieve both content coherence and visual condition features for Îk can be expressed as: character consistency. Here, our conditional generation pro- C V = [ϕSDM (Î1 , ϕCLIP (T1 )), . . . , ϕSDM (Îk−1 , ϕCLIP (Tk−1 ))] cedure can be represented as: Experimentally, we notice that, the magnitude of noise Îk = ΦStoryGen (Îk |Tk , (Î<k , T<k )) = ΦStoryGen (x, C T , C V ) added to the preceding frames can greatly affect the condi- tional generation quality, i.e., large-scale noise on preceding With the new conditioning modality introduced, we also frames incurs severe information loss. Thus, we propose adopt another classifier-free guidance term [12], as has been to use a much smaller diffusion timestep t′ for preceding done in [2]. Concretely, we exploit two different guidance frames compared with the diffusion timestep t of the current scales, wv and wt for the visual condition and the text con- image Îk , and follow a t′ = t/10 rule. As depicted in Fig- dition. The relation between the final noise for inference ϵ̄θ ure 2 (c), in case of multiple preceding image-caption pairs, and UNet-predicted noise ϵθ is now expressed as: we use larger t′ for frames with longer temporal distances to ϵ̄θ (xt , t, C V , C T ) = ϵθ (xt , t, ∅, ∅) Îk . Therefore, the extracted multi-frame visual context fea- tures can be directly concatenated, and their different noise + wv (ϵθ (xt , t, C V , ∅) − ϵθ (xt , t, ∅, ∅)) level will serve as temporal positional embedding. Such de- + wt (ϵθ (xt , t, C V , C T ) − ϵθ (xt , t, C V , ∅)) sign reflects the intuition that frames with longer distances will incur less effect on generating the current frame. Discussion. Our work differs from previous ones from two Vision-Language Contextual Fusion. Here, our vision- aspects. First, our StoryGen is a learning-based method, language context module is designed to fuse information which can directly generalize to unseen characters by at- from current text prompt and contextual information from tending to reference images. Second, we propose to con- preceding image-caption pairs. This is achieved by aug- dition the generation process on diffusion features of pre- menting the transformer decoder in SDM with an additional ceding image-text pairs from the same SDM, which pre- image cross-attention layer. Note that, the math expression serves more visual details, greatly differing from existing in this section is not strict, we omit the footnote of diffusion works [22, 52, 54] using CLIP, BLIP [24], or VAE features. timestep t and UNet block level l for simplicity. Specifically, on visual context conditioning, the noisy la- 3.3. Model Training tent x is projected into query, and cross-attends to the visual Training Objective. At training stage, we randomly sam- context features from the corresponding-level UNet block ple a triplet each time, i.e., {Ik , Tk , (I<k , T<k )}. The ob- that act as key and value, denoted as: jective function can be expressed as: QI = xWIQ , KI = C V WIK , VI = C V WIV h i Lt = Et∼[1,T ],x0 ,ϵt ,C V ,C T ∥ϵt − ϵθ (xt , t, C V , C T )∥2 where WIQ , WIK , and WIV represent different projection Two-stage Training Strategy. Our two-stage training strat- matrices, respectively. egy includes single-frame pre-training and multiple-frame On text conditioning, the noisy latent x is again projected fine-tuning. To be specific, at the first stage, we do not intro- to query, and cross-attends to the text features of the current duce additional image cross-attention layers, and only train prompt encoded by CLIP text encoder, i.e., self-attention layers in standard SDM to ensure the single- QT = xWTQ , KT = C T WTK , VT = C T WTV frame generation ability. In multiple-frame fine-tuning, we train additional image cross-attention layers in vision- where WTQ , WTK , and WTV also represent corresponding language context module on our dataset, with all other pa- projection matrices. rameters frozen. This enables the generation procedure to 4

条件:本地全文 arXiv:2306.00973v3,Section 3.2;条件及比较对象见陈述

指标:系统给先前图像加少量噪声,在原扩散网络里做一步去噪并提取多层特征,作为视觉上下文。较远的图像加更多噪声,用以编码时间距离;当前文字和历史视觉分别经过交叉注意力再融合。训练先建立单帧能力,再训练新增图像注意力,推理时才逐张自回归生成。

原文第 4 页 ↗PDF p.4, Section 3.2

只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。

方法

实验设置

原文摘录
Model FID ↓ CLIP-I ↑ CLIP-T ↑ Story Generation GT - 1.0 0.2668 Model Align. ↑ Style ↑ Cont. ↑ Char. ↑ Qual. ↑ Pref. ↑ SDM 73.50 0.6155 0.3218 GT 4.04 4.66 4.41 4.54 4.29 – Prompt-SDM 67.35 0.6272 0.3225 SDM 3.61 2.88 2.90 2.51 3.74 14.05% Finetuned-SDM 42.01 0.6970 0.3005 Prompt-SDM 3.39 2.56 2.68 2.10 3.44 8.57% StoryDALL·E 38.34 0.6823 0.2366 StoryGen-S 3.50 2.73 2.81 2.21 3.19 10.24% AR-LDM 39.55 0.6864 0.2614 StoryGen 3.78 4.79 4.26 4.64 3.76 67.14% StoryGen 33.90 0.7467 0.2875 Story Continuation StoryDALL·E 1.18 1.55 1.20 1.14 1.19 0.63% Table 2. Comparison of automatic metrics AR-LDM 2.47 2.82 2.40 1.87 2.54 2.50% on StorySalon test set. Prompt-SDM denotes StoryGen 4.23 4.70 4.35 4.38 4.18 96.87% Stable Diffusion model with cartoon-style- directed prompts and Finetuned-SDM repre- Table 3. Comparison results of human evaluation. GT stands for ground truth sents a Stable Diffusion model with all param- from the test set. StoryGen-S represents StoryGen without context conditions. eters fine-tuned on our StorySalon dataset. The abbreviated metrics are Text-image alignment, Style consistency, Content consistency, Character consistency, image quality, and Preference, respectively. for training open-ended visual storytelling models, showing frame or the main character is given, and the model is ex- a significantly broader range of visual styles and character pected to generate coherent images based on the storyline. appearances over existing datasets. In this scenario, we compare our model with two closed-set story continuation models: namely, StoryDALL·E [31] and 5. Experiments AR-LDM [36] re-trained on our StorySalon dataset. Automatic Metrics. To evaluate the quality of generated In this section, we start by describing our experimental set- image sequences, we adopt three widely-used metrics, in- tings, then compare with other models from three different cluding Fréchet Inception Distance score (FID) [11], CLIP perspectives: image-text alignment, consistency and image image-image similarity (CLIP-I), and CLIP text-image sim- quality with subjective human evaluation and quantitative ilarity (CLIP-T). Notably, in order to avoid the impact of metrics. Additionally, we present results for ablation exper- randomness in synthesis quality, we utilize a CLIP-based iments to prove the effectiveness of our proposed modules. scoring function trained exclusively on text-to-image gen- erated images, namely, PickScore [20], to automatically se- 5.1. Experimental Settings lect the generated images with better quality. Each chosen Training Details. Our model is built on the stable diffusion image is selected from a pool of 10 candidates. v1.5 model, and trained with a learning rate of 1 × 10−5 5.2. Quantitative Evaluation Results and a batch size of 256. We begin with a single-frame self-attention pre-training stage, which involves 3,000 iter- We compare our StoryGen model with other baselines on ations on 8 NVIDIA RTX3090. Next, we incorporate our StorySalon test set, which contains 5% of total data (nearly proposed vision-language context module, and train it for 7K pairs). Each contains a current prompt and the image- 5,000 iterations using a single preceding image-caption pair text context of the previous frame. The models are expected as context condition, then continue to train it for another to generate the current frame based on given conditions. 5,000 iterations with multiple image-caption pairs for multi- The quantitative results in Table 2 demonstrate that our frame conditioning. To maintain our model’s unconditional StoryGen model exhibits significant performance improve- denoising ability for classifier-free guidance, we randomly ment in terms of FID score and CLIP-I similarity compared drop the current text and the context image-caption pairs to existing models, while maintaining comparable CLIP- with a probability of 5% and 15%, respectively. During in- T similarity. This confirms that our model can effectively ference, we utilize DDIM [46] with 40 steps of sampling exploit contextual information, thus generating animation- and select the guidance weight wv = 7.0 and wt = 3.5. style visual stories based on the given storyline. Notably, Baselines. We consider two scenarios of our proposed CLIP trained on natural images tends to have an under- open-ended storytelling task, namely, story generation and standing bias towards animation-style images, and the slight story continuation. For story generation, we need the decline in CLIP-T is an inevitable result of the conflict be- model to be able to generate a complete visual story only tween text condition and newly introduced image condition. based on a given storyline. So we present a comparison with 5.3. Human Evaluation Results Stable Diffusion Model (SDM) and Prompt-SDM, which conditions on an additional cartoon-style-directed prompt Considering that the above metrics may not reflect the qual- “A cartoon style image”. For story continuation, the first ity of the generated stories accurately, and there is no stan- 6

条件:本地全文 arXiv:2306.00973v3,Section 5.1;条件及比较对象见陈述

指标:实验把从故事直接生成与给定首图后续写分开,自动指标包括FID及图像、文字相似性。作者还用PickScore从10个候选中选图,因此报告结果不是一次裸采样的全部表现。比较复现时应保留候选选择预算,不能只复刻最终生成器。

原文第 6 页 ↗PDF p.6, Section 5.1

只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。

结果

主要比较

原文摘录
Model FID ↓ CLIP-I ↑ CLIP-T ↑ Story Generation GT - 1.0 0.2668 Model Align. ↑ Style ↑ Cont. ↑ Char. ↑ Qual. ↑ Pref. ↑ SDM 73.50 0.6155 0.3218 GT 4.04 4.66 4.41 4.54 4.29 – Prompt-SDM 67.35 0.6272 0.3225 SDM 3.61 2.88 2.90 2.51 3.74 14.05% Finetuned-SDM 42.01 0.6970 0.3005 Prompt-SDM 3.39 2.56 2.68 2.10 3.44 8.57% StoryDALL·E 38.34 0.6823 0.2366 StoryGen-S 3.50 2.73 2.81 2.21 3.19 10.24% AR-LDM 39.55 0.6864 0.2614 StoryGen 3.78 4.79 4.26 4.64 3.76 67.14% StoryGen 33.90 0.7467 0.2875 Story Continuation StoryDALL·E 1.18 1.55 1.20 1.14 1.19 0.63% Table 2. Comparison of automatic metrics AR-LDM 2.47 2.82 2.40 1.87 2.54 2.50% on StorySalon test set. Prompt-SDM denotes StoryGen 4.23 4.70 4.35 4.38 4.18 96.87% Stable Diffusion model with cartoon-style- directed prompts and Finetuned-SDM repre- Table 3. Comparison results of human evaluation. GT stands for ground truth sents a Stable Diffusion model with all param- from the test set. StoryGen-S represents StoryGen without context conditions. eters fine-tuned on our StorySalon dataset. The abbreviated metrics are Text-image alignment, Style consistency, Content consistency, Character consistency, image quality, and Preference, respectively. for training open-ended visual storytelling models, showing frame or the main character is given, and the model is ex- a significantly broader range of visual styles and character pected to generate coherent images based on the storyline. appearances over existing datasets. In this scenario, we compare our model with two closed-set story continuation models: namely, StoryDALL·E [31] and 5. Experiments AR-LDM [36] re-trained on our StorySalon dataset. Automatic Metrics. To evaluate the quality of generated In this section, we start by describing our experimental set- image sequences, we adopt three widely-used metrics, in- tings, then compare with other models from three different cluding Fréchet Inception Distance score (FID) [11], CLIP perspectives: image-text alignment, consistency and image image-image similarity (CLIP-I), and CLIP text-image sim- quality with subjective human evaluation and quantitative ilarity (CLIP-T). Notably, in order to avoid the impact of metrics. Additionally, we present results for ablation exper- randomness in synthesis quality, we utilize a CLIP-based iments to prove the effectiveness of our proposed modules. scoring function trained exclusively on text-to-image gen- erated images, namely, PickScore [20], to automatically se- 5.1. Experimental Settings lect the generated images with better quality. Each chosen Training Details. Our model is built on the stable diffusion image is selected from a pool of 10 candidates. v1.5 model, and trained with a learning rate of 1 × 10−5 5.2. Quantitative Evaluation Results and a batch size of 256. We begin with a single-frame self-attention pre-training stage, which involves 3,000 iter- We compare our StoryGen model with other baselines on ations on 8 NVIDIA RTX3090. Next, we incorporate our StorySalon test set, which contains 5% of total data (nearly proposed vision-language context module, and train it for 7K pairs). Each contains a current prompt and the image- 5,000 iterations using a single preceding image-caption pair text context of the previous frame. The models are expected as context condition, then continue to train it for another to generate the current frame based on given conditions. 5,000 iterations with multiple image-caption pairs for multi- The quantitative results in Table 2 demonstrate that our frame conditioning. To maintain our model’s unconditional StoryGen model exhibits significant performance improve- denoising ability for classifier-free guidance, we randomly ment in terms of FID score and CLIP-I similarity compared drop the current text and the context image-caption pairs to existing models, while maintaining comparable CLIP- with a probability of 5% and 15%, respectively. During in- T similarity. This confirms that our model can effectively ference, we utilize DDIM [46] with 40 steps of sampling exploit contextual information, thus generating animation- and select the guidance weight wv = 7.0 and wt = 3.5. style visual stories based on the given storyline. Notably, Baselines. We consider two scenarios of our proposed CLIP trained on natural images tends to have an under- open-ended storytelling task, namely, story generation and standing bias towards animation-style images, and the slight story continuation. For story generation, we need the decline in CLIP-T is an inevitable result of the conflict be- model to be able to generate a complete visual story only tween text condition and newly introduced image condition. based on a given storyline. So we present a comparison with 5.3. Human Evaluation Results Stable Diffusion Model (SDM) and Prompt-SDM, which conditions on an additional cartoon-style-directed prompt Considering that the above metrics may not reflect the qual- “A cartoon style image”. For story continuation, the first ity of the generated stories accurately, and there is no stan- 6

条件:本地全文 arXiv:2306.00973v3,Table 2;条件及比较对象见陈述

指标:StorySalon测试中StoryGen的FID为33.90,微调SDM为42.01;图像相似性CLIP-I为0.7467与0.6970。这支持视觉上下文有助于分布质量与图像延续,但并非自动证明故事逻辑合理。FID越低越好,相似性越高越好,方向不能混淆。

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

只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。

结果

反例或对照

原文摘录
Model FID ↓ CLIP-I ↑ CLIP-T ↑ Story Generation GT - 1.0 0.2668 Model Align. ↑ Style ↑ Cont. ↑ Char. ↑ Qual. ↑ Pref. ↑ SDM 73.50 0.6155 0.3218 GT 4.04 4.66 4.41 4.54 4.29 – Prompt-SDM 67.35 0.6272 0.3225 SDM 3.61 2.88 2.90 2.51 3.74 14.05% Finetuned-SDM 42.01 0.6970 0.3005 Prompt-SDM 3.39 2.56 2.68 2.10 3.44 8.57% StoryDALL·E 38.34 0.6823 0.2366 StoryGen-S 3.50 2.73 2.81 2.21 3.19 10.24% AR-LDM 39.55 0.6864 0.2614 StoryGen 3.78 4.79 4.26 4.64 3.76 67.14% StoryGen 33.90 0.7467 0.2875 Story Continuation StoryDALL·E 1.18 1.55 1.20 1.14 1.19 0.63% Table 2. Comparison of automatic metrics AR-LDM 2.47 2.82 2.40 1.87 2.54 2.50% on StorySalon test set. Prompt-SDM denotes StoryGen 4.23 4.70 4.35 4.38 4.18 96.87% Stable Diffusion model with cartoon-style- directed prompts and Finetuned-SDM repre- Table 3. Comparison results of human evaluation. GT stands for ground truth sents a Stable Diffusion model with all param- from the test set. StoryGen-S represents StoryGen without context conditions. eters fine-tuned on our StorySalon dataset. The abbreviated metrics are Text-image alignment, Style consistency, Content consistency, Character consistency, image quality, and Preference, respectively. for training open-ended visual storytelling models, showing frame or the main character is given, and the model is ex- a significantly broader range of visual styles and character pected to generate coherent images based on the storyline. appearances over existing datasets. In this scenario, we compare our model with two closed-set story continuation models: namely, StoryDALL·E [31] and 5. Experiments AR-LDM [36] re-trained on our StorySalon dataset. Automatic Metrics. To evaluate the quality of generated In this section, we start by describing our experimental set- image sequences, we adopt three widely-used metrics, in- tings, then compare with other models from three different cluding Fréchet Inception Distance score (FID) [11], CLIP perspectives: image-text alignment, consistency and image image-image similarity (CLIP-I), and CLIP text-image sim- quality with subjective human evaluation and quantitative ilarity (CLIP-T). Notably, in order to avoid the impact of metrics. Additionally, we present results for ablation exper- randomness in synthesis quality, we utilize a CLIP-based iments to prove the effectiveness of our proposed modules. scoring function trained exclusively on text-to-image gen- erated images, namely, PickScore [20], to automatically se- 5.1. Experimental Settings lect the generated images with better quality. Each chosen Training Details. Our model is built on the stable diffusion image is selected from a pool of 10 candidates. v1.5 model, and trained with a learning rate of 1 × 10−5 5.2. Quantitative Evaluation Results and a batch size of 256. We begin with a single-frame self-attention pre-training stage, which involves 3,000 iter- We compare our StoryGen model with other baselines on ations on 8 NVIDIA RTX3090. Next, we incorporate our StorySalon test set, which contains 5% of total data (nearly proposed vision-language context module, and train it for 7K pairs). Each contains a current prompt and the image- 5,000 iterations using a single preceding image-caption pair text context of the previous frame. The models are expected as context condition, then continue to train it for another to generate the current frame based on given conditions. 5,000 iterations with multiple image-caption pairs for multi- The quantitative results in Table 2 demonstrate that our frame conditioning. To maintain our model’s unconditional StoryGen model exhibits significant performance improve- denoising ability for classifier-free guidance, we randomly ment in terms of FID score and CLIP-I similarity compared drop the current text and the context image-caption pairs to existing models, while maintaining comparable CLIP- with a probability of 5% and 15%, respectively. During in- T similarity. This confirms that our model can effectively ference, we utilize DDIM [46] with 40 steps of sampling exploit contextual information, thus generating animation- and select the guidance weight wv = 7.0 and wt = 3.5. style visual stories based on the given storyline. Notably, Baselines. We consider two scenarios of our proposed CLIP trained on natural images tends to have an under- open-ended storytelling task, namely, story generation and standing bias towards animation-style images, and the slight story continuation. For story generation, we need the decline in CLIP-T is an inevitable result of the conflict be- model to be able to generate a complete visual story only tween text condition and newly introduced image condition. based on a given storyline. So we present a comparison with 5.3. Human Evaluation Results Stable Diffusion Model (SDM) and Prompt-SDM, which conditions on an additional cartoon-style-directed prompt Considering that the above metrics may not reflect the qual- “A cartoon style image”. For story continuation, the first ity of the generated stories accurately, and there is no stan- 6

条件:本地全文 arXiv:2306.00973v3,Tables 2–3;条件及比较对象见陈述

指标:文字相似性CLIP-T,StoryGen为0.2875,低于微调SDM的0.3005和Prompt-SDM的0.3225。另一方面,人类故事生成偏好占比本文67.14%,SDM为14.05%。这说明代理指标与人类比较关注的侧面不同,不该删除不利指标来让结论看起来整齐。

原文第 6 页 ↗PDF p.6, Tables 2–3

只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。

限制

适用边界

原文摘录
Text: Santa waved down Diverse Data Samples Dataset Style #Frames Avg.Length #Categories with a cry of delight: merry Christmas, my dears, and good night. Please let PororoSV [25] Animation 73,665 5 9 YouTube know you're FlintstonesSV [9] Animation 122,560 5 7 interested in videos. DiDeMoSV [31] Real 52,905 3 - Unstructured Metadata VIST [17] Real 145,950 5 - Data Preparation Pipeline StorySalon Animation 159,778 14 446 (Extraction, Alignment, Post-processing) Table 1. Dataset Statistics. Our StorySalon dataset far exceeds Narrative: Santa waved down with a cry of delight: previous story generation datasets in terms of the total number of merry Christmas, my dears, images, average length, and categories of characters included. and good night. Caption: Two mice are sleeping in the bed… Aligned Image-text Pairs downloaded E-books, except for those with extraneous in- formation, for example, the authorship page. We acquire the Figure 3. Dataset Pipeline and Visualization. Left: Meta- corresponding text description with Whisper [39] from the data sourced from the Internet undergoes a three-step pipeline audio file, and for E-books that do not have corresponding including frame extraction, visual-language alignment and post- audio files, but with available storyline text, we use OCR processing, resulting in properly aligned image-text pairs. Right: algorithms, to directly recognize the text on each page. Our StorySalon dataset contains diverse styles and characters. Visual-Language Alignment. As shown in Figure 3, for each of the image, we can collect two types of text descrip- utilize information from not only current prompt, but also tions, e.g., story-level narration, and descriptive captions. preceding image-caption pairs. This is based on our observation that there actually exists Inference. As shown in Figure 1, at inference time, we a semantic gap between narrative storyline and descriptive can prompt ChatGPT to generate novel storylines, and syn- text, for example, the same image can be well described as thesize the first image directly or attending to a pre-defined “The cat is isolated by others, sitting alone in front of a vil- character. Then the previously synthesized frames, along lage.” in the story, or “A black cat sits in front of a number with the story descriptions, are treated as conditions to syn- of houses.” as descriptive caption, therefore, directly fine- thesize the image sequence in an auto-regressive manner. tuning stable diffusion models with story narration may be Experimentally, our proposed StoryGen is shown to gener- detrimental to its pre-trained text-image alignment. In prac- ate images that align with the storyline, as well as maintain tice, to get story-level paired image-text samples, we align consistency with previously generated frames. the subtitles with visual frames by using Dynamic Time Warping (DTW) algorithm [34]. To get visual descriptions, 4. StorySalon Dataset we use TextBind [23] to generate captions for each image, with both the image and the corresponding narrative text In order to train our proposed open-ended visual storytelling as inputs. At training time, this allows us to substitute the model, we construct a large-scale dataset, termed as Sto- original story with more accurate and descriptive captions. rySalon. The dataset contains videos and E-books with di- verse characters, storylines, and artistic styles. Specifically, Visual Frame Post-processing. In practice, we observe we download a large number of videos and subtitles from that book pages and borders in images can potentially inter- YouTube, by querying keywords related to story-telling for fere with our generative model by having story texts printed children, for instance, storytime. Additionally, we collect E- on them. To tackle this, we use an OCR detector to identify books (partially with corresponding audios available) from text regions in images and an image inpainting model [42] six open-source libraries which are all registered under the to fill in the text and headshot regions, resulting in more Creative Commons 4.0 International Attribution (CC BY precise image-text pairs that are suitable for model training. 4.0) license. In the following, we elaborate on the data pro- Discussion. After the three-step pipeline above, we obtain cessing pipeline and statistics of our collected dataset. our StorySalon dataset. As shown in Table 1, our dataset has Visual Frame Extraction. We extract keyframes from the nearly 160K animation-style images in total with an average videos, along with the corresponding subtitles and their length of 14 frames per story, which is conducive to build- timestamps. To remove duplicate frames, we extract ViT ing long-range semantic correspondence. Finally, we query features for each frame using pre-trained DINO [32]. For MiniGPT-4 [59] about the main character category of each the image groups with high similarity scores, we only keep image in our dataset, like Dog and Cat, then count the cat- one of each. Then, we use YOLOv7 [50] to segment and egories and filter out those appear less than 3 times. Com- remove real-person frames and headshots, as they often cor- pared with previous datasets with less than 10 characters, respond to the story-teller and are unrelated to the content our dataset comprises hundreds of character categories, and of the storybook. Similarly, we extract images from the even more character instances, which provides a data basis 5

条件:本地全文 arXiv:2306.00973v3,StorySalon visual-language alignment;条件及比较对象见陈述

指标:故事旁白与可见画面有语义差距,数据管线还生成更贴近画面的描述用于训练。因此学到的是视觉呈现与上下文延续,不是对所有隐含情节和角色心理的理解。训练素材以故事书动画风格为主,也不能直接当作写实电影全域泛化的证明。

原文第 5 页 ↗PDF p.5, StorySalon visual-language alignment

只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。

读完,试着回答

论文研究什么问题?

输入是分步故事描述,也可以提供人物参考图;输出是一串图像,而非自然运动视频。以往固定动画角色的数据限制了泛化,本文希望通过前面图文上下文支持不同故事和人物。生成每一张时都带上前序图文,而不只带上一句人物外貌描述。

已有方法缺口在哪里?

输入是分步故事描述,也可以提供人物参考图;输出是一串图像,而非自然运动视频。

输入是什么?

系统给先前图像加少量噪声,在原扩散网络里做一步去噪并提取多层特征,作为视觉上下文。

机制是什么?

系统给先前图像加少量噪声,在原扩散网络里做一步去噪并提取多层特征,作为视觉上下文。较远的图像加更多噪声,用以编码时间距离;当前文字和历史视觉分别经过交叉注意力再融合。训练先建立单帧能力,再训练新增图像注意力,推理时才逐张自回归生成。

输出是什么?

本文的StoryGen按顺序生成故事插画,把已生成的图文作为下一张的条件,并用更丰富的StorySalon数据训练。它改善人物与画风延续,但图文匹配并非每个指标都更高;“无需为新人物微调”不等于整个模型无需训练。

适用边界是什么?

故事旁白与可见画面有语义差距,数据管线还生成更贴近画面的描述用于训练。因此学到的是视觉呈现与上下文延续,不是对所有隐含情节和角色心理的理解。训练素材以故事书动画风格为主,也不能直接当作写实电影全域泛化的证明。

还有什么未解决?

核查建议:这说明代理指标与人类比较关注的侧面不同,不该删除不利指标来让结论看起来整齐,该边界在替换底座与评价协议后是否保持?

技术附录

问题与已有方法

问题设定

输入是分步故事描述,也可以提供人物参考图;输出是一串图像,而非自然运动视频。以往固定动画角色的数据限制了泛化,本文希望通过前面图文上下文支持不同故事和人物。生成每一张时都带上前序图文,而不只带上一句人物外貌描述。 输入是分步故事描述,也可以提供人物参考图;输出是一串图像,而非自然运动视频。

方法与组成

核心思路

系统给先前图像加少量噪声,在原扩散网络里做一步去噪并提取多层特征,作为视觉上下文。较远的图像加更多噪声,用以编码时间距离;当前文字和历史视觉分别经过交叉注意力再融合。训练先建立单帧能力,再训练新增图像注意力,推理时才逐张自回归生成。

主要发现

  • 标题

    主要比较

    证据

    StorySalon测试中StoryGen的FID为33.90,微调SDM为42.01;图像相似性CLIP-I为0.7467与0.6970。这支持视觉上下文有助于分布质量与图像延续,但并非自动证明故事逻辑合理。FID越低越好,相似性越高越好,方向不能混淆。

    限制

    只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。

    原文定位

    PDF p.6, Table 2

  • 标题

    反例或对照

    证据

    文字相似性CLIP-T,StoryGen为0.2875,低于微调SDM的0.3005和Prompt-SDM的0.3225。另一方面,人类故事生成偏好占比本文67.14%,SDM为14.05%。这说明代理指标与人类比较关注的侧面不同,不该删除不利指标来让结论看起来整齐。

    限制

    只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。

    原文定位

    PDF p.6, Tables 2–3

概念定位

是什么

系统给先前图像加少量噪声,在原扩散网络里做一步去噪并提取多层特征,作为视觉上下文。较远的图像加更多噪声,用以编码时间距离;当前文字和历史视觉分别经过交叉注意力再融合。训练先建立单帧能力,再训练新增图像注意力,推理时才逐张自回归生成。

为什么重要

输入是分步故事描述,也可以提供人物参考图;输出是一串图像,而非自然运动视频。以往固定动画角色的数据限制了泛化,本文希望通过前面图文上下文支持不同故事和人物。生成每一张时都带上前序图文,而不只带上一句人物外貌描述。

图表导读

  • PDF 页

    6

    标题

    原文 PDF p.6 的图表

    解释

    已实际查看图像,核对本文使用的图表内容;展示案例与定量结果分别解释。

核心概念

  • 名称

    Intelligent Grimm / StoryGen

    解释

    系统给先前图像加少量噪声,在原扩散网络里做一步去噪并提取多层特征,作为视觉上下文。较远的图像加更多噪声,用以编码时间距离;当前文字和历史视觉分别经过交叉注意力再融合。训练先建立单帧能力,再训练新增图像注意力,推理时才逐张自回归生成。

    原文定位

    PDF p.4, Section 3.2

    证据来源

    paper_supported

章节阅读

  • 页码

    1

    作用

    identity

    关键问题

    标题作者与版本

    状态

    read

  • 页码

    3

    作用

    method

    关键问题

    Figure 2; Section 3.1

    状态

    read

  • 页码

    4

    作用

    method

    关键问题

    Section 3.2

    状态

    read

  • 页码

    6

    作用

    method

    关键问题

    Section 5.1

    状态

    read

  • 页码

    6

    作用

    result

    关键问题

    Table 2

    状态

    read

  • 页码

    6

    作用

    result

    关键问题

    Tables 2–3

    状态

    read

  • 页码

    5

    作用

    limitation

    关键问题

    StorySalon visual-language alignment

    状态

    read

批判性阅读

最低充分结论

本文的StoryGen按顺序生成故事插画,把已生成的图文作为下一张的条件,并用更丰富的StorySalon数据训练。它改善人物与画风延续,但图文匹配并非每个指标都更高;“无需为新人物微调”不等于整个模型无需训练。

继续阅读

相关论文

同一研究空间