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

PAPER / 2025

StoryGPT-V:让模型认清故事里的“他”再画下一幅图

StoryGPT-V: Large Language Models as Consistent Story Visualizers

Xiaoqian Shen · Mohamed Elhoseiny

CVPR · 2025

30 秒读懂

第二阶段输入交替排列的已有图像与文字,把视觉特征映射为语言模型可读的token,再让模型输出特殊图像token。这些隐藏表示经映射器对齐到人物感知扩散模型的条件空间,由后者生成图像。关键是保留“当前代词与此前哪位人物有关”的上下文,不是先把代词简单替换成名字就结束。

故事描述经常从人名变成“他”“他们”。只看当前句子的文生图模型,可能画错人物或换掉外貌。方法先训练人物感知扩散模型,把人物参考图的视觉特征融合进对应名字的文本表示,并用人物分割掩码约束注意力,让名字主要控制那个人物所在的区域。

先说结论

StoryGPT-V把文本故事画成连续图像,重点解决代词指向谁、同一人物下一张是否还长一样。语言模型负责利用图文上下文,扩散模型负责成像,两者需要训练对齐;它不是纯提示词流程,也不是生成连续运动视频。 (原文:PDF p.3, Section 3;PDF p.4, Figure 2; Section 3.3;PDF p.6, Section 4.2; Tables 1–2;PDF p.6, Table 1;PDF p.7, Table 3;PDF p.8, Table 5)

论文为什么要做这件事

故事描述经常从人名变成“他”“他们”。只看当前句子的文生图模型,可能画错人物或换掉外貌。方法先训练人物感知扩散模型,把人物参考图的视觉特征融合进对应名字的文本表示,并用人物分割掩码约束注意力,让名字主要控制那个人物所在的区域。 (原文:PDF p.3, Section 3)

核心方法到底怎么运转

第二阶段输入交替排列的已有图像与文字,把视觉特征映射为语言模型可读的token,再让模型输出特殊图像token。这些隐藏表示经映射器对齐到人物感知扩散模型的条件空间,由后者生成图像。关键是保留“当前代词与此前哪位人物有关”的上下文,不是先把代词简单替换成名字就结束。 (原文:PDF p.4, Figure 2; Section 3.3)

解释性例子:第一句“小明把书递给小红”,下一句“她走进房间”。模型需要从前面的图文确定“她”是小红,再以其外貌生成房间里的画面,而不是随机挑一个人物。

实验怎样检验这个方法

实验使用FlintStonesSV和PororoSV,并区分含指代描述与原始描述。人物识别、背景识别、图像分布距离及图文匹配各测一个侧面。表格上半部分的Char-LDM与下半部分完整StoryGPT-V不是同一输入任务,不能把两部分数值直接当成一次消融。 (原文:PDF p.6, Section 4.2; Tables 1–2)

结果说明了什么

含指代的FlintStonesSV中,StoryGPT-V人物准确率87.96、FID为21.71,Story-LDM分别77.23与36.34。人物识别越高越好,FID越低越好;这些不是人类对故事趣味性的评分,只说明图像与人物等视觉指标有所改善。 (原文:PDF p.6, Table 1)

第一阶段消融中,使用参考图的默认设置人物准确率90.36,不用图为89.73;但FID为21.13,对方20.96,反而略差。作者说明推理时网上获得的参考图可能偏离训练分布。人物更准确不意味着每项图像质量指标都同步提高。 (原文:PDF p.7, Table 3)

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

长序列并非质量不衰减:StoryGPT-V在四幅图设置人物准确率85.44、FID为27.08,到五十幅图分别80.92、61.23。它比对照更能扩展长度,但仍会退化;这里的“帧”是故事图像数量,不能解释为高帧率电影时长。 (原文:PDF p.8, Table 5)

代码从哪里读

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

读完后记住这三件事

利用图像上下文解析人物指代;把语言模型输出接到图像生成器;更长插画序列仍有明显退化。 (原文:PDF p.3, Section 3;PDF p.4, Figure 2; Section 3.3;PDF p.6, Section 4.2; Tables 1–2;PDF p.6, Table 1;PDF p.7, Table 3;PDF p.8, Table 5)

原文证据

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

方法

研究问题

