Magic 1-For-1: Generating One Minute Video Clips within One Minute
Magic 1-For-1提出了一种高效的视频生成模型,通过将文本到视频生成任务分解为文本到图像生成和图像到视频生成两个子任务,实现了在保持高质量的同时显著减少计算成本。
更新于 2025-02-12。作者:Hongwei Yi、Shitong Shao、Tian Ye、Jiantong Zhao、Qingyu Yin、Michael Lingelbach、Li Yuan、Yonghong Tian、Enze Xie、Daquan Zhou。
中文摘要
在这份技术报告中,我们介绍了 Magic 1-For-1(Magic141),一个具有优化内存消耗和推理延迟的高效视频生成模型。其核心思想很简单:将文本到视频的生成任务分解为两个更简单的任务,即文本到图像生成和图像到视频生成,用于扩散步骤蒸馏。我们验证了,使用相同的优化算法,图像到视频任务实际上比文本到视频任务更容易收敛。我们还探索了一系列优化技巧,从三个方面减少训练图像到视频(I2V)模型的计算成本:1)通过使用多模态先验条件注入加速模型收敛速度;2)通过应用对抗性步骤蒸馏加快推理延迟;3)通过参数稀疏化优化推理内存成本。借助这些技术,我们能够在3秒内生成5秒的视频片段。通过应用测试时间滑动窗口,我们能够在1分钟内生成一分钟长的视频,视觉效果和运动动态显著提升,平均每生成1秒视频片段只需不到1秒。我们进行了一系列初步探索,以找到扩散步骤蒸馏过程中计算成本和视频质量之间的最佳权衡,希望这能成为开源探索的良好基础模型。代码和模型权重可在https://github.com/DA-Group-PKU/Magic-1-For-1获取。
英文摘要
In this technical report, we present Magic 1-For-1 (Magic141), an efficient video generation model with optimized memory consumption and inference latency. The key idea is simple: factorize the text-to-video generation task into two separate easier tasks for diffusion step distillation, namely text-to-image generation and image-to-video generation. We verify that with the same optimization algorithm, the image-to-video task is indeed easier to converge over the text-to-video task. We also explore a bag of optimization tricks to reduce the computational cost of training the image-to-video (I2V) models from three aspects: 1) model convergence speedup by using a multi-modal prior condition injection; 2) inference latency speed up by applying an adversarial step distillation, and 3) inference memory cost optimization with parameter sparsification. With those techniques, we are able to generate 5-second video clips within 3 seconds. By applying a test time sliding window, we are able to generate a minute-long video within one minute with significantly improved visual quality and motion dynamics, spending less than 1 second for generating 1 second video clips on average. We conduct a series of preliminary explorations to find out the optimal tradeoff between computational cost and video quality during diffusion step distillation and hope this could be a good foundation model for open-source explorations. The code and the model weights are available at https://github.com/DA-Group-PKU/Magic-1-For-1.
解读
一句话总结
Magic 1-For-1提出了一种高效的视频生成模型,通过将文本到视频生成任务分解为文本到图像生成和图像到视频生成两个子任务,实现了在保持高质量的同时显著减少计算成本。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:传统的视频生成模型计算成本高,限制了其应用。
- 现有方案不足:现有的视频生成模型在减少计算成本的同时,往往牺牲了视频质量。
- 研究目标:提出一种高效的视频生成模型,在保持高质量的同时显著减少计算成本。
问题2:论文的核心创新点是什么?
- 技术创新:将文本到视频生成任务分解为文本到图像生成和图像到视频生成两个子任务。
- 方法改进:采用多种优化技巧,包括多模态先验条件注入、对抗步骤蒸馏和参数稀疏化。
- 优势:与现有方法相比,Magic 1-For-1在保持高质量的同时,显著减少了计算成本。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在自定义VBench、General VBench和传统指标(如FID、FVD和LPIPS)上进行实验。
- 性能提升:Magic 1-For-1在多个评估维度上优于现有方法,包括运动动态和视觉保真度。
- 对比结果:Magic 1-For-1在性能和效率方面均优于包括CogVideoX-I2V-SAT、I2Vgen-XL、SEINE-512x320、VideoCrafter-I2V和SVD-XT-1.0在内的其他开源TI2V模型。
问题4:这个研究的实际应用价值是什么?
- 应用场景:视频生成、动画制作、虚拟现实等领域。
- 实施建议:利用Magic 1-For-1生成高质量的视频内容。
- 局限与展望:当前模型在数据集平衡性和多样性方面存在局限性,未来可以进一步优化模型以提升其泛化能力。