FastFrames: Video Generation at Interactive Latency

AK's Picks GenAI Diffusion TDIG
自回归视频扩散模型能够依据新的观测数据和输入生成视频帧,因而成为实现交互式视觉体验的一种极具前景的技术途径。然而,现有模型的运行速度比流畅交互所需的速度慢了数个数量级。本文提出 FastFrames——一类快速自回归视频扩散模型家族,在不牺牲生成质量的前提下实现了交互级的低延迟响应。我们对当前最先进的模型推理流程进行了性能剖析,结果发现:一些通常被视为固定不变的底层实现细节(例如变分自编码器(VAE)解码与键值(KV)缓存更新操作),实际上占据了端到端推理延迟的一半以上。我们挑战了这些组件“不可或缺”的固有假设,并以轻量级替代方案予以替换。其中,参数量为13亿(1.3B)的FastFrames变体,在单块B200 GPU上每帧耗时仅36毫秒,即每秒可输出28帧(RPS),其生成质量与当前最先进的模型相当,而后者运行速度却比它慢近8倍;参数量为140亿(14B)的变体则在配备8块B200 GPU的节点上实现每帧45毫秒、即每秒22帧(RPS)的推理速度,同时显著提升了生成视频的视觉质量与真实感。实验表明,FastFrames可切实支持多种实时交互式应用,例如基于摄像头输入条件或物理规律约束的视频生成任务。
Autoregressive video diffusion models generate frames based on new observations and inputs, making them a promising medium for interactive visual experiences. However, existing models are orders of magnitude too slow for fluid interaction. This paper introduces FastFrames, a family of fast autoregressive video diffusion models that achieves interactive latency without compromising quality. We profile the inference pipeline of state-of-the-art models and find that operations often treated as fixed implementation details, such as VAE decoding and KV cache updates, in fact account for over half of end-to-end inference latency. We challenge the assumption that these components are indispensable and replace them with lightweight alternatives. Our 1.3B variant runs at 36 ms per frame, or 28 responses per second (RPS), on a single B200 GPU while matching the generation quality of a state-of-the-art model that is nearly 8x slower. Our 14B variant runs at 45 ms per frame, or 22 RPS, on an 8x B200 GPU node and yields significantly better visual quality and realism. We show that FastFrames enables real-time interaction in applications such as camera-conditioned and physics-conditioned video generation.
许愿