原文摘录
to-image model to promote generalizability to unseen vi- tion [7, 45, 53, 55]. sual attributes of the generated story. These methods do not consider ambiguous references in text descriptions. Story- 3.2. Character-aware LDM with attention control LDM [38] first introduced reference resolution in story vi- sualization tasks and proposed an autoregressive diffusion- Integrate visual features with text conditions. To achieve based framework with a memory-attention module to re- accurate and high-quality characters in story visualization, solve ambiguous references. Nevertheless, it struggled with we augment text descriptions with visual features of corre- accurately resolving references and was memory-intensive, sponding characters and guide the attention of text condi- as it required retaining all previous context in pixel space. tions to focus more on corresponding character synthesis. In our work, we employ a powerful causal inference LLM Given a text description S, suppose there are K charac- for reference resolution, and it efficiently maintains context ters that should be generated in image I, images of those by mapping visual features into several token embeddings characters {Ic1 , ..., IcK }, a list of token indices indicating as LLM inputs rather than operating in latent pixel space. each character name located in the description, denoted as {i1c , ...iK c }. Inspired by [25, 53, 55], we first utilize CLIP [36] text encoder ψ and image encoder ϕ to obtain text 3. Methods embedding and visual features of the characters appear in The objective of story visualization is to transform a tex- the image respectively. Then, we augment the text embed- tual narrative, composed of a series of N descriptions ding if the token represents a character name. More specif- S1 , ...SN , into a sequence of corresponding visual frames ically, we concatenate the token embedding and the visual I1 , ..., IN that illustrate the story. We’ve developed a two- features of the corresponding character and feed them into stage method aimed at generating temporally consistent vi- an MLP to obtain the augmented text embedding. Each aug- sual stories with accurate and high-quality characters. First, mented token embedding in the augmented embedding c is we augment text representation with characters’ visual fea- formulated as below: tures and refine a character-aware LDM [41] (Char-LDM) ck = MLP concat (ψ(S[ikc ]), ϕ(Ick )  towards high-quality character generation. This is achieved (1) by directing the cross-attention maps of specific tokens as- sociated with the corresponding characters, using charac- where ikc refers to the index of the text token for charac- ter segmentation mask supervision (Section 3.2). Then, we ter k, and Ick the image corresponding to character k. The leverage the reasoning ability of LLM to resolve ambiguous embeddings for tokens in c that are unrelated to the charac- references by aligning the output of LLM with Char-LDM ter remain identical to the vanilla CLIP token embeddings. input space for temporal consistent story visualization (Sec- The enhanced embedding c is then employed as supervision tion 3.3). for the second-stage training, which will be further detailed in Section 3.3, where c1 , ...cN are the corresponding aug- 3.1. Preliminaries mented embeddings for S1 , ..., SN . Cross-attention in text-conditioned Diffusion Models. In Controlling attention of text tokens. Previous work [13] diffusion models [15, 46], each diffusion step t involves pre- has demonstrated that the visual characteristics of generated dicting noise ϵ from the noise code zt ∈ R(h×w)×dv con- images are influenced by the intricate interplay between la- ditioned on text embedding ψ(S) ∈ RL×dc via U-shaped tent pixels and text embedding through the diffusion pro- Network [42], where ψ is the text encoder, h and w are cess of LDM [41]. However, in vanilla LDM [41], a single the latent spatial dimensions and L is the sequence length. latent pixel can unrestrictedly engage with all text tokens. Within U-Net, the cross-attention layer accepts the spa- Therefore, we introduce a constraint to refine this behav- tial latent code z and the text embeddings ψ(S) as inputs, ior and strengthen the impact of the token representing the then projects them into Q = W q z, K = W k ψ(S) and character’s name on certain pixels in the denoising process, ′ ′ V = W v ψ(S), where W q ∈ Rdv ×d , W k , W v ∈ Rdc ×d . as illustrated in Figure 2 (a). First, we obtain an offline T The attention scores is computed as A = Softmax( QK √ )∈ segmentation mask of corresponding characters denoted as d′ {M1 , ...MK } as supervision signals via SAM [17]. We then R(h×w)×L , where A[i, j, k] represents the attention of k-th encourage the cross-attention map Ak for each character k text token to the (i, j) latent pixel. In this context, each at the token index position ikc , to align with the binary seg- entry A[i, j, k] within the cross-attention map A quanti- mentation mask Mk , whereas diverging from irrelevant re- fies the magnitude of information propagation from the k- gions M̄k , formulated as follows: th text token to the latent pixel at position (i, j). This feature of the interaction between semantic representation K and latent pixels is harnessed in various tasks such as im- 1 X − Lreg = (Ak − A+ k) (2) age editing [13, 32], video editing [24], and fast adapta- K k=1 3

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

指标:故事描述经常从人名变成“他”“他们”。只看当前句子的文生图模型,可能画错人物或换掉外貌。方法先训练人物感知扩散模型,把人物参考图的视觉特征融合进对应名字的文本表示,并用人物分割掩码约束注意力,让名字主要控制那个人物所在的区域。

原文第 3 页 ↗PDF p.3, Section 3

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

方法

核心机制

原文摘录
'() 𝐼! Char-LDM Image encoder ❄ 𝑐! Fuse emb Gen emb Fred and Barney are having … Fred and Wilma are Fuse emb LDM Mapper 🔥 Char-LDM 𝑆!$ Fred and Wilma are [IMG# ] [IMG% ]...[IMG& ] 🔥 Cross-a1en2on maps Large Language Model 𝑊!"# 🔥 … LLM Mapper 🔥 Fred and Wilma … They are … Segmenta2on masks 𝐼!"# 𝑆!"# 𝑆! context (a) Stage-1: Char-LDM with cross-aCenion control (b) Stage-2: Aligning LLM for reference resolu9on Figure 2. (a) In the first stage, a fused embedding is created by integrating character visuals with text embeddings, serving as the Char- LDM’s conditional input, and the cross-attention maps of Char-LDM will be guided by corresponding character segmentation mask for accurate and high-quality character generation (Section 3.2). (b) In the second stage, the LLM takes the interleaved image and text context as input and generates R [IMG] tokens. These tokens are then projected by LDM Mapper into an intermediate output, which will be encouraged to align with fused embedding as Char-LDM’s input. The figure intuitively shows how the character-augmented fused embedding and the casual language modeling aid LLM for reference resolution (Section 3.3). where ing accurate inference. In contrast, LLMs can adeptly infer the intended character to which the ambiguous text refers. Ak ⊙ M̄k A ⊙ Mk A− k = P , A+ k = Pk (3) Therefore, to address this issue, we harness the formidable i,j ( M̄ k )ij i,j (Mk )ij reasoning capabilities of LLM to disambiguate such refer- ences. where K is the number of characters to be generated in the image, ikc is the index of text token representing char- 3.3. Aligning LLM for reference resolution acter k and ⊙ is the Hadamard product. By reducing the loss, it increases the attention of character tokens to the rel- To enable an LLM to autoregressively generate images con- evant pixels of their respective characters, while reducing ditioned on prior context and resolve ambiguous references, their attention to irrelevant areas. Moreover, as the token the model must be capable of (i) processing images; (ii) embeddings are enriched with the visual features of the cor- producing images; and (iii) implicitly deducing the sub- responding character, this attention control serves to deepen ject of reference. The model could understand the im- the connection between the augmented semantic space and age by learning a linear mapping from the visual feature latent pixel denoising, which can consequently enhance the to the LLM input space, and generate images by align- quality of synthesized characters. ing the hidden states with conditional input required by Our first stage Char-LDM focuses solely on the quality LDM, which is the fused embedding encoded by first-stage of image generation grounded on a single caption. Yet, Char-LDM’s text and visual encoder. It integrates the vi- there remain challenges that surpass the abilities of text- sual features of characters into the text embedding. This to-image generators in visualizing a sequence of stories. character-augmented embedding, along with the causal lan- Firstly, story visualization demands character and back- guage modeling (CLM) [33, 34, 50] will direct the LLM to ground consistency, an aspect not covered by our first-stage implicitly deduce and generate the correct character for the enhancements. Moreover, the inherent nature of lengthy de- referential input, as depicted in Figure 2 (b). scriptions includes referential terms like he, she, or they, More specifically, the LLM input consists of in- which presents a significant challenge for LDM in achiev- terleaved co-referential text descriptions and story 4

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

指标:第二阶段输入交替排列的已有图像与文字,把视觉特征映射为语言模型可读的token,再让模型输出特殊图像token。这些隐藏表示经映射器对齐到人物感知扩散模型的条件空间,由后者生成图像。关键是保留“当前代词与此前哪位人物有关”的上下文,不是先把代词简单替换成名字就结束。

原文第 4 页 ↗PDF p.4, Figure 2; Section 3.3

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

方法

实验设置

原文摘录
Models Ref text Char-Acc (↑) Char-F1 (↑) BG-Acc (↑) BG-F1 (↑) FID (↓) BLEU4 (↑) CIDEr (↑) † StoryDALL-E [28] 69.49 83.35 48.46 55.24 44.24 0.4666 1.4473 LDM [41] 85.66 93.41 54.85 62.04 32.05 0.5230 1.8048 Story-LDM [38] × 82.43 91.86 55.3 61.58 36.29 0.4656 1.4335 Char-LDM (Ours) 90.36 95.76 58.36 63.92 21.13 0.5260 1.8361 StoryDALL-E† [28] 61.83 78.36 48.10 54.92 44.66 0.4460 1.3373 LDM [41] 75.37 87.54 52.57 58.41 32.36 0.4911 1.5103 Story-LDM [38] ✓ 77.23 88.26 54.97 60.99 36.34 0.4585 1.4004 StoryGPT-V (Ours) 87.96 94.17 56.01 61.07 21.71 0.5070 1.6607 Table 1. Main experiments on FlintStonesSV [12]. The top portion is evaluated on the dataset w/o extended referential text. The bottom half displays the results on the extended dataset with co-reference. † StoryDALL-E [28] takes the source frame as additional input. inference time robustness and flexibility, we adopt a train- Models Char-Acc (↑) Char-F1 (↑) FID (↓) BLEU4 (↑) CIDEr (↑) StoryDALL-E† [28] 21.03 50.56 40.39 0.2295 0.3666 ing strategy that includes 10% unconditional training, i.e., LDM [41] 27.81 57.02 28.98 0.2560 0.5122 classifier-free guidance [14], 10% text-only training, and Story-LDM [38] StoryGPT-V (Ours) 29.14 36.06 57.56 62.70 26.64 19.56 0.2420 0.2586 0.4581 0.5279 80% character-augmented fuse training (Section 3.2). For the second stage training, we use OPT-6.7B3 model Table 2. Performance comparison on PororoSV [22] with co- as the LLM backbone. To expedite the second stage align- referenced descriptions. † StoryDALL-E [28] takes the source ment training, we first pre-compute non-referential fused frame as additional input. embeddings residing in the input space of the first-stage Char-LDM. We map visual features into m = 4 token em- beddings as LLM input, set the max sequence length as 160 despite incorporating an attention-memory module to han- and the number of additional [IMG] tokens represents for dle context, fails to produce accurate characters in some LLM’s visual output as R = 8, batch size as 64 training frames. In comparison, our model excels at generating for 20k steps. Please refer to the supplementary for more frames with pleasing visuals, accurate characters, and main- details. taining temporal consistency in the background scenes. Human Evaluation. In addition, we use Mechanical Turk 4.2. Visual Story Generation to assess the quality of 100 stories produced by our meth- ods or Story-LDM [38] on FlintStonesSV [12]. Given a Quantitative Results. (i) Generation with original de- pair of stories generated by Story-LDM [38] and our model, scriptions. The upper half of Table 1 shows the compar- MTurkers are asked to decide which generated four-frame ison results on original FlintStonesSV [12] without ref- story is better w.r.t visual quality, text-image alignment, erential text descriptions. Our first-stage Char-LDM ex- character accuracy, and temporal consistency. Each pair hibits superior performance in generating accurate charac- is evaluated by 3 unique workers. In Figure 4, our model ters (Char-Acc, Char-F1) and background scenes (BG-Acc, demonstrates significantly better story visualization quality BG-F1), achieving high fidelity (FID), and exhibiting bet- with accurate and temporally coherent synthesis. ter alignment with given text descriptions (BLEU4 [31], CIDEr [51]). (ii) Generation with co-referenced descrip- 4.3. Ablation Studies tions. Table 1 (bottom) and Table 2 show the results on extended FlintStonesSV [12] and PororoSV [22] with co- First stage ablation. We conducted an ablation study for referential text descriptions [38] respectively. By harness- the first stage and presented results in Table 3. w/o Lreg ing the merit of reasoning and comprehension abilities of indicates that we disabled the Lreg loss (Equation 3.2), i.e., LLM, our model substantially boosts performance in refer- the model underwent training without the influence of seg- ence resolution compared to baselines, while maintaining a mentation masks to direct the cross-attention maps. w/o strong text-image alignment grounded in the provided text augmented text signifies that the model’s conditional in- descriptions. put during its training phase was the standard CLIP [36] Qualitative Results. Figure 3 demonstrates qualitative text embedding, rather than the fused embedding incorpo- comparison on FlintStonesSV [12] and PororoSV [22] with rating the character’s visual attributes as discussed in Sec- co-reference descriptions. LDM [41] could generate high- tion 3.2. freeze vis denotes the visual encoder remained quality images but struggles to produce correct characters in frozen during training. Unless specified, the last two lay- the presence of reference in the captions. Story-LDM [38], ers of the visual encoder are made adjustable. The final two rows employ our default training strategy and the only 3 https://huggingface.co/facebook/opt-6.7b distinction lies in the inference phase. Default (w/o img) 6

条件:本地全文 arXiv:2312.02252v3,Section 4.2; Tables 1–2;条件及比较对象见陈述

指标:实验使用FlintStonesSV和PororoSV,并区分含指代描述与原始描述。人物识别、背景识别、图像分布距离及图文匹配各测一个侧面。表格上半部分的Char-LDM与下半部分完整StoryGPT-V不是同一输入任务,不能把两部分数值直接当成一次消融。

原文第 6 页 ↗PDF p.6, Section 4.2; Tables 1–2

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

结果

主要比较

原文摘录
Models Ref text Char-Acc (↑) Char-F1 (↑) BG-Acc (↑) BG-F1 (↑) FID (↓) BLEU4 (↑) CIDEr (↑) † StoryDALL-E [28] 69.49 83.35 48.46 55.24 44.24 0.4666 1.4473 LDM [41] 85.66 93.41 54.85 62.04 32.05 0.5230 1.8048 Story-LDM [38] × 82.43 91.86 55.3 61.58 36.29 0.4656 1.4335 Char-LDM (Ours) 90.36 95.76 58.36 63.92 21.13 0.5260 1.8361 StoryDALL-E† [28] 61.83 78.36 48.10 54.92 44.66 0.4460 1.3373 LDM [41] 75.37 87.54 52.57 58.41 32.36 0.4911 1.5103 Story-LDM [38] ✓ 77.23 88.26 54.97 60.99 36.34 0.4585 1.4004 StoryGPT-V (Ours) 87.96 94.17 56.01 61.07 21.71 0.5070 1.6607 Table 1. Main experiments on FlintStonesSV [12]. The top portion is evaluated on the dataset w/o extended referential text. The bottom half displays the results on the extended dataset with co-reference. † StoryDALL-E [28] takes the source frame as additional input. inference time robustness and flexibility, we adopt a train- Models Char-Acc (↑) Char-F1 (↑) FID (↓) BLEU4 (↑) CIDEr (↑) StoryDALL-E† [28] 21.03 50.56 40.39 0.2295 0.3666 ing strategy that includes 10% unconditional training, i.e., LDM [41] 27.81 57.02 28.98 0.2560 0.5122 classifier-free guidance [14], 10% text-only training, and Story-LDM [38] StoryGPT-V (Ours) 29.14 36.06 57.56 62.70 26.64 19.56 0.2420 0.2586 0.4581 0.5279 80% character-augmented fuse training (Section 3.2). For the second stage training, we use OPT-6.7B3 model Table 2. Performance comparison on PororoSV [22] with co- as the LLM backbone. To expedite the second stage align- referenced descriptions. † StoryDALL-E [28] takes the source ment training, we first pre-compute non-referential fused frame as additional input. embeddings residing in the input space of the first-stage Char-LDM. We map visual features into m = 4 token em- beddings as LLM input, set the max sequence length as 160 despite incorporating an attention-memory module to han- and the number of additional [IMG] tokens represents for dle context, fails to produce accurate characters in some LLM’s visual output as R = 8, batch size as 64 training frames. In comparison, our model excels at generating for 20k steps. Please refer to the supplementary for more frames with pleasing visuals, accurate characters, and main- details. taining temporal consistency in the background scenes. Human Evaluation. In addition, we use Mechanical Turk 4.2. Visual Story Generation to assess the quality of 100 stories produced by our meth- ods or Story-LDM [38] on FlintStonesSV [12]. Given a Quantitative Results. (i) Generation with original de- pair of stories generated by Story-LDM [38] and our model, scriptions. The upper half of Table 1 shows the compar- MTurkers are asked to decide which generated four-frame ison results on original FlintStonesSV [12] without ref- story is better w.r.t visual quality, text-image alignment, erential text descriptions. Our first-stage Char-LDM ex- character accuracy, and temporal consistency. Each pair hibits superior performance in generating accurate charac- is evaluated by 3 unique workers. In Figure 4, our model ters (Char-Acc, Char-F1) and background scenes (BG-Acc, demonstrates significantly better story visualization quality BG-F1), achieving high fidelity (FID), and exhibiting bet- with accurate and temporally coherent synthesis. ter alignment with given text descriptions (BLEU4 [31], CIDEr [51]). (ii) Generation with co-referenced descrip- 4.3. Ablation Studies tions. Table 1 (bottom) and Table 2 show the results on extended FlintStonesSV [12] and PororoSV [22] with co- First stage ablation. We conducted an ablation study for referential text descriptions [38] respectively. By harness- the first stage and presented results in Table 3. w/o Lreg ing the merit of reasoning and comprehension abilities of indicates that we disabled the Lreg loss (Equation 3.2), i.e., LLM, our model substantially boosts performance in refer- the model underwent training without the influence of seg- ence resolution compared to baselines, while maintaining a mentation masks to direct the cross-attention maps. w/o strong text-image alignment grounded in the provided text augmented text signifies that the model’s conditional in- descriptions. put during its training phase was the standard CLIP [36] Qualitative Results. Figure 3 demonstrates qualitative text embedding, rather than the fused embedding incorpo- comparison on FlintStonesSV [12] and PororoSV [22] with rating the character’s visual attributes as discussed in Sec- co-reference descriptions. LDM [41] could generate high- tion 3.2. freeze vis denotes the visual encoder remained quality images but struggles to produce correct characters in frozen during training. Unless specified, the last two lay- the presence of reference in the captions. Story-LDM [38], ers of the visual encoder are made adjustable. The final two rows employ our default training strategy and the only 3 https://huggingface.co/facebook/opt-6.7b distinction lies in the inference phase. Default (w/o img) 6

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

指标:含指代的FlintStonesSV中,StoryGPT-V人物准确率87.96、FID为21.71,Story-LDM分别77.23与36.34。人物识别越高越好,FID越低越好;这些不是人类对故事趣味性的评分,只说明图像与人物等视觉指标有所改善。

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

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

结果

反例或对照

原文摘录
• Fred is standing in the living room while holding the phone and talking. • Poby is seated beside a canvas. He holds a red pencil in his hand. There are • He is in a room. He picks up the phone and then speaks into the phone. many pictures on the wall. • He stands next to a small table in the room. He holds the receiver for a phone • He is seated beside a canvas. He holds a red pencil in his hand. He lowers while talking to someone. He then hangs up the phone when he finishes the down his arm and makes a big smile. There are many pictures on the wall. call. • Harry is in a house. Harry is seated on a green bed. • Fred and Barney are standing in a room. There is a telephone next to Fred. • He comes out of the house. He looks around the room. In the middle of the Barney is talking with something in his hand. room, there is a wooden table. There is an apple on the table. Ground Truth LDM Story-LDM Ours Figure 3. Qualitative comparison on FlintStonesSV [12] (left) and PororoSV [22] (right) with co-reference descriptions. StoryGPT-V (Ours) Story-LDM ference, the reference images for corresponding characters 100% in Default (w/ img) are obtained online, introducing a slight deviation from the original distribution. 75% Models Char-Acc (↑) Char-F1 (↑) BG-Acc (↑) BG-F1 (↑) FID (↓) 50% w/o Lreg 88.86 95.21 55.50 60.77 23.51 w/o augmented text 87.45 94.70 57.67 63.04 21.27 freeze vis 88.67 95.14 56.58 62.46 22.01 Default (w/o img) 89.73 95.56 56.18 62.85 20.96 25% Default (w/ img) 90.36 95.76 58.36 63.92 21.13 0% Table 3. Ablation study for the first stage finetuning LDM with Visual Quality Text-Image Character Temporal Alignment Accuracy Consistency cross-attention control. Figure 4. Human evaluation results on FlintStonesSV [12] w.r.t Second stage ablation. As shown in Table 4, we conducted visual quality, text-image alignment, character accuracy and tem- an ablation study on (i) whether to align with the text em- poral consistency. bedding (Embtext ) or the fused embedding (Embf use ) of our first stage model; (ii) whether the model’s input con- sists of a sequence of captions (Caption-) or utilizes inter- takes vanilla CLIP [36] text embedding as input condition, leaved training with both images and captions (Interleave-) whereas Default (w/ img) employs the fused embedding. As (Equation 3.3). Experimental results shown in Table 4 in- indicated by Table 3, integrating character visual features dicate that image-text interleave training can significantly during training significantly enhances the generation per- enhance performance. It is intuitive that taking both im- formance and the additional cross-attention control propels ages and corresponding captions as input provides a more the model to achieve its peak on accurate character genera- profound comprehension of the characters and their inter- tion. Note that the FID score of Default (w/ img) is slightly actions within the image than when provided with sole cap- higher than Default (w/o img). This is because, during in- tions. This, in turn, amplifies its generative capabilities. 7

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

指标:第一阶段消融中,使用参考图的默认设置人物准确率90.36,不用图为89.73;但FID为21.13,对方20.96,反而略差。作者说明推理时网上获得的参考图可能偏离训练分布。人物更准确不意味着每项图像质量指标都同步提高。

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

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

限制

适用边界

原文摘录
Models Char-Acc (↑) Char-F1 (↑) BG-Acc (↑) BG-F1 (↑) FID (↓) Caption-Embtext 69.70 83.37 52.67 58.78 21.32 Caption-Embf use 71.77 84.81 52.57 58.04 24.79 Interleave-Embtext 86.10 93.46 54.92 60.15 21.30 Interleave-Embf use (default) 87.96 94.17 56.01 61.07 21.71 Table 4. Second stage training strategy ablation. Input only cap- tion or interleaved text and image. The output of LLM is aligned with our Char-LDM text embedding (Embtext ) or character- augmented fused embedding (Embf use ). Fred and Barney are standing in the room. Fred is talking to Barney. They are both wearing Fred Barney Fred Barney Figure 6. Compare inference speed and GPU memory consump- hats. tion between our method and Story-LDM [38]. Story-LDM en- counters the 80GB GPU limit when generating sequences exceed- LDM ing 40 frames. ated characters and FID score for long story visualizations Char-LDM (Ours) between our model and Story-LDM [38]. The performance of Story-LDM [38] significantly decreases when generat- ing longer stories and reaches the memory limit before 50 Figure 5. Visualization of cross attention maps of corresponding frames. In contrast, by utilizing the capacity of LLM to character tokens. retain extensive context, our model upholds accurate char- acter consistency in visualizing lengthy narratives with co- referential text descriptions. 4.4. Analysis Models Metric 4 10 20 40 50 We further investigate the impact of first-stage finetuning Char-Acc (↑) 77.23 74.84 69.01 63.40 N/A with cross-attention control by visualizing averaged cross- Story-LDM [38] FID (↓) 36.34 48.92 53.32 60.33 N/A attention maps in U-Net latent pixel space and interpolat- StoryGPT-V (Ours) Char-Acc (↑) 85.44 84.63 82.86 81.04 80.92 FID (↓) 27.08 38.91 42.60 48.37 61.23 ing them to match the size of the generated images. As illustrated in Figure 5, vanilla LDM (top) finetune on Flint- Table 5. Longer-frames story visualization comparison on Flint- StonesSV [12] w/o Lreg (Section 3.2) fails to accurately fo- StonesSV [12] with referential text. Story-LDM reaches maxi- cus on the corresponding characters for character tokens. mum GPU capacity when generating 50 frames. Our model (bottom), which incorporates cross-attention guidance, is able to precisely direct attention to generated Our design could be easily adapted to any LLMs. In characters given corresponding character tokens. our work, we experimented with OPT-6.7b4 and Llama2- 4.5. Properties 7b-chat5 models. Our findings, as illustrated in Table 9, indicate an improvement when changing from OPT [58] to Our model could generate longer stories featuring accurate a more powerful model, Llama2 [48]. characters, at a faster speed and with lower computational consumption. Our architecture allows our model to retain Models OPT [58] # Params 6.7b Char-Acc (↑) 87.96 Char-F1 (↑) 94.17 BG-Acc (↑) 56.01 BG-F1 (↑) 61.07 FID (↓) 21.71 BLEU4 (↑) 0.5070 CIDEr (↑) 1.6607 an extensive context requiring minimal computational re- Llama2 [48] 7b 89.08 95.07 57.29 62.62 21.56 0.5169 1.7516 sources by efficiently mapping visual features into tokens Table 6. Performance on FlintstonesSV [12] dataset with referen- instead of operating in pixel space. Figure 6 shows the tial text using different LLMs. comparison between our model and Story-LDM [38] w.r.t GPU memory consumption and inference speed for longer- frames story generation. Our model is capable of producing Our model, StoryGPT-V, is capable for multi-model gen- sequences exceeding 50 frames with low memory usage, eration. Owing to StoryGPT-V design leveraging the ad- whereas Story-LDM [38] encounters GPU memory limita- vanced capabilities of Large Language Models (LLMs), it tions (80G A100) when generating 42 frames. This is be- exhibits a unique proficiency in that it can extend visual cause Story-LDM [38] requires the retention of the entire stories. StoryGPT-V is not merely limited to visualizing context, e.g., n frames in latent pixel space (n × h × w × d), stories based on provided textual descriptions. Unlike ex- whereas our model processes visual features as four token isting models, it also possesses the innovative capacity to embedding (n × 4 × d) with the same dimensions as the text 4 https://huggingface.co/facebook/opt-6.7b tokens in LLM. Table 5 compares the accuracy of gener- 5 https://huggingface.co/meta-llama/Llama-2-7b-chat 8

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

指标:长序列并非质量不衰减:StoryGPT-V在四幅图设置人物准确率85.44、FID为27.08,到五十幅图分别80.92、61.23。它比对照更能扩展长度,但仍会退化;这里的“帧”是故事图像数量,不能解释为高帧率电影时长。

原文第 8 页 ↗PDF p.8, Table 5

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

读完,试着回答

论文研究什么问题?

故事描述经常从人名变成“他”“他们”。只看当前句子的文生图模型,可能画错人物或换掉外貌。方法先训练人物感知扩散模型,把人物参考图的视觉特征融合进对应名字的文本表示,并用人物分割掩码约束注意力,让名字主要控制那个人物所在的区域。

已有方法缺口在哪里?

故事描述经常从人名变成“他”“他们”。

输入是什么?

第二阶段输入交替排列的已有图像与文字,把视觉特征映射为语言模型可读的token,再让模型输出特殊图像token。

机制是什么?

第二阶段输入交替排列的已有图像与文字,把视觉特征映射为语言模型可读的token,再让模型输出特殊图像token。这些隐藏表示经映射器对齐到人物感知扩散模型的条件空间,由后者生成图像。关键是保留“当前代词与此前哪位人物有关”的上下文,不是先把代词简单替换成名字就结束。

输出是什么?

StoryGPT-V把文本故事画成连续图像,重点解决代词指向谁、同一人物下一张是否还长一样。语言模型负责利用图文上下文,扩散模型负责成像,两者需要训练对齐;它不是纯提示词流程,也不是生成连续运动视频。

适用边界是什么?

长序列并非质量不衰减:StoryGPT-V在四幅图设置人物准确率85.44、FID为27.08,到五十幅图分别80.92、61.23。它比对照更能扩展长度,但仍会退化;这里的“帧”是故事图像数量,不能解释为高帧率电影时长。

还有什么未解决?

核查建议:人物更准确不意味着每项图像质量指标都同步提高,该边界在替换底座与评价协议后是否保持?

技术附录

问题与已有方法

问题设定

故事描述经常从人名变成“他”“他们”。只看当前句子的文生图模型,可能画错人物或换掉外貌。方法先训练人物感知扩散模型,把人物参考图的视觉特征融合进对应名字的文本表示,并用人物分割掩码约束注意力,让名字主要控制那个人物所在的区域。 故事描述经常从人名变成“他”“他们”。

方法与组成

核心思路

第二阶段输入交替排列的已有图像与文字,把视觉特征映射为语言模型可读的token,再让模型输出特殊图像token。这些隐藏表示经映射器对齐到人物感知扩散模型的条件空间,由后者生成图像。关键是保留“当前代词与此前哪位人物有关”的上下文,不是先把代词简单替换成名字就结束。

主要发现

  • 标题

    主要比较

    证据

    含指代的FlintStonesSV中,StoryGPT-V人物准确率87.96、FID为21.71,Story-LDM分别77.23与36.34。人物识别越高越好,FID越低越好;这些不是人类对故事趣味性的评分,只说明图像与人物等视觉指标有所改善。

    限制

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

    原文定位

    PDF p.6, Table 1

  • 标题

    反例或对照

    证据

    第一阶段消融中,使用参考图的默认设置人物准确率90.36,不用图为89.73;但FID为21.13,对方20.96,反而略差。作者说明推理时网上获得的参考图可能偏离训练分布。人物更准确不意味着每项图像质量指标都同步提高。

    限制

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

    原文定位

    PDF p.7, Table 3

概念定位

是什么

第二阶段输入交替排列的已有图像与文字,把视觉特征映射为语言模型可读的token,再让模型输出特殊图像token。这些隐藏表示经映射器对齐到人物感知扩散模型的条件空间,由后者生成图像。关键是保留“当前代词与此前哪位人物有关”的上下文,不是先把代词简单替换成名字就结束。

为什么重要

故事描述经常从人名变成“他”“他们”。只看当前句子的文生图模型,可能画错人物或换掉外貌。方法先训练人物感知扩散模型,把人物参考图的视觉特征融合进对应名字的文本表示,并用人物分割掩码约束注意力,让名字主要控制那个人物所在的区域。

图表导读

  • PDF 页

    6

    标题

    原文 PDF p.6 的图表

    解释

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

  • PDF 页

    7

    标题

    原文 PDF p.7 的图表

    解释

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

  • PDF 页

    8

    标题

    原文 PDF p.8 的图表

    解释

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

核心概念

  • 名称

    StoryGPT-V

    解释

    第二阶段输入交替排列的已有图像与文字,把视觉特征映射为语言模型可读的token,再让模型输出特殊图像token。这些隐藏表示经映射器对齐到人物感知扩散模型的条件空间,由后者生成图像。关键是保留“当前代词与此前哪位人物有关”的上下文,不是先把代词简单替换成名字就结束。

    原文定位

    PDF p.4, Figure 2; Section 3.3

    证据来源

    paper_supported

章节阅读

  • 页码

    1

    作用

    identity

    关键问题

    标题作者与版本

    状态

    read

  • 页码

    3

    作用

    method

    关键问题

    Section 3

    状态

    read

  • 页码

    4

    作用

    method

    关键问题

    Figure 2; Section 3.3

    状态

    read

  • 页码

    6

    作用

    method

    关键问题

    Section 4.2; Tables 1–2

    状态

    read

  • 页码

    6

    作用

    result

    关键问题

    Table 1

    状态

    read

  • 页码

    7

    作用

    result

    关键问题

    Table 3

    状态

    read

  • 页码

    8

    作用

    limitation

    关键问题

    Table 5

    状态

    read

批判性阅读

最低充分结论

StoryGPT-V把文本故事画成连续图像,重点解决代词指向谁、同一人物下一张是否还长一样。语言模型负责利用图文上下文,扩散模型负责成像,两者需要训练对齐;它不是纯提示词流程,也不是生成连续运动视频。

继续阅读

相关论文

同一研究空间