TL;DR
Live2Diff introduces the first uni-directional temporal attention mechanism for video diffusion models, enabling real-time, streaming video-to-video translation. By combining a warmup-anchored causal attention mask, an inference-time KV-cache, and pipelined denoising, it achieves temporal consistency and sharp style transfer at 16 FPS on a single consumer GPU (RTX 4090) without waiting for future frames.
What Problem Does This Paper Address?
Existing state-of-the-art video diffusion models rely heavily on bi-directional temporal self-attention: each frame attends to both past and future frames within a sequence to maintain temporal stability. While effective for pre-recorded offline videos, this architecture fundamentally breaks down in live streaming settings (e.g., virtual avatars, live-stream style filters), where future frames do not yet exist.
Current real-time alternatives, such as StreamDiffusion, process frames completely independently without temporal modeling. Although fast, this creates severe flickering and structural inconsistency over time. Meanwhile, methods that chunk frames or use sliding windows introduce noticeable latency, abrupt chunk-boundary transitions, or frame dropouts.
Methods
Live2Diff bridges the gap between autoregressive next-token prediction in Large Language Models (LLMs) and diffusion-based video translation:
- Uni-directional Temporal Attention with Warmup: Standard causal masking in video often leads to artifacts because unlike LLMs—which start with rich user-prompt context—a video diffusion model begins without pre-existing frame history. Live2Diff introduces a hybrid attention scheme:
- Warmup Phase: The first $L_w$ frames (e.g., 8 frames) are processed with standard bi-directional attention to establish a coherent anchor.
- Streaming Phase: Subsequent frames attend strictly backwards to the initial warmup frames and a sliding window of immediate predecessors, completely eliminating dependencies on future frames.
- Decoupled Positional KV-Cache: Because attention is causal, past Keys ($K$) and Values ($V$) can be cached across denoising steps. Because standard video architectures add sinusoidal positional encodings before linear projection, Live2Diff precomputes projections of the positional embeddings separately, allowing raw feature representations to be cached cleanly without recomputation.
- Pipelined Batch Denoising with LCM-LoRA: Multiple frames at successive noise levels are processed simultaneously within a single batch alongside Latent Consistency Model (LCM) adapters, cutting denoising steps down to 4.
- Lightweight Structure Conditioning: A monocular depth estimator (MiDaS) produces depth maps that are injected into the U-Net's initial convolutional layers to preserve geometry without heavy cross-frame warping.
Datasets
- Training: Video data gathered from Shutterstock downsampled to $256 \times 256$ resolution.
- Evaluation:
- Evaluated on DAVIS-2017 (90 object-centric video clips, resized to $512 \times 768$).
- Key frames were captioned using CogVLM, and stylized using community DreamBooth and LoRA style triggers (e.g., Flat-2D Animerge, Disco Elysium, Van Gogh).
Key Insights and Ideas
- Initial Warmup Tokens Act as Attention Sinks: Similar to StreamingLLM, keeping early anchor frames inside the attention window stabilizes identity and prevents drift, while a sliding window captures local motion dynamics.
- Positional Decoupling Enables Caching: Video temporal attention layers typically fuse features and positional embeddings early. Factoring out linear projections of positional encodings allows practical KV-caching in diffusion U-Nets, reducing latency by orders of magnitude.
- Temporal Causal Attention Outperforms Frame-Independent Pipelines: Enforcing causal temporal modeling prevents background jitter and texture drift far better than frame-by-frame image translation with static noise seeds.
Key Results
- Throughput and Latency: On a consumer NVIDIA RTX 4090 GPU (at $512 \times 512$), Live2Diff achieves a per-frame latency of 0.06s (~16 FPS). Removing the proposed KV-cache degrades per-frame latency to 20.43s.
- Structure Consistency: Live2Diff attained a Depth MSE of 1.12 on DAVIS-2017, substantially outperforming StreamDiffusion (1.72), FreeNoise (1.94), and Rerender (5.50).
- Temporal Smoothness: Scored 95.77 on temporal CLIP similarity and 0.0967 on optical flow warp error. While offline methods like FreeNoise achieved slightly higher scores, they require processing the entire future video at once (58+ seconds latency per frame).
- User Study: Live2Diff scored above a 70% to 97% win rate against StreamDiffusion, Rerender, and FreeNoise across 31 human participants evaluating structure fidelity and temporal consistency.
Limitations and Future Work
- Initial Warmup Latency: The system requires buffering the initial $L_w$ frames (typically 8 frames) to process them bidirectionally before smooth uni-directional streaming begins.
- Dependence on Depth Quality: While the network shows robustness to imperfect depth estimation, heavy structural distortion in the upstream monocular depth model can still affect geometry preservation.
- Future Work: Further exploration includes extending the causal attention framework to higher resolutions, interactive streaming avatar (VTuber) platforms, and zero-latency stream initialization.
Summary updated