InfinityEdit:轻量级编辑点火适配器实现无限视频编辑
研究论文 · 2026/08/24
现有基于大型预训练模型的视频编辑方法通常假设在固定时间跨度内逐帧对齐编辑视频与源视频,这无法处理开放式流(如直播游戏或持续镜头的相机移动)。本文提出无限视频编辑任务,要求模型在给定前序片段和编辑指令时,生成应用编辑的下一段视频,并重复处理连续指令。该任务面临两个挑战:编辑必须是忠实延续而非逐帧重写,且生成质量需在编辑累积时保持稳定。为此,我们设计了数据收集流程,并提出InfinityEdit,一种轻量级编辑适配器,赋予流式视频生成器无限编辑能力。适配器包含三个注意力模块:历史交叉注意力、时间因果自注意力和编辑交叉注意力。推理时,适配器仅在编辑指令到达的块中激活,后续块由原始模型生成,从而保持无限生成能力。实验表明,InfinityEdit在每次编辑下忠实延续流,并在无限编辑序列中保持稳定。
该论文提出了一种新颖的视频编辑任务(无限视频编辑),解决了现有方法无法处理开放式流的问题,并设计了轻量级适配器,具有实际应用价值。实验验证了方法的有效性,对视频编辑领域有重要贡献。
With large pretrained models, existing methods have effectively improved instruction-based video editing. However, most of them rely on an in-place editing assumption. They align the edited video with the given source clip frame by frame over a fixed time span. This pattern fails for open-ended streams, e.g., restyling a live game or applying a camera move to an ongoing shot. In such cases, edits must extend to future frames as they arrive, rather than be applied to a static input clip. In this paper, we study this setting and name it infinite video editing: given a preceding segment and an edit request, a model must generate the next segment that continues the stream while applying the requested edit. This process repeats as an unbounded sequence of edit instructions arrives. This task brings two challenges: the edit must be a faithful continuation rather than a frame-wise rewrite, and generation quality must remain stable as edits accumulate. To address them, we first design a data-collection pipeline for infinite video editing. Based on the collected data, we propose InfinityEdit, a lightweight edit adapter that equips a streaming video generator with unbounded editing ability. The adapter contains three attention modules. History cross-attention guides the denoising frames using the input frames. Temporal causal self-attention keeps temporal cues flowing only from earlier frames to later ones. Edit cross-attention injects the edit request into generation. During inference, the adapter is activated only in the chunk where an edit request arrives. Subsequent chunks are generated by the original model with a reset anchor frame. This scheme applies the edit while preserving the original model's infinite generation ability. Extensive experiments show that InfinityEdit faithfully continues the stream under each edit, and stays stable over unbounded edit sequences.