TL;DR
StreamingEffect is a novel real-time framework designed for high-quality, human-centric streaming video effect generation (such as adding virtual makeup, accessories, or stylizations on the fly). By distilling a high-quality bidirectional teacher model into a causal autoregressive student and reducing the denoising process from 50 steps to just 4, it achieves smooth 720p video editing at 14.1 FPS on a single GPU. The authors also introduce VideoEffect-130K, the largest paired dataset of its kind, to bridge the data gap in human-centric video editing.
What Problem Does This Paper Address?
Live video streaming—spanning e-commerce, vlogging, and entertainment—increasingly relies on visual effects to boost viewer engagement. However, current industry solutions depend heavily on rigid, manually designed template pipelines (like detection-tracking-attachment).
While generative video diffusion models offer incredible expressiveness, adapting them to live streaming introduces severe challenges:
- Latency Constraints: Standard diffusion models require dozens of denoising steps, making real-time streaming impossible.
- Consistency: The model must seamlessly inject new effects while strictly preserving the subject's identity, body structure, and background across long video streams without flickering or drifting.
- Data Scarcity: Existing video editing datasets are either small, synthetic, or not tailored to human-centric visual effects.
Methods
StreamingEffect addresses these challenges using an in-context video editing architecture combined with a specialized two-stage distillation pipeline.
1. Reference-Conditioned In-Context Architecture
Built on top of the Wan2.2-TI2V foundation model, the framework avoids complex auxiliary control branches. Instead, it encodes the source video, target video, and an optional reference effect image into a single, interleaved latent token sequence: $$\text{[z}^r \mid \text{z}^x_1 \mid \text{z}^y_1 \mid \text{z}^x_2 \mid \text{z}^y_2 \mid \dots \mid \text{z}^x_M \mid \text{z}^y_M\text{]}$$ This allows the transformer to directly model the relationships between the original content, the reference effect, and the edited output frames.
2. Two-Stage Distillation Pipeline
To make the model deployable for low-latency streaming, the authors first train a high-quality bidirectional teacher on short clips and then distill it into a causal student via two distinct stages:
- Stage 1: Bidirectional-to-Causal Adaptation: The full attention mechanism is replaced with a block-causal mask, and a persistent KV cache is introduced so the model only processes incoming video chunks. Crucially, because streaming inference mixes clean historical chunks with a noisy current chunk, the authors train the student using independent, heterogeneous timesteps per chunk.
- Stage 2: On-Policy Self-Forcing for Few-Step Generation: To close the exposure-bias gap (where errors accumulate over long rollouts) and drastically accelerate inference, the student is trained on its own autoregressive predictions. Using an SNR-weighted regression objective, the denoising process is compressed from 50 steps down to just 4 steps.
3. Keyframe Control
The framework supports interactive control. Users can inject a new text prompt or a reference image (e.g., from an upstream image editor) mid-stream, and StreamingEffect will smoothly propagate that effect to all subsequent frames.
Datasets
To overcome the lack of training data, the authors constructed VideoEffect-130K, which contains 130,000 high-quality paired videos across 600 effect categories. It consists of two subsets:
- Effect-Rendering Subset (70K videos): Curated from short-video platforms (TikTok, Douyin, Kuaishou), utilizing platform-style effect libraries aligned via facial keypoints.
- General Editing Subset (60K videos): Generated using synthetic video editing pipelines to cover open-ended text instructions (e.g., object manipulation, style transfer, background editing).
Key Insights and Ideas
- Embracing Mixed-Noise States: Standard diffusion models assume a uniform noise level across an entire video clip during training. StreamingEffect recognizes that streaming inference is inherently heterogeneous—past frames in the KV cache are completely clean, while the current frame is noisy. Training the model with independent chunk-level timesteps is vital for stability.
- On-Policy Self-Forcing is Essential for Few-Step Video: Naively dropping the sampling steps of a causally adapted model to 4 steps results in severe quality degradation. Rolling out the model autoregressively during training (Self-Forcing) forces it to learn how to correct its own past mistakes, which stabilizes ultra-low-step generation.
Key Results
StreamingEffect achieves state-of-the-art performance in both quantitative metrics and human/VLM perceptual evaluations.
- Real-Time Efficiency: While the bidirectional teacher runs at a sluggish 0.14 FPS, the distilled 4-step student achieves 14.1 FPS at 720p resolution on a single NVIDIA H200 GPU.
- Fidelity and Consistency: In image-guided editing benchmarks, StreamingEffect outperforms open-source baselines (Kiwi-Edit, OmniWeaving) and commercial models (Kling O1, Kling 3.0 Omni) in full-reference metrics like MSE, PSNR, and LPIPS.
- VLM Evaluation: Using Gemini 2.5 Pro and GPT-4o as automated judges, the model scored significantly higher in temporal consistency (V-Cons) and effect-reference alignment (E-Ref) compared to competing methods, proving its ability to suppress flickering and identity drift.
Limitations and Future Work
Because VideoEffect-130K is heavily sourced from short-video and live-streaming platforms, the dataset is overwhelmingly human-centric (dominated by faces, portraits, and human bodies). As a result, StreamingEffect generalizes beautifully to human accessories and makeup but performs poorly on non-human scenarios, such as close-ups of inanimate objects, animals, or landscapes. The authors note that expanding the dataset to include non-human effect categories is a crucial next step for creating a truly universal streaming video editor.
Summary updated