先说结论
MovieDreamer先预测关键帧视觉token,再用扩散模型渲染图像和视频。层次化设计改善了特定身份一致性指标,但不能把身份保持等同于完整剧情理解。 (原文:PDF p.2, Introduction;PDF p.4, Figure 2; Section 3.1–3.2;PDF p.5, Section 3.3–3.4;PDF p.7, experimental setup;PDF p.9, Table 1;PDF p.8, Evaluation metrics)
指标:MovieDreamer把长叙事视觉生成拆成两个层级:自回归模型预测关键帧的视觉表示,扩散模型把表示画成图像,再生成视频片段。它想同时利用序列模型的长程条件建模与扩散模型的视觉质量,而不是用一个模型一次性生成整部电影。
条件:仅限本地原始PDF的 Introduction;不同表格与实验不合并
PDF p.2, Introduction · PDF p.2
Published as a conference paper at ICLR 2025 Figure 1: The Titanic movie scenes generated by the proposed MovieDreamer. The generation is conditioned on the elaborate multimodal movie script. The original movie is unseen during training. Please refer to Figure 10, 11, 12, 13, 14 for more results. complex narrative structures and intricate plot progressions, which is hardly achieved by merely scaling the current approaches. Our aim is to push the boundaries of video generation beyond the limitations of short-duration content, enabling the creation of videos with rich, engaging storylines. In this paper, we introduce a hierarchical approach, dubbed MovieDreamer, that marries autoregres- sive modeling with diffusion-based rendering to achieve a novel synthesis of long-term coherence and short-term fidelity in visual storytelling. Our method leverages the strengths of autoregressive models to ensure global consistency in key movie elements like character identities and cinematic styles, even when the camera switches back and forth. The model predicts visual tokens for spe- cific local timespans, which are then decoded into keyframes and dynamically rendered into video sequences using diffusion rendering. Our method mirrors the traditional movie directing process, where intricate plots are decomposed into distinct, manageable scenes. Our method ensures that both the overarching narrative and the minute spatial-temporal details are maintained with high fidelity, thus enabling the automated production of movies that are both visually cohesive and contextually rich. To this end, we represent the whole movie using sparse keyframes and employ a diffusion autoen- coder to tokenize each keyframe into compact visual tokens. We train an autoregressive model to predict the sequence of visual tokens. This model is initialized from a pretrained large language mode, a 7B LLaMA model (Touvron et al., 2023), to leverage its rich world knowledge for better generalizability. As such, the model can be regarded as a multimodal model, which, rather than outputting the text, predicts the visual tokens with movie script conditioning. Three key designs need to be specially considered during the autoregressive training. One is to resort to various model and input perturbation techniques to combat the overfitting tendency since the high-quality movie training data is limited. Besides, we propose to condition the model using a novel multimodal script, which, for each keyframe, includes the rich description of the image style and scene elements, along with detailed text description of characters as well as their retrieved face embeddings. Such multimodal script facilitates narrative continuity across different segments of the movie while offering flexibility for character control. Moreover, we stochastically append a few reference frames of the same episode at the beginning of the input, and in this way, the model acquires in-context learning capability and can synthesize higher-quality personalized results. Such feature is particularly useful in generating coherent continuations of given movie episodes. We subsequently decode the predicted vision tokens using an image diffusion decoder and further render the image to the video clip using an image-to-video diffusion model. Importantly, we enhance 2
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:输入是包含人物、场景和情节的多模态脚本。扩散自编码器把关键帧压缩成视觉token,自回归模型依据脚本和历史预测后续token,扩散解码器再把token还原成关键帧。关键帧作为视频生成的锚点。因此脚本、视觉表示、关键帧与动态片段是不同阶段,不能把生成长度直接等同于剧情理解能力。
条件:仅限本地原始PDF的 Figure 2; Section 3.1–3.2;不同表格与实验不合并
PDF p.4, Figure 2; Section 3.1–3.2 · PDF p.4
Published as a conference paper at ICLR 2025 Diffusion Autoencoder (DAE) Inference Face Compressor Embedding CLIP SDXL Visual Tokens Noisy Latent Encoder Decoder Description Embedding Multimodal Scripts Example Auto-regressive Prediction Characters: - A man in a black suit with slicked-back hair. <Face ID> - A woman with a teal headdress Multimodal Scripts 3225 Multimodal Scripts 3226 and matching necklace.<Face ID> … … … Scene Elements: - Crowded event … - Elegant lighting … Multimodal Modeling with VLM Plot: - A man … a woman … are dancing … … … closely at a crowded event. DAE DAE DAE There is a subtle but palpable Decoder Decoder Decoder sense of connection or confrontation between the man and the woman, suggested by their direct gaze and proximity to each other amidst a crowded Image-to-video Gen Image-to-video Gen setting KeyFrame 3224 KeyFrame 3225 KeyFrame 3226 Figure 2: The framework of our MovieDreamer. Our autoregressive model takes multimodal scripts as input and predicts the tokens for keyframes. These tokens are then rendered into images, forming anchor frames for extended video generation. Our method ensures long-term coherence and short- term fidelity in visual storytelling with the character’s identity well preserved. mediocre results and are challenging to scale up. Story and video generation share intrinsic links, with overlapping solutions. Our method uniquely integrates these, offering a unified approach. 3 M ETHOD 3.1 OVERVIEW We propose a novel framework for generating extended video sequences that leverages the strengths of autoregressive models for long-term temporal consistency and diffusion models for high-quality image and video rendering. Our method takes multimodal scripts as conditions, predicts keyframe tokens in an autoregressive manner, renders the tokens into images and uses these images as anchors to produce full-length videos. Our method offers flexibility to support zero-shot generation along with few-shot scenarios in which the generation results are required to follow the given reference. We take special care of preserving the identity of the characters throughout the multimodal script design, autoregressive training, and diffusion rendering. We illustrate the overall framework in Figure 2. 3.2 K EYFRAME T OKENIZATION VIA D IFFUSION AUTOENCODER To create a concise yet faithful representation of images, we employ a diffusion autoencoder. Our encoder, E, contains a pretrained CLIP vision model (Radford et al., 2021) and a transformer-based token compressor, which encodes an image x into a reduced number of compressed tokens denoted by e. The decoder, D, is finetuned based on the pretrained SDXL and yields an 896×512 recon- structed image by leveraging the compressed tokens in the cross-attention module. We train the compressor and the decoder while leaving the CLIP vision model frozen. The loss for training this diffusion autoencoder is as follows: LDAE = Ex0 ,ϵ∼N (0,I) ∥ϵ − D(zt , t, E(x0 ))∥22 , (1) where x0 is the input image and zt = αt x + σt ϵ is its corresponding noisy latent at timestep t. ϵ ∈ N (0, I) is the Gaussian noise. αt and σt define the noise schedule. In our experiment, we 4
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:解码器加入人物脸部特征与描述特征,弥补压缩表示中细节的损失;自回归模型学习连续视觉token的概率分布,并结合历史生成下一步。作者还讨论了训练数据有限造成的过拟合问题。这个流程需要训练和微调,不是把已有视频工具串起来即可复现的纯提示方法。
条件:仅限本地原始PDF的 Section 3.3–3.4;不同表格与实验不合并
PDF p.5, Section 3.3–3.4 · PDF p.5
Published as a conference paper at ICLR 2025 empirically find that merely two tokens can sufficiently characterize major semantics of keyframes, corroborating the finding of previous work (Yang et al., 2022). 3.3 ID- PRESERVING D IFFUSION R ENDERING In our approach, while the primary diffusion decoder D adeptly reconstructs target images, it occa- sionally falls short in capturing fine-grained details, notably in facial features, due to the attenuation of details in compressed tokens. To address this, we enhance the cross-attention module within D. This enhancement involves the integration of both descriptive text embedding, d, and face em- bedding, f , derived from the multimodal script. Specifically, the face embedding f and description embedding d is projected to the same dimension as the compressed token with two additional MLPs, which are then concatenated together and serve as the input to the keys and values of cross-attention modules in D. The training loss is: LDAE = Ex0 ,ϵ∼N (0,I) ∥ϵ − D(zt , t, E(x0 ), f , d)∥22 , (2) To further advocate the model’s ability to focus on critical details, we introduce a random masking strategy that obscures a subset of the input tokens as zero tokens only during training. This technique encourages the decoder to more effectively utilize the available facial and textual cues to reconstruct the images with higher fidelity, particularly in preserving identity-specific characteristics. This ID- preserving rendering also compensates for the loss of identity during the autoregressive modeling, leading to substantially improved identity perception quality as illustrated in Figure 3. 3.4 AUTOREGRESSIVE K EYFRAME T OKEN G ENERATION We initiate our approach by leveraging a pretrained large language model, specifically LLaMA2- 7B (Touvron et al., 2023), to construct our autoregressive model, G. Unlike traditional LLMs, G is designed to predict compressed vision tokens from the multimodal script M of the corresponding keyframe and historical information H, which is formulated as et = G(H<t , Mt ). Traditional LLMs often employ cross-entropy loss for training, which is suitable for discrete out- puts. However, our model deals with continuous real-valued image tokens, which makes cross- entropy inapplicable. Inspired by Tschannen et al. (2024), we adopt a k-mixture Gaussian Mixture Model (GMM) to effectively model the distribution of these real-valued tokens. This involves pa- rameterizing the GMM with kd means, kd variances, and k mixing coefficients.These parameters are predicted by attaching an additional trainable linear layer at the end of the autoregressive model, enabling the construction of the GMM and the sampling of continuous tokens from the GMM. The model is trained by minimizing the negative log-likelihood: L T X X Lnll = E(− log p(et,i |H<t , Mt )), (3) t=1 i=1 where T represents the total number of frames, t indexes the current frame, and L is the number of compressed tokens per frame. To ease the learning for these continuous tokens, we also incorporate ℓ1 and ℓ2 losses between the predicted and ground truth token and optimize the following objective: Lar = Lnll + ℓ1 (epred , egt ) + ℓ2 (epred , egt ). (4) Anti-overfitting. It is challenging to massively acquire large amounts of high-quality, long- duration video data. We managed to collect 50k long videos, yielding 5M keyframes for autore- gressive training. Yet this data volume is relatively limited, leading to a severe overfitting issue where the generative model fails to generalize well during testing. To address this, we implement several strategies which are crucial for training: • Data augmentation. To maximally utilize our training data, we apply random horizontal flips and stochastically reverse the temporal order of video frames. Such training data augmentation considerably increases the diversity of training data. • Face embedding randomization. To prevent identity leakage, we randomly retrieve face embed- dings of the same character from different frames. Otherwise, the model will memorize the train- ing frame simply from the face embedding input. 5
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:训练数据以Condensed Movies及同方法采集的数据为主,测试另取未用于训练的电影。实验分别比较故事关键帧与完整视频,并报告有无参考图的设置。这里使用下载到的arXiv修订版全文,不把作者早期仓库中的旧引用当成这一版的作者名单。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.7, experimental setup · PDF p.7
Published as a conference paper at ICLR 2025 Target Before After Figure 3: The ID-preserving renderer significantly enhances the perceived identity of the character. For the second row, the input is only the compressed token. For the third row, the input is the compressed token, face ID, and description embedding. To generate longer movie clips, a straightforward way is to utilize the last frame of the previously generated video as the initial frame for generating the subsequent video. This process can be iter- ated to obtain a lengthy video sequence. However, we empirically found that this causes a serious accumulation of errors: the quality of the video frames gradually deteriorates as the time gets longer. To tackle this, we propose a simple and effective solution. Our motivation is to always use the feature of the first frame as an “anchor” during video extension, to enhance the model’s awareness of the original image distribution. In practice, we use the CLIP feature of the original input image, instead of the last frame of the previous video, for cross-attn interaction when generating subsequent videos. We want to emphasize that our key contribution lies in the hierarchical controllable very long video generation, with MLLM for keyframe generation and diffusion model for video rendering. Our subsequent experiments also demonstrate that existing high-quality video generation models trained by resource-rich institutions can be integrated with our MovieDreamer, producing better visually appealing results. This further demonstrates our flexibility. 4 E XPERIMENTS 4.1 I MPLEMENTATION D ETAILS We use pretrained models to reduce the training computational overhead, which is very common in the era of large models. We use the U-Net of pretrained SDXL (Podell et al., 2023) as our diffusion decoder. The encoder consists of a pretrained CLIP image encoder (ViT-L) (Radford et al., 2021) and a transformer-based compressor. The autoregressive model is initialized with a pretrained LLaMA-7B (Touvron et al., 2023) checkpoint. All MLPs used to align different modal inputs follow the architecture in LLaVA (Liu et al., 2023b). Please refer to Appendix A for more details about the network architecture and training. 4.2 E XPERIMENTAL S ETUP Dataset. The majority of our training data is sourced from Condensed Movies (Bain et al., 2020), with additional data collected using the same methodology as this dataset, resulting in 5M keyframes with corresponding script annotations. To systematically evaluate the effectiveness of our method, we construct a test dataset consisting of 100 long movies that are NOT included in the training set, with 1M keyframes after pre-processing. Each of these videos is processed through our proposed data pre-processing pipeline (see Appendix C), which accurately extracts and annotates keyframes. Evaluation metrics. We evaluate the effectiveness of various methods using the following metrics. The CLIP score (Radford et al., 2021) assesses semantic alignment between the plot and generated outputs. Quality is evaluated using the Aesthetic Score (AS) (Schuhmann et al., 2022), Fréchet 7
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:Table 1中,不加参考图的Ours长期一致性LT为0.814,StoryDiffusion为0.596;FID为2.043对4.643,低为好。但Aesthetic为6.093,低于StoryDiffusion的6.134。Ours-ref另有参考图条件,不能挑它的最好数字去代表不提供参考图的结果。
条件:仅限本地原始PDF的 Table 1;不同表格与实验不合并
PDF p.9, Table 1 · PDF p.9
Published as a conference paper at ICLR 2025 Table 1: Quantitative comparisons of different methods. ST and LT refer to our proposed short-term and long-term consistency metrics, respectively. noC denotes without continuous token supervision. Method CLIP ↑ Inception↑ Aesthetic↑ FID↓ ST↑ LT↑ StoryDiffusion 15.232 8.739 6.134 4.643 0.627 0.596 StoryGen 13.261 6.216 3.837 8.557 0.508 0.542 Ours 19.584 9.698 6.093 2.043 0.646 0.814 Ours-ref 20.071 9.842 6.288 1.912 0.701 0.893 Ours-noC 18.833 8.609 5.893 2.714 0.606 0.755 Ours-noC-ref 19.431 8.774 5.979 2.560 0.616 0.776 Table 2: Quantitative comparison on full-length video generation. Method CLIP↑ Inception↑ Aesthetic↑ CLIP-sim↑ StreamingT2V 15.304 7.636 4.119 0.624 SEINE 19.404 7.463 5.825 0.688 FreeNoise 14.327 6.532 3.194 0.612 Ours 19.520 8.642 6.049 0.704 Video results. We perform a detailed comparison between our method and existing methods for generating long videos. For text-to-video methods, we use detailed descriptions prepared in the test set as input. For image-to-video approaches, we employ keyframes generated by our methods as inputs. As illustrated in Table 2 and Figure 6 (b), our method significantly outperforms prior open-source models in terms of quality, demonstrating strong generalization capabilities. Most im- portantly, our method is capable of generating videos that last tens of minutes or even hours with little compromise in quality, achieving state-of-the-art results. Here, we compare existing methods with our enhanced video model. As shown in Appendix D, when integrated with enterprise-level closed-source video models, our approach demonstrates even better results. 4.4 A NALYSIS Continuous token supervision. We noticed a significant decline in the model’s ability to maintain ID consistency on the test set when using only L1 and L2 supervision. We believe this is because L1 and L2 losses are not good at modeling probability distributions, as they are more suitable for regression tasks. However, we need to model the complex conditional distribution of the autoregres- sive process. Therefore, we applied more refined supervision on continuous real-valued tokens. As illustrated in Figure 6, with continuous token supervision, the model is better capable of preserving target ID. Both the quality of the generated image and the preservation of character ID degenerate without continuous token supervision. Ours SEINE StreamingT2V FreeNoise ID w Con w/o Con (a) (b) Figure 6: (a) With continuous token supervision, our model demonstrates stronger generalization capabilities and achieves higher-quality results. Better character ID is preserved with continuous token supervision. (b) Visualization of long video generated by different methods. Anti-overfitting strategies. Large autoregressive models are powerful learners, making it easy for them to overfit the dataset. As shown in the first row in Figure 7, the generated contents are dominated by the input character. The model produces similar visual content even when given different text prompts. Our anti-overfitting strategies are designed to weaken the correspondence between character IDs and target frames, thus avoiding simple memorization. As can be seen in the second row, it helps produce diverse high-quality results that align well with the text description. 9
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:短期一致性主要用相邻含目标人物帧的特征相似度衡量;长期一致性检查抽样帧中是否出现目标人物。这些指标有助于评价身份保持,却不是完整剧情因果、动作物理或所有镜头连续性的证明。框架能扩展序列长度,不代表任何长度都没有累积错误。
条件:仅限本地原始PDF的 Evaluation metrics;不同表格与实验不合并
PDF p.8, Evaluation metrics · PDF p.8
Published as a conference paper at ICLR 2025 Image Distance (FID) (Heusel et al., 2018), and Inception Score (IS) (Salimans et al., 2016). For assessing consistency, we propose new metrics for short-term (ST) and long-term (LT) consistency. ST is measured by calculating the CLIP cosine similarity between adjacent frames containing the target character. LT consistency is evaluated by checking the presence of the target character in selected frames across the test set. Finally, we calculate the ratio of frames containing the target character to the total number of selected frames as a measure of the accuracy in maintaining long- term character consistency. Please refer to the Appendix B for more details about the evaluation metrics. wearing a suit people in the background gaze at the camera sitting, serious looking Ours StoryDiffusion StoryGen Figure 4: Qualitative comparisons of story generation. Please refer to the appendix E for more comparisons. Each keyframe is generated with the corresponding multimodal script as input. 4.3 C OMPARISON WITH THE S TATE - OF - THE -A RT Story generation. Many existing story generation methods focus on fine-tuning with small datasets, exhibiting poor generalization. Consequently, we compare our method only with those that demonstrate high generalization capabilities, namely StoryDiffusion (Zhou et al., 2024) and StoryGen (Liu et al., 2023a). As shown in Figure 4, StoryDiffusion consumes significant compu- tational overhead and tends to generate generic faces that do not align with the desired character. Similarly, StoryGen fails to preserve consistency and generates abnormal results. In contrast, our method achieves generating extremely long content while preserving both short-term and long-term consistency across multiple characters. The observation is also evidenced by the quantitative re- sults in Table 1, where our method achieves high scores in both LT and ST. Moreover, the higher CLIP score reflects that our generated results align well with the storyline. Better IS, AS, and FID scores demonstrate our method achieves high-quality images. We showcase more qualitative results in Appendix E. KeyFrame25 KeyFrame32 KeyFrame37 KeyFrame43 w Face ID w/o Face ID Figure 5: Ablations on face embedding. Character consistency is well-preserved with face embed- ding. The autoregressive model generates compressed tokens with multimodal script as input. The results are rendered by the decoder D, with compressed tokens as well as face embedding and de- scription embedding as input. 8
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
论文为什么要做这件事
MovieDreamer把长叙事视觉生成拆成两个层级:自回归模型预测关键帧的视觉表示,扩散模型把表示画成图像,再生成视频片段。它想同时利用序列模型的长程条件建模与扩散模型的视觉质量,而不是用一个模型一次性生成整部电影。 (原文:PDF p.2, Introduction)
指标:MovieDreamer把长叙事视觉生成拆成两个层级:自回归模型预测关键帧的视觉表示,扩散模型把表示画成图像,再生成视频片段。它想同时利用序列模型的长程条件建模与扩散模型的视觉质量,而不是用一个模型一次性生成整部电影。
条件:仅限本地原始PDF的 Introduction;不同表格与实验不合并
PDF p.2, Introduction · PDF p.2
Published as a conference paper at ICLR 2025 Figure 1: The Titanic movie scenes generated by the proposed MovieDreamer. The generation is conditioned on the elaborate multimodal movie script. The original movie is unseen during training. Please refer to Figure 10, 11, 12, 13, 14 for more results. complex narrative structures and intricate plot progressions, which is hardly achieved by merely scaling the current approaches. Our aim is to push the boundaries of video generation beyond the limitations of short-duration content, enabling the creation of videos with rich, engaging storylines. In this paper, we introduce a hierarchical approach, dubbed MovieDreamer, that marries autoregres- sive modeling with diffusion-based rendering to achieve a novel synthesis of long-term coherence and short-term fidelity in visual storytelling. Our method leverages the strengths of autoregressive models to ensure global consistency in key movie elements like character identities and cinematic styles, even when the camera switches back and forth. The model predicts visual tokens for spe- cific local timespans, which are then decoded into keyframes and dynamically rendered into video sequences using diffusion rendering. Our method mirrors the traditional movie directing process, where intricate plots are decomposed into distinct, manageable scenes. Our method ensures that both the overarching narrative and the minute spatial-temporal details are maintained with high fidelity, thus enabling the automated production of movies that are both visually cohesive and contextually rich. To this end, we represent the whole movie using sparse keyframes and employ a diffusion autoen- coder to tokenize each keyframe into compact visual tokens. We train an autoregressive model to predict the sequence of visual tokens. This model is initialized from a pretrained large language mode, a 7B LLaMA model (Touvron et al., 2023), to leverage its rich world knowledge for better generalizability. As such, the model can be regarded as a multimodal model, which, rather than outputting the text, predicts the visual tokens with movie script conditioning. Three key designs need to be specially considered during the autoregressive training. One is to resort to various model and input perturbation techniques to combat the overfitting tendency since the high-quality movie training data is limited. Besides, we propose to condition the model using a novel multimodal script, which, for each keyframe, includes the rich description of the image style and scene elements, along with detailed text description of characters as well as their retrieved face embeddings. Such multimodal script facilitates narrative continuity across different segments of the movie while offering flexibility for character control. Moreover, we stochastically append a few reference frames of the same episode at the beginning of the input, and in this way, the model acquires in-context learning capability and can synthesize higher-quality personalized results. Such feature is particularly useful in generating coherent continuations of given movie episodes. We subsequently decode the predicted vision tokens using an image diffusion decoder and further render the image to the video clip using an image-to-video diffusion model. Importantly, we enhance 2
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
核心方法到底怎么运转
输入是包含人物、场景和情节的多模态脚本。扩散自编码器把关键帧压缩成视觉token,自回归模型依据脚本和历史预测后续token,扩散解码器再把token还原成关键帧。关键帧作为视频生成的锚点。因此脚本、视觉表示、关键帧与动态片段是不同阶段,不能把生成长度直接等同于剧情理解能力。 (原文:PDF p.4, Figure 2; Section 3.1–3.2)
指标:输入是包含人物、场景和情节的多模态脚本。扩散自编码器把关键帧压缩成视觉token,自回归模型依据脚本和历史预测后续token,扩散解码器再把token还原成关键帧。关键帧作为视频生成的锚点。因此脚本、视觉表示、关键帧与动态片段是不同阶段,不能把生成长度直接等同于剧情理解能力。
条件:仅限本地原始PDF的 Figure 2; Section 3.1–3.2;不同表格与实验不合并
PDF p.4, Figure 2; Section 3.1–3.2 · PDF p.4
Published as a conference paper at ICLR 2025 Diffusion Autoencoder (DAE) Inference Face Compressor Embedding CLIP SDXL Visual Tokens Noisy Latent Encoder Decoder Description Embedding Multimodal Scripts Example Auto-regressive Prediction Characters: - A man in a black suit with slicked-back hair. <Face ID> - A woman with a teal headdress Multimodal Scripts 3225 Multimodal Scripts 3226 and matching necklace.<Face ID> … … … Scene Elements: - Crowded event … - Elegant lighting … Multimodal Modeling with VLM Plot: - A man … a woman … are dancing … … … closely at a crowded event. DAE DAE DAE There is a subtle but palpable Decoder Decoder Decoder sense of connection or confrontation between the man and the woman, suggested by their direct gaze and proximity to each other amidst a crowded Image-to-video Gen Image-to-video Gen setting KeyFrame 3224 KeyFrame 3225 KeyFrame 3226 Figure 2: The framework of our MovieDreamer. Our autoregressive model takes multimodal scripts as input and predicts the tokens for keyframes. These tokens are then rendered into images, forming anchor frames for extended video generation. Our method ensures long-term coherence and short- term fidelity in visual storytelling with the character’s identity well preserved. mediocre results and are challenging to scale up. Story and video generation share intrinsic links, with overlapping solutions. Our method uniquely integrates these, offering a unified approach. 3 M ETHOD 3.1 OVERVIEW We propose a novel framework for generating extended video sequences that leverages the strengths of autoregressive models for long-term temporal consistency and diffusion models for high-quality image and video rendering. Our method takes multimodal scripts as conditions, predicts keyframe tokens in an autoregressive manner, renders the tokens into images and uses these images as anchors to produce full-length videos. Our method offers flexibility to support zero-shot generation along with few-shot scenarios in which the generation results are required to follow the given reference. We take special care of preserving the identity of the characters throughout the multimodal script design, autoregressive training, and diffusion rendering. We illustrate the overall framework in Figure 2. 3.2 K EYFRAME T OKENIZATION VIA D IFFUSION AUTOENCODER To create a concise yet faithful representation of images, we employ a diffusion autoencoder. Our encoder, E, contains a pretrained CLIP vision model (Radford et al., 2021) and a transformer-based token compressor, which encodes an image x into a reduced number of compressed tokens denoted by e. The decoder, D, is finetuned based on the pretrained SDXL and yields an 896×512 recon- structed image by leveraging the compressed tokens in the cross-attention module. We train the compressor and the decoder while leaving the CLIP vision model frozen. The loss for training this diffusion autoencoder is as follows: LDAE = Ex0 ,ϵ∼N (0,I) ∥ϵ − D(zt , t, E(x0 ))∥22 , (1) where x0 is the input image and zt = αt x + σt ϵ is its corresponding noisy latent at timestep t. ϵ ∈ N (0, I) is the Gaussian noise. αt and σt define the noise schedule. In our experiment, we 4
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
身份条件与历史条件承担不同职责
解码器加入人物脸部特征与描述特征,弥补压缩表示中细节的损失;自回归模型学习连续视觉token的概率分布,并结合历史生成下一步。作者还讨论了训练数据有限造成的过拟合问题。这个流程需要训练和微调,不是把已有视频工具串起来即可复现的纯提示方法。 (原文:PDF p.5, Section 3.3–3.4)
指标:解码器加入人物脸部特征与描述特征,弥补压缩表示中细节的损失;自回归模型学习连续视觉token的概率分布,并结合历史生成下一步。作者还讨论了训练数据有限造成的过拟合问题。这个流程需要训练和微调,不是把已有视频工具串起来即可复现的纯提示方法。
条件:仅限本地原始PDF的 Section 3.3–3.4;不同表格与实验不合并
PDF p.5, Section 3.3–3.4 · PDF p.5
Published as a conference paper at ICLR 2025 empirically find that merely two tokens can sufficiently characterize major semantics of keyframes, corroborating the finding of previous work (Yang et al., 2022). 3.3 ID- PRESERVING D IFFUSION R ENDERING In our approach, while the primary diffusion decoder D adeptly reconstructs target images, it occa- sionally falls short in capturing fine-grained details, notably in facial features, due to the attenuation of details in compressed tokens. To address this, we enhance the cross-attention module within D. This enhancement involves the integration of both descriptive text embedding, d, and face em- bedding, f , derived from the multimodal script. Specifically, the face embedding f and description embedding d is projected to the same dimension as the compressed token with two additional MLPs, which are then concatenated together and serve as the input to the keys and values of cross-attention modules in D. The training loss is: LDAE = Ex0 ,ϵ∼N (0,I) ∥ϵ − D(zt , t, E(x0 ), f , d)∥22 , (2) To further advocate the model’s ability to focus on critical details, we introduce a random masking strategy that obscures a subset of the input tokens as zero tokens only during training. This technique encourages the decoder to more effectively utilize the available facial and textual cues to reconstruct the images with higher fidelity, particularly in preserving identity-specific characteristics. This ID- preserving rendering also compensates for the loss of identity during the autoregressive modeling, leading to substantially improved identity perception quality as illustrated in Figure 3. 3.4 AUTOREGRESSIVE K EYFRAME T OKEN G ENERATION We initiate our approach by leveraging a pretrained large language model, specifically LLaMA2- 7B (Touvron et al., 2023), to construct our autoregressive model, G. Unlike traditional LLMs, G is designed to predict compressed vision tokens from the multimodal script M of the corresponding keyframe and historical information H, which is formulated as et = G(H<t , Mt ). Traditional LLMs often employ cross-entropy loss for training, which is suitable for discrete out- puts. However, our model deals with continuous real-valued image tokens, which makes cross- entropy inapplicable. Inspired by Tschannen et al. (2024), we adopt a k-mixture Gaussian Mixture Model (GMM) to effectively model the distribution of these real-valued tokens. This involves pa- rameterizing the GMM with kd means, kd variances, and k mixing coefficients.These parameters are predicted by attaching an additional trainable linear layer at the end of the autoregressive model, enabling the construction of the GMM and the sampling of continuous tokens from the GMM. The model is trained by minimizing the negative log-likelihood: L T X X Lnll = E(− log p(et,i |H<t , Mt )), (3) t=1 i=1 where T represents the total number of frames, t indexes the current frame, and L is the number of compressed tokens per frame. To ease the learning for these continuous tokens, we also incorporate ℓ1 and ℓ2 losses between the predicted and ground truth token and optimize the following objective: Lar = Lnll + ℓ1 (epred , egt ) + ℓ2 (epred , egt ). (4) Anti-overfitting. It is challenging to massively acquire large amounts of high-quality, long- duration video data. We managed to collect 50k long videos, yielding 5M keyframes for autore- gressive training. Yet this data volume is relatively limited, leading to a severe overfitting issue where the generative model fails to generalize well during testing. To address this, we implement several strategies which are crucial for training: • Data augmentation. To maximally utilize our training data, we apply random horizontal flips and stochastically reverse the temporal order of video frames. Such training data augmentation considerably increases the diversity of training data. • Face embedding randomization. To prevent identity leakage, we randomly retrieve face embed- dings of the same character from different frames. Otherwise, the model will memorize the train- ing frame simply from the face embedding input. 5
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
实验怎样检验这个方法
训练数据以Condensed Movies及同方法采集的数据为主,测试另取未用于训练的电影。实验分别比较故事关键帧与完整视频,并报告有无参考图的设置。这里使用下载到的arXiv修订版全文,不把作者早期仓库中的旧引用当成这一版的作者名单。 (原文:PDF p.7, experimental setup)
指标:训练数据以Condensed Movies及同方法采集的数据为主,测试另取未用于训练的电影。实验分别比较故事关键帧与完整视频,并报告有无参考图的设置。这里使用下载到的arXiv修订版全文,不把作者早期仓库中的旧引用当成这一版的作者名单。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.7, experimental setup · PDF p.7
Published as a conference paper at ICLR 2025 Target Before After Figure 3: The ID-preserving renderer significantly enhances the perceived identity of the character. For the second row, the input is only the compressed token. For the third row, the input is the compressed token, face ID, and description embedding. To generate longer movie clips, a straightforward way is to utilize the last frame of the previously generated video as the initial frame for generating the subsequent video. This process can be iter- ated to obtain a lengthy video sequence. However, we empirically found that this causes a serious accumulation of errors: the quality of the video frames gradually deteriorates as the time gets longer. To tackle this, we propose a simple and effective solution. Our motivation is to always use the feature of the first frame as an “anchor” during video extension, to enhance the model’s awareness of the original image distribution. In practice, we use the CLIP feature of the original input image, instead of the last frame of the previous video, for cross-attn interaction when generating subsequent videos. We want to emphasize that our key contribution lies in the hierarchical controllable very long video generation, with MLLM for keyframe generation and diffusion model for video rendering. Our subsequent experiments also demonstrate that existing high-quality video generation models trained by resource-rich institutions can be integrated with our MovieDreamer, producing better visually appealing results. This further demonstrates our flexibility. 4 E XPERIMENTS 4.1 I MPLEMENTATION D ETAILS We use pretrained models to reduce the training computational overhead, which is very common in the era of large models. We use the U-Net of pretrained SDXL (Podell et al., 2023) as our diffusion decoder. The encoder consists of a pretrained CLIP image encoder (ViT-L) (Radford et al., 2021) and a transformer-based compressor. The autoregressive model is initialized with a pretrained LLaMA-7B (Touvron et al., 2023) checkpoint. All MLPs used to align different modal inputs follow the architecture in LLaVA (Liu et al., 2023b). Please refer to Appendix A for more details about the network architecture and training. 4.2 E XPERIMENTAL S ETUP Dataset. The majority of our training data is sourced from Condensed Movies (Bain et al., 2020), with additional data collected using the same methodology as this dataset, resulting in 5M keyframes with corresponding script annotations. To systematically evaluate the effectiveness of our method, we construct a test dataset consisting of 100 long movies that are NOT included in the training set, with 1M keyframes after pre-processing. Each of these videos is processed through our proposed data pre-processing pipeline (see Appendix C), which accurately extracts and annotates keyframes. Evaluation metrics. We evaluate the effectiveness of various methods using the following metrics. The CLIP score (Radford et al., 2021) assesses semantic alignment between the plot and generated outputs. Quality is evaluated using the Aesthetic Score (AS) (Schuhmann et al., 2022), Fréchet 7
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
结果说明了什么
Table 1中,不加参考图的Ours长期一致性LT为0.814,StoryDiffusion为0.596;FID为2.043对4.643,低为好。但Aesthetic为6.093,低于StoryDiffusion的6.134。Ours-ref另有参考图条件,不能挑它的最好数字去代表不提供参考图的结果。 (原文:PDF p.9, Table 1)
指标:Table 1中,不加参考图的Ours长期一致性LT为0.814,StoryDiffusion为0.596;FID为2.043对4.643,低为好。但Aesthetic为6.093,低于StoryDiffusion的6.134。Ours-ref另有参考图条件,不能挑它的最好数字去代表不提供参考图的结果。
条件:仅限本地原始PDF的 Table 1;不同表格与实验不合并
PDF p.9, Table 1 · PDF p.9
Published as a conference paper at ICLR 2025 Table 1: Quantitative comparisons of different methods. ST and LT refer to our proposed short-term and long-term consistency metrics, respectively. noC denotes without continuous token supervision. Method CLIP ↑ Inception↑ Aesthetic↑ FID↓ ST↑ LT↑ StoryDiffusion 15.232 8.739 6.134 4.643 0.627 0.596 StoryGen 13.261 6.216 3.837 8.557 0.508 0.542 Ours 19.584 9.698 6.093 2.043 0.646 0.814 Ours-ref 20.071 9.842 6.288 1.912 0.701 0.893 Ours-noC 18.833 8.609 5.893 2.714 0.606 0.755 Ours-noC-ref 19.431 8.774 5.979 2.560 0.616 0.776 Table 2: Quantitative comparison on full-length video generation. Method CLIP↑ Inception↑ Aesthetic↑ CLIP-sim↑ StreamingT2V 15.304 7.636 4.119 0.624 SEINE 19.404 7.463 5.825 0.688 FreeNoise 14.327 6.532 3.194 0.612 Ours 19.520 8.642 6.049 0.704 Video results. We perform a detailed comparison between our method and existing methods for generating long videos. For text-to-video methods, we use detailed descriptions prepared in the test set as input. For image-to-video approaches, we employ keyframes generated by our methods as inputs. As illustrated in Table 2 and Figure 6 (b), our method significantly outperforms prior open-source models in terms of quality, demonstrating strong generalization capabilities. Most im- portantly, our method is capable of generating videos that last tens of minutes or even hours with little compromise in quality, achieving state-of-the-art results. Here, we compare existing methods with our enhanced video model. As shown in Appendix D, when integrated with enterprise-level closed-source video models, our approach demonstrates even better results. 4.4 A NALYSIS Continuous token supervision. We noticed a significant decline in the model’s ability to maintain ID consistency on the test set when using only L1 and L2 supervision. We believe this is because L1 and L2 losses are not good at modeling probability distributions, as they are more suitable for regression tasks. However, we need to model the complex conditional distribution of the autoregres- sive process. Therefore, we applied more refined supervision on continuous real-valued tokens. As illustrated in Figure 6, with continuous token supervision, the model is better capable of preserving target ID. Both the quality of the generated image and the preservation of character ID degenerate without continuous token supervision. Ours SEINE StreamingT2V FreeNoise ID w Con w/o Con (a) (b) Figure 6: (a) With continuous token supervision, our model demonstrates stronger generalization capabilities and achieves higher-quality results. Better character ID is preserved with continuous token supervision. (b) Visualization of long video generated by different methods. Anti-overfitting strategies. Large autoregressive models are powerful learners, making it easy for them to overfit the dataset. As shown in the first row in Figure 7, the generated contents are dominated by the input character. The model produces similar visual content even when given different text prompts. Our anti-overfitting strategies are designed to weaken the correspondence between character IDs and target frames, thus avoiding simple memorization. As can be seen in the second row, it helps produce diverse high-quality results that align well with the text description. 9
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
这篇论文哪里最强,哪里最危险
短期一致性主要用相邻含目标人物帧的特征相似度衡量;长期一致性检查抽样帧中是否出现目标人物。这些指标有助于评价身份保持,却不是完整剧情因果、动作物理或所有镜头连续性的证明。框架能扩展序列长度,不代表任何长度都没有累积错误。 (原文:PDF p.8, Evaluation metrics)
指标:短期一致性主要用相邻含目标人物帧的特征相似度衡量;长期一致性检查抽样帧中是否出现目标人物。这些指标有助于评价身份保持,却不是完整剧情因果、动作物理或所有镜头连续性的证明。框架能扩展序列长度,不代表任何长度都没有累积错误。
条件:仅限本地原始PDF的 Evaluation metrics;不同表格与实验不合并
PDF p.8, Evaluation metrics · PDF p.8
Published as a conference paper at ICLR 2025 Image Distance (FID) (Heusel et al., 2018), and Inception Score (IS) (Salimans et al., 2016). For assessing consistency, we propose new metrics for short-term (ST) and long-term (LT) consistency. ST is measured by calculating the CLIP cosine similarity between adjacent frames containing the target character. LT consistency is evaluated by checking the presence of the target character in selected frames across the test set. Finally, we calculate the ratio of frames containing the target character to the total number of selected frames as a measure of the accuracy in maintaining long- term character consistency. Please refer to the Appendix B for more details about the evaluation metrics. wearing a suit people in the background gaze at the camera sitting, serious looking Ours StoryDiffusion StoryGen Figure 4: Qualitative comparisons of story generation. Please refer to the appendix E for more comparisons. Each keyframe is generated with the corresponding multimodal script as input. 4.3 C OMPARISON WITH THE S TATE - OF - THE -A RT Story generation. Many existing story generation methods focus on fine-tuning with small datasets, exhibiting poor generalization. Consequently, we compare our method only with those that demonstrate high generalization capabilities, namely StoryDiffusion (Zhou et al., 2024) and StoryGen (Liu et al., 2023a). As shown in Figure 4, StoryDiffusion consumes significant compu- tational overhead and tends to generate generic faces that do not align with the desired character. Similarly, StoryGen fails to preserve consistency and generates abnormal results. In contrast, our method achieves generating extremely long content while preserving both short-term and long-term consistency across multiple characters. The observation is also evidenced by the quantitative re- sults in Table 1, where our method achieves high scores in both LT and ST. Moreover, the higher CLIP score reflects that our generated results align well with the storyline. Better IS, AS, and FID scores demonstrate our method achieves high-quality images. We showcase more qualitative results in Appendix E. KeyFrame25 KeyFrame32 KeyFrame37 KeyFrame43 w Face ID w/o Face ID Figure 5: Ablations on face embedding. Character consistency is well-preserved with face embed- ding. The autoregressive model generates compressed tokens with multimodal script as input. The results are rendered by the decoder D, with compressed tokens as well as face embedding and de- scription embedding as input. 8
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
读完后记住这三件事
脚本先转为视觉表示。扩散渲染负责图像与视频。身份一致性指标不等于全部电影质量。 (原文:PDF p.2, Introduction;PDF p.4, Figure 2; Section 3.1–3.2;PDF p.5, Section 3.3–3.4;PDF p.7, experimental setup;PDF p.9, Table 1;PDF p.8, Evaluation metrics)
指标:MovieDreamer把长叙事视觉生成拆成两个层级:自回归模型预测关键帧的视觉表示,扩散模型把表示画成图像,再生成视频片段。它想同时利用序列模型的长程条件建模与扩散模型的视觉质量,而不是用一个模型一次性生成整部电影。
条件:仅限本地原始PDF的 Introduction;不同表格与实验不合并
PDF p.2, Introduction · PDF p.2
Published as a conference paper at ICLR 2025 Figure 1: The Titanic movie scenes generated by the proposed MovieDreamer. The generation is conditioned on the elaborate multimodal movie script. The original movie is unseen during training. Please refer to Figure 10, 11, 12, 13, 14 for more results. complex narrative structures and intricate plot progressions, which is hardly achieved by merely scaling the current approaches. Our aim is to push the boundaries of video generation beyond the limitations of short-duration content, enabling the creation of videos with rich, engaging storylines. In this paper, we introduce a hierarchical approach, dubbed MovieDreamer, that marries autoregres- sive modeling with diffusion-based rendering to achieve a novel synthesis of long-term coherence and short-term fidelity in visual storytelling. Our method leverages the strengths of autoregressive models to ensure global consistency in key movie elements like character identities and cinematic styles, even when the camera switches back and forth. The model predicts visual tokens for spe- cific local timespans, which are then decoded into keyframes and dynamically rendered into video sequences using diffusion rendering. Our method mirrors the traditional movie directing process, where intricate plots are decomposed into distinct, manageable scenes. Our method ensures that both the overarching narrative and the minute spatial-temporal details are maintained with high fidelity, thus enabling the automated production of movies that are both visually cohesive and contextually rich. To this end, we represent the whole movie using sparse keyframes and employ a diffusion autoen- coder to tokenize each keyframe into compact visual tokens. We train an autoregressive model to predict the sequence of visual tokens. This model is initialized from a pretrained large language mode, a 7B LLaMA model (Touvron et al., 2023), to leverage its rich world knowledge for better generalizability. As such, the model can be regarded as a multimodal model, which, rather than outputting the text, predicts the visual tokens with movie script conditioning. Three key designs need to be specially considered during the autoregressive training. One is to resort to various model and input perturbation techniques to combat the overfitting tendency since the high-quality movie training data is limited. Besides, we propose to condition the model using a novel multimodal script, which, for each keyframe, includes the rich description of the image style and scene elements, along with detailed text description of characters as well as their retrieved face embeddings. Such multimodal script facilitates narrative continuity across different segments of the movie while offering flexibility for character control. Moreover, we stochastically append a few reference frames of the same episode at the beginning of the input, and in this way, the model acquires in-context learning capability and can synthesize higher-quality personalized results. Such feature is particularly useful in generating coherent continuations of given movie episodes. We subsequently decode the predicted vision tokens using an image diffusion decoder and further render the image to the video clip using an image-to-video diffusion model. Importantly, we enhance 2
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:输入是包含人物、场景和情节的多模态脚本。扩散自编码器把关键帧压缩成视觉token,自回归模型依据脚本和历史预测后续token,扩散解码器再把token还原成关键帧。关键帧作为视频生成的锚点。因此脚本、视觉表示、关键帧与动态片段是不同阶段,不能把生成长度直接等同于剧情理解能力。
条件:仅限本地原始PDF的 Figure 2; Section 3.1–3.2;不同表格与实验不合并
PDF p.4, Figure 2; Section 3.1–3.2 · PDF p.4
Published as a conference paper at ICLR 2025 Diffusion Autoencoder (DAE) Inference Face Compressor Embedding CLIP SDXL Visual Tokens Noisy Latent Encoder Decoder Description Embedding Multimodal Scripts Example Auto-regressive Prediction Characters: - A man in a black suit with slicked-back hair. <Face ID> - A woman with a teal headdress Multimodal Scripts 3225 Multimodal Scripts 3226 and matching necklace.<Face ID> … … … Scene Elements: - Crowded event … - Elegant lighting … Multimodal Modeling with VLM Plot: - A man … a woman … are dancing … … … closely at a crowded event. DAE DAE DAE There is a subtle but palpable Decoder Decoder Decoder sense of connection or confrontation between the man and the woman, suggested by their direct gaze and proximity to each other amidst a crowded Image-to-video Gen Image-to-video Gen setting KeyFrame 3224 KeyFrame 3225 KeyFrame 3226 Figure 2: The framework of our MovieDreamer. Our autoregressive model takes multimodal scripts as input and predicts the tokens for keyframes. These tokens are then rendered into images, forming anchor frames for extended video generation. Our method ensures long-term coherence and short- term fidelity in visual storytelling with the character’s identity well preserved. mediocre results and are challenging to scale up. Story and video generation share intrinsic links, with overlapping solutions. Our method uniquely integrates these, offering a unified approach. 3 M ETHOD 3.1 OVERVIEW We propose a novel framework for generating extended video sequences that leverages the strengths of autoregressive models for long-term temporal consistency and diffusion models for high-quality image and video rendering. Our method takes multimodal scripts as conditions, predicts keyframe tokens in an autoregressive manner, renders the tokens into images and uses these images as anchors to produce full-length videos. Our method offers flexibility to support zero-shot generation along with few-shot scenarios in which the generation results are required to follow the given reference. We take special care of preserving the identity of the characters throughout the multimodal script design, autoregressive training, and diffusion rendering. We illustrate the overall framework in Figure 2. 3.2 K EYFRAME T OKENIZATION VIA D IFFUSION AUTOENCODER To create a concise yet faithful representation of images, we employ a diffusion autoencoder. Our encoder, E, contains a pretrained CLIP vision model (Radford et al., 2021) and a transformer-based token compressor, which encodes an image x into a reduced number of compressed tokens denoted by e. The decoder, D, is finetuned based on the pretrained SDXL and yields an 896×512 recon- structed image by leveraging the compressed tokens in the cross-attention module. We train the compressor and the decoder while leaving the CLIP vision model frozen. The loss for training this diffusion autoencoder is as follows: LDAE = Ex0 ,ϵ∼N (0,I) ∥ϵ − D(zt , t, E(x0 ))∥22 , (1) where x0 is the input image and zt = αt x + σt ϵ is its corresponding noisy latent at timestep t. ϵ ∈ N (0, I) is the Gaussian noise. αt and σt define the noise schedule. In our experiment, we 4
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:解码器加入人物脸部特征与描述特征,弥补压缩表示中细节的损失;自回归模型学习连续视觉token的概率分布,并结合历史生成下一步。作者还讨论了训练数据有限造成的过拟合问题。这个流程需要训练和微调,不是把已有视频工具串起来即可复现的纯提示方法。
条件:仅限本地原始PDF的 Section 3.3–3.4;不同表格与实验不合并
PDF p.5, Section 3.3–3.4 · PDF p.5
Published as a conference paper at ICLR 2025 empirically find that merely two tokens can sufficiently characterize major semantics of keyframes, corroborating the finding of previous work (Yang et al., 2022). 3.3 ID- PRESERVING D IFFUSION R ENDERING In our approach, while the primary diffusion decoder D adeptly reconstructs target images, it occa- sionally falls short in capturing fine-grained details, notably in facial features, due to the attenuation of details in compressed tokens. To address this, we enhance the cross-attention module within D. This enhancement involves the integration of both descriptive text embedding, d, and face em- bedding, f , derived from the multimodal script. Specifically, the face embedding f and description embedding d is projected to the same dimension as the compressed token with two additional MLPs, which are then concatenated together and serve as the input to the keys and values of cross-attention modules in D. The training loss is: LDAE = Ex0 ,ϵ∼N (0,I) ∥ϵ − D(zt , t, E(x0 ), f , d)∥22 , (2) To further advocate the model’s ability to focus on critical details, we introduce a random masking strategy that obscures a subset of the input tokens as zero tokens only during training. This technique encourages the decoder to more effectively utilize the available facial and textual cues to reconstruct the images with higher fidelity, particularly in preserving identity-specific characteristics. This ID- preserving rendering also compensates for the loss of identity during the autoregressive modeling, leading to substantially improved identity perception quality as illustrated in Figure 3. 3.4 AUTOREGRESSIVE K EYFRAME T OKEN G ENERATION We initiate our approach by leveraging a pretrained large language model, specifically LLaMA2- 7B (Touvron et al., 2023), to construct our autoregressive model, G. Unlike traditional LLMs, G is designed to predict compressed vision tokens from the multimodal script M of the corresponding keyframe and historical information H, which is formulated as et = G(H<t , Mt ). Traditional LLMs often employ cross-entropy loss for training, which is suitable for discrete out- puts. However, our model deals with continuous real-valued image tokens, which makes cross- entropy inapplicable. Inspired by Tschannen et al. (2024), we adopt a k-mixture Gaussian Mixture Model (GMM) to effectively model the distribution of these real-valued tokens. This involves pa- rameterizing the GMM with kd means, kd variances, and k mixing coefficients.These parameters are predicted by attaching an additional trainable linear layer at the end of the autoregressive model, enabling the construction of the GMM and the sampling of continuous tokens from the GMM. The model is trained by minimizing the negative log-likelihood: L T X X Lnll = E(− log p(et,i |H<t , Mt )), (3) t=1 i=1 where T represents the total number of frames, t indexes the current frame, and L is the number of compressed tokens per frame. To ease the learning for these continuous tokens, we also incorporate ℓ1 and ℓ2 losses between the predicted and ground truth token and optimize the following objective: Lar = Lnll + ℓ1 (epred , egt ) + ℓ2 (epred , egt ). (4) Anti-overfitting. It is challenging to massively acquire large amounts of high-quality, long- duration video data. We managed to collect 50k long videos, yielding 5M keyframes for autore- gressive training. Yet this data volume is relatively limited, leading to a severe overfitting issue where the generative model fails to generalize well during testing. To address this, we implement several strategies which are crucial for training: • Data augmentation. To maximally utilize our training data, we apply random horizontal flips and stochastically reverse the temporal order of video frames. Such training data augmentation considerably increases the diversity of training data. • Face embedding randomization. To prevent identity leakage, we randomly retrieve face embed- dings of the same character from different frames. Otherwise, the model will memorize the train- ing frame simply from the face embedding input. 5
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:训练数据以Condensed Movies及同方法采集的数据为主,测试另取未用于训练的电影。实验分别比较故事关键帧与完整视频,并报告有无参考图的设置。这里使用下载到的arXiv修订版全文,不把作者早期仓库中的旧引用当成这一版的作者名单。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.7, experimental setup · PDF p.7
Published as a conference paper at ICLR 2025 Target Before After Figure 3: The ID-preserving renderer significantly enhances the perceived identity of the character. For the second row, the input is only the compressed token. For the third row, the input is the compressed token, face ID, and description embedding. To generate longer movie clips, a straightforward way is to utilize the last frame of the previously generated video as the initial frame for generating the subsequent video. This process can be iter- ated to obtain a lengthy video sequence. However, we empirically found that this causes a serious accumulation of errors: the quality of the video frames gradually deteriorates as the time gets longer. To tackle this, we propose a simple and effective solution. Our motivation is to always use the feature of the first frame as an “anchor” during video extension, to enhance the model’s awareness of the original image distribution. In practice, we use the CLIP feature of the original input image, instead of the last frame of the previous video, for cross-attn interaction when generating subsequent videos. We want to emphasize that our key contribution lies in the hierarchical controllable very long video generation, with MLLM for keyframe generation and diffusion model for video rendering. Our subsequent experiments also demonstrate that existing high-quality video generation models trained by resource-rich institutions can be integrated with our MovieDreamer, producing better visually appealing results. This further demonstrates our flexibility. 4 E XPERIMENTS 4.1 I MPLEMENTATION D ETAILS We use pretrained models to reduce the training computational overhead, which is very common in the era of large models. We use the U-Net of pretrained SDXL (Podell et al., 2023) as our diffusion decoder. The encoder consists of a pretrained CLIP image encoder (ViT-L) (Radford et al., 2021) and a transformer-based compressor. The autoregressive model is initialized with a pretrained LLaMA-7B (Touvron et al., 2023) checkpoint. All MLPs used to align different modal inputs follow the architecture in LLaVA (Liu et al., 2023b). Please refer to Appendix A for more details about the network architecture and training. 4.2 E XPERIMENTAL S ETUP Dataset. The majority of our training data is sourced from Condensed Movies (Bain et al., 2020), with additional data collected using the same methodology as this dataset, resulting in 5M keyframes with corresponding script annotations. To systematically evaluate the effectiveness of our method, we construct a test dataset consisting of 100 long movies that are NOT included in the training set, with 1M keyframes after pre-processing. Each of these videos is processed through our proposed data pre-processing pipeline (see Appendix C), which accurately extracts and annotates keyframes. Evaluation metrics. We evaluate the effectiveness of various methods using the following metrics. The CLIP score (Radford et al., 2021) assesses semantic alignment between the plot and generated outputs. Quality is evaluated using the Aesthetic Score (AS) (Schuhmann et al., 2022), Fréchet 7
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:Table 1中,不加参考图的Ours长期一致性LT为0.814,StoryDiffusion为0.596;FID为2.043对4.643,低为好。但Aesthetic为6.093,低于StoryDiffusion的6.134。Ours-ref另有参考图条件,不能挑它的最好数字去代表不提供参考图的结果。
条件:仅限本地原始PDF的 Table 1;不同表格与实验不合并
PDF p.9, Table 1 · PDF p.9
Published as a conference paper at ICLR 2025 Table 1: Quantitative comparisons of different methods. ST and LT refer to our proposed short-term and long-term consistency metrics, respectively. noC denotes without continuous token supervision. Method CLIP ↑ Inception↑ Aesthetic↑ FID↓ ST↑ LT↑ StoryDiffusion 15.232 8.739 6.134 4.643 0.627 0.596 StoryGen 13.261 6.216 3.837 8.557 0.508 0.542 Ours 19.584 9.698 6.093 2.043 0.646 0.814 Ours-ref 20.071 9.842 6.288 1.912 0.701 0.893 Ours-noC 18.833 8.609 5.893 2.714 0.606 0.755 Ours-noC-ref 19.431 8.774 5.979 2.560 0.616 0.776 Table 2: Quantitative comparison on full-length video generation. Method CLIP↑ Inception↑ Aesthetic↑ CLIP-sim↑ StreamingT2V 15.304 7.636 4.119 0.624 SEINE 19.404 7.463 5.825 0.688 FreeNoise 14.327 6.532 3.194 0.612 Ours 19.520 8.642 6.049 0.704 Video results. We perform a detailed comparison between our method and existing methods for generating long videos. For text-to-video methods, we use detailed descriptions prepared in the test set as input. For image-to-video approaches, we employ keyframes generated by our methods as inputs. As illustrated in Table 2 and Figure 6 (b), our method significantly outperforms prior open-source models in terms of quality, demonstrating strong generalization capabilities. Most im- portantly, our method is capable of generating videos that last tens of minutes or even hours with little compromise in quality, achieving state-of-the-art results. Here, we compare existing methods with our enhanced video model. As shown in Appendix D, when integrated with enterprise-level closed-source video models, our approach demonstrates even better results. 4.4 A NALYSIS Continuous token supervision. We noticed a significant decline in the model’s ability to maintain ID consistency on the test set when using only L1 and L2 supervision. We believe this is because L1 and L2 losses are not good at modeling probability distributions, as they are more suitable for regression tasks. However, we need to model the complex conditional distribution of the autoregres- sive process. Therefore, we applied more refined supervision on continuous real-valued tokens. As illustrated in Figure 6, with continuous token supervision, the model is better capable of preserving target ID. Both the quality of the generated image and the preservation of character ID degenerate without continuous token supervision. Ours SEINE StreamingT2V FreeNoise ID w Con w/o Con (a) (b) Figure 6: (a) With continuous token supervision, our model demonstrates stronger generalization capabilities and achieves higher-quality results. Better character ID is preserved with continuous token supervision. (b) Visualization of long video generated by different methods. Anti-overfitting strategies. Large autoregressive models are powerful learners, making it easy for them to overfit the dataset. As shown in the first row in Figure 7, the generated contents are dominated by the input character. The model produces similar visual content even when given different text prompts. Our anti-overfitting strategies are designed to weaken the correspondence between character IDs and target frames, thus avoiding simple memorization. As can be seen in the second row, it helps produce diverse high-quality results that align well with the text description. 9
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:短期一致性主要用相邻含目标人物帧的特征相似度衡量;长期一致性检查抽样帧中是否出现目标人物。这些指标有助于评价身份保持,却不是完整剧情因果、动作物理或所有镜头连续性的证明。框架能扩展序列长度,不代表任何长度都没有累积错误。
条件:仅限本地原始PDF的 Evaluation metrics;不同表格与实验不合并
PDF p.8, Evaluation metrics · PDF p.8
Published as a conference paper at ICLR 2025 Image Distance (FID) (Heusel et al., 2018), and Inception Score (IS) (Salimans et al., 2016). For assessing consistency, we propose new metrics for short-term (ST) and long-term (LT) consistency. ST is measured by calculating the CLIP cosine similarity between adjacent frames containing the target character. LT consistency is evaluated by checking the presence of the target character in selected frames across the test set. Finally, we calculate the ratio of frames containing the target character to the total number of selected frames as a measure of the accuracy in maintaining long- term character consistency. Please refer to the Appendix B for more details about the evaluation metrics. wearing a suit people in the background gaze at the camera sitting, serious looking Ours StoryDiffusion StoryGen Figure 4: Qualitative comparisons of story generation. Please refer to the appendix E for more comparisons. Each keyframe is generated with the corresponding multimodal script as input. 4.3 C OMPARISON WITH THE S TATE - OF - THE -A RT Story generation. Many existing story generation methods focus on fine-tuning with small datasets, exhibiting poor generalization. Consequently, we compare our method only with those that demonstrate high generalization capabilities, namely StoryDiffusion (Zhou et al., 2024) and StoryGen (Liu et al., 2023a). As shown in Figure 4, StoryDiffusion consumes significant compu- tational overhead and tends to generate generic faces that do not align with the desired character. Similarly, StoryGen fails to preserve consistency and generates abnormal results. In contrast, our method achieves generating extremely long content while preserving both short-term and long-term consistency across multiple characters. The observation is also evidenced by the quantitative re- sults in Table 1, where our method achieves high scores in both LT and ST. Moreover, the higher CLIP score reflects that our generated results align well with the storyline. Better IS, AS, and FID scores demonstrate our method achieves high-quality images. We showcase more qualitative results in Appendix E. KeyFrame25 KeyFrame32 KeyFrame37 KeyFrame43 w Face ID w/o Face ID Figure 5: Ablations on face embedding. Character consistency is well-preserved with face embed- ding. The autoregressive model generates compressed tokens with multimodal script as input. The results are rendered by the decoder D, with compressed tokens as well as face embedding and de- scription embedding as input. 8
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
代码从哪里读
原始来源入口。已查看官方仓库:目前可见README和展示资源,Setup仍写Coming Soon,不能宣称训练代码和权重已经完整公开。仓库引用对应较早版本;本档案作者及结论按当前下载全文首页核对。未执行复现。