StreamErase:迈向超快速流式视频擦除
研究论文 · 2026/10/15
当前视频对象移除方法延迟极高(每视频数分钟)且非因果处理,无法实时交互。我们提出StreamErase,在单GPU上实现亚秒级延迟和最高26 FPS的流式生成。该方法首先增强文本到视频模型,加入掩码输入以生成高质量视频,擦除目标对象并合成连贯背景,但不进行实时推理。因此,我们逐步将擦除能力从强大的双向基础模型转移到高效的单向流式擦除器,实现长时程擦除而不牺牲视觉保真度。在长时程(可能无限)视频生成中面临几个关键挑战:(1)弥合有限长度训练与长时程外推的域差距,(2)通过防止误差累积保持高质量,(3)保持快速推理,且不随上下文增长增加计算成本。为解决这些挑战,我们精心设计了带有注意力汇的滑动窗口因果注意力。通过在训练中结合自展开与注意力汇以及KV缓存滚动,我们模拟推理时的固定上下文窗口外推,实现任意长视频的恒速生成。最后,我们建立了专用基准LongErase,用于流式长视频对象移除。与现有视频对象擦除模型相比,我们的模型表现强劲,并很好地泛化到真实世界视频场景,独特地支持无限长度流式处理。使用StreamErase,用户可以输入掩码并实时看到擦除结果展开,提供真正的交互体验。
StreamErase首次实现超快流式视频擦除,支持无限长度和实时交互,解决了现有方法延迟高、无法实时处理的问题,对视频编辑和生成领域有重要推动。
Current video object removal methods suffer from prohibitive latency (minutes per video) and non-causal processing that prevents real-time interaction. We present StreamErase, enabling sub-second latency with up to 26 FPS streaming generation on a single GPU. Our approach first augments a text-to-video model with mask input to generate high-quality videos that erase target objects and synthesize coherent backgrounds, but does not perform inference on the fly. As such, we progressively transfer the erasing capability from a powerful bidirectional foundation model to an efficient unidirectional streaming eraser, enabling long-horizon erasing without sacrificing visual fidelity. Several key challenges arise when generating videos over long, potentially infinite horizons: (1) bridging the domain gap from training on finite length and extrapolating to long horizons, (2) sustaining high quality by preventing error accumulation, and (3) maintaining fast inference, without increasing computational cost as the context grows. To address these challenges, we carefully designed sliding-window causal attention with attention sinks. By incorporating self-rollout with attention sinks and KV cache rolling during training, we simulate inference-time extrapolations with a fixed context window, enabling constant-speed generation of arbitrarily long videos. Finally, we establish a dedicated benchmark, LongErase, for streaming long-video object removal. Our model achieves strong performance compared to existing video object erasing models and generalizes well to real-world video scenarios, uniquely enabling infinite-length streaming. With StreamErase, users can input a mask and see the erasing results unfold in real-time, delivering a truly interactive experience.