Summary of JoyAI-Video-Edit: Real-Time Open-Ended Video Editing with Autoregressive Diffusion
Summary (Overview)
- JoyAI-Video-Edit is a 16B-parameter autoregressive diffusion framework that enables real-time, open-ended video editing at approximately 30 FPS on a single Nvidia B200 GPU at 720p resolution, without requiring access to future frames or predefined video duration.
- The method introduces chunk-wise autoregressive adaptation to convert a bidirectional offline editor into a causal streaming model, using a sliding temporal window and a global sink to bound computation and memory independently of stream length.
- Source-Anchored Distribution Matching Distillation (SA-DMD) distills the iterative diffusion process into a two-step generator, using source-anchored classifier-free guidance to preserve source fidelity and mitigate drift from imperfect autoregressive history.
- Long-Horizon Autoregressive Distillation (LHAD) performs segmented optimization over extended rollouts to directly supervise states affected by accumulated autoregressive errors, preventing temporal drift in long streams.
- Extensive evaluations show JoyAI-Video-Edit substantially outperforms existing streaming editors (e.g., outperforming XMax-X2.0 by 1.59 points overall on long videos) and remains competitive with strong offline systems like Kling-3.0 Omni and Bernini-R.
Introduction and Theoretical Foundation
Background and Motivation
Instruction-guided video editing is evolving from an offline post-production tool into a continuously available visual capability for applications such as live broadcasting, video communication, interactive entertainment, and real-time content creation. In these scenarios, edited frames must be produced as the source video arrives, requiring:
- Causal output: No access to future frames.
- Low response latency: Immediate visual feedback.
- Bounded computation and memory: Independent of stream duration.
- Stable editing quality: Over an unknown, potentially long duration.
Limitations of Existing Approaches
Most high-quality video editors are designed for offline, fixed-length inputs, processing entire clips using bidirectional or global temporal interactions. This approach has three key drawbacks for streaming:
- Dependence on future frames prevents causal output.
- Temporal tokens, attention states, and activation memory grow with input length.
- Bidirectional computation limits the reuse of cached states.
Applying an offline editor independently to consecutive clips introduces visible discontinuities at clip boundaries.
Key Challenges in Streaming Video Editing
Simply causalizing an offline editor is insufficient due to three core challenges:
- Train–Inference Mismatch: During training, autoregressive models condition on clean target history; at inference, they consume their own imperfect predictions. This causes reconstruction errors, color deviations, and appearance changes to propagate and accumulate into long-term drift.
- Source Fidelity vs. Temporal Consistency: Generated history promotes continuity but may propagate errors, while source conditioning preserves fidelity but may weaken editing consistency if not properly balanced.
- Few-Step Generation Gap: Real-time throughput requires few-step generation, which introduces a gap between the iterative, classifier-free-guided training target and the single-branch model used at deployment.
Methodology
3.1 Model Architecture
JoyAI-Video-Edit consists of three main components:
-
Multimodal Large Language Model (MLLM): Given the first frame of the source video and the editing instruction, it jointly processes visual and textual inputs to extract condition tokens that encode source-aware visual information and editing intent.
-
Causal Video VAE: Encodes the source video into latent sequences and maps optional reference images into the same latent space. Uses a spatiotemporal compression ratio of (temporal compression factor of 8, spatial compression factors of 24×24), so each latent frame represents eight video frames.
-
Multimodal Diffusion Transformer (MM-DiT): Jointly models condition tokens and latent visual tokens to generate edited-video latents.
The model supports both Video-to-Video (V2V) and Image-and-Video-to-Video (IV2V) editing.
3.2 Foundation Training
The training follows a multi-stage curriculum:
Stage 1: Text-to-Image (T2I) Pretraining at resolutions and to establish text-visual alignment and high-resolution appearance priors.
Stage 2: Text-to-Video (T2V) Training starting from the T2I checkpoint, introducing temporal modeling while retaining the T2I objective. Training begins at low resolution (256p) and low frame rates (12/24 fps), progressively increasing to 480p at 24 fps.
Stage 3: Image-Editing Training introducing I2I supervision to learn instruction-conditioned transformation and content preservation.
Stage 4: Bidirectional Video-Editing Training jointly optimizing V2V and IV2V supervision with preceding tasks. For a source video , editing instruction , optional reference image, and target , the VAE produces latents , , and . For noise level and Gaussian noise :
The bidirectional editor is trained with:
4.1 Chunk-wise Autoregressive Adaptation
The bidirectional model is adapted into a causal paradigm:
- Chunk-wise attention: Bidirectional attention within each chunk, causal across chunks.
- Sliding window: Active chunk attends to a fixed number of recent history chunks plus the first chunk as a global sink.
- Resampling Forcing: Clean history is replaced with on-policy estimates (single-step denoising rollout, detached from gradients) to reduce train–inference mismatch.
4.2 Source-Anchored Distribution Matching Distillation (SA-DMD)
To achieve real-time throughput, the model is distilled into a two-step generator using Distribution Matching Distillation (DMD). The system comprises:
- Causal generator
- Trainable fake-score model
- Frozen real-score model
SA-DMD anchors the teacher to the temporally aligned source chunk using classifier-free guidance (CFG) along independent axes:
where omits the aligned source latent , and omits the text condition. This renders the guided teacher a source-sharpened posterior, with balancing history continuity against source fidelity.
4.3 Long-Horizon Autoregressive Distillation (LHAD)
To expose distillation to compounded errors from long rollouts without OOM errors:
- Segmented optimization: Divide the sequence into shorter consecutive clips, compute SA-DMD backward pass per clip, clear the graph before generating the next. Gradients are accumulated across clips.
- Dynamic mirror looping: When target rollouts exceed available source video length, conditioning is extended via alternating forward and reversed sequences to preserve temporal continuity.
5. Real-Time Deployment
At deployment, the incoming video stream is divided into consecutive eight-frame chunks. Optimizations include:
- FP8 quantization
- Operator fusion
- Computation-graph compilation
- Bounded-history KV caching (first chunk as global sink + sliding window of recent chunks)
The stage-wise runtime on a single Nvidia B200 GPU: VAE encoding (22ms), DiT denoising (185ms), VAE decoding (19ms) per chunk, yielding 266ms cycle = 30.1 FPS.
Empirical Validation / Results
7.2 Automatic Evaluation
Short-video editing (OpenVE-Bench):
| Method | Params | Resolution | Overall | Global Style | Local Change | Background Change | Local Remove | Local Add |
|---|---|---|---|---|---|---|---|---|
| JoyAI-Video-Edit (Ours) | 16B | 720×1280 | 3.60 | 3.62 | 4.47 | 2.90 | 4.06 | 2.97 |
| SANA-Streaming | 2B | 704×1280 | 2.62 | 3.48 | 2.29 | 3.20 | 2.27 | 1.88 |
| LiveEdit | 1.3B | 480×832 | 2.00 | 2.18 | 2.73 | 2.05 | 1.55 | 1.51 |
| XMax-X2.0 | — | 832×1440 | 1.87 | 2.47 | 2.09 | 1.63 | 1.73 | 1.41 |
| Bernini-R | 27B | 480×848 | 3.72 | 4.16 | 4.47 | 3.25 | 3.88 | 2.89 |
| Kling-3.0 Omni | — | 1080×1920 | 3.64 | 4.03 | 4.15 | 3.20 | 3.46 | 3.36 |
JoyAI-Video-Edit outperforms all streaming methods and is competitive with strong offline systems.
Long-video editing (LongV2VBench):
| Method | Resolution | Throughput (FPS) ↑ | Overall ↑ | Background Change ↑ | Global Style ↑ | Local Add ↑ | Local Change ↑ | Local Remove ↑ |
|---|---|---|---|---|---|---|---|---|
| JoyAI-Video-Edit (Ours) | 720×1280 | 30.19 | 3.30 | 2.49 | 3.85 | 3.10 | 4.09 | 2.99 |
| XMax-X2.0 | 832×1440 | 20.90 | 1.71 | 1.36 | 2.07 | 1.64 | 2.08 | 1.40 |
| SANA-Streaming | 704×1280 | 14.51 | 1.64 | 1.19 | 2.02 | 1.50 | 1.72 | 1.85 |
JoyAI-Video-Edit achieves 44.4% higher throughput than XMax-X2.0 at a substantially lower resolution and more than double the throughput of SANA-Streaming.
7.3 Human Evaluation
Pairwise human preference results:
- JoyAI-Video-Edit receives 90%, 87%, 81%, and 87% preference votes against LiveEdit, SANA-Streaming, XMax-X2.0, and StreamDiffusionV2 respectively.
- Against Bernini-R: 48% JoyAI-Video-Edit vs. 44% Bernini-R.
- Kling-3.0 Omni and Seedance 2.0 each receive 56% preference in their comparisons.
7.4 Deployment Efficiency
| Method | Resolution | Full Pipeline Latency (s) ↓ | Full Pipeline FPS ↑ | DiT FPS ↑ | VAE FPS ↑ |
|---|---|---|---|---|---|
| JoyAI-Video-Edit (Ours) | 720×1280 | 2.68 | 30.19 | 37.21 | 200.00 |
| StreamDiffusionV2 | 480×832 | 4.48 | 18.07 | 40.64 | 37.06 |
| LiveEdit | 480×832 | 5.24 | 15.45 | 27.16 | 37.26 |
| SANA-Streaming | 704×1280 | 5.58 | 14.51 | 54.36 | 27.12 |
7.5 Ablation Study
| SA-DMD | LHAD | Overall ↑ | Background Change ↑ | Global Style ↑ | Local Add ↑ | Local Change ↑ | Local Remove ↑ |
|---|---|---|---|---|---|---|---|
| 2.81 | 2.45 | 3.61 | 1.97 | 3.43 | 2.58 | ||
| ✓ | 3.23 | 2.49 | 4.24 | 2.74 | 4.00 | 2.67 | |
| ✓ | 3.06 | 2.60 | 3.56 | 2.49 | 3.94 | 2.70 | |
| ✓ | ✓ | 3.30 | 2.49 | 3.85 | 3.10 | 4.09 | 2.99 |
SA-DMD provides the largest single performance boost (overall +0.42), while LHAD offers complementary gains (+0.25). Both together yield the best results.
Theoretical and Practical Implications
Theoretical Significance
- Source-Anchored Distribution Matching Distillation introduces a principled way to balance history continuity and source fidelity in autoregressive diffusion models by applying classifier-free guidance along independent axes. This provides a theoretical framework for few-step distillation in streaming settings.
- Long-Horizon Autoregressive Distillation demonstrates that segmented optimization over extended rollouts can effectively address error accumulation without incurring OOM, providing a scalable approach for long-duration generation.
- The combination of chunk-wise causal attention with a global sink provides a theoretical bound on per-step computation and memory independent of stream length.
Practical Implications
- Real-time deployment: The system achieves 30 FPS at 720p on a single GPU, making it practical for live broadcasting, video communication, and interactive entertainment.
- Open-ended editing: The model can edit videos of arbitrary length without predefined duration, enabling persistent stream processing for personalized visual effects and adaptive content transformation.
- Immediate visual feedback: The causal pipeline allows users to apply or revise instructions during playback without waiting for complete video processing.
- Diverse editing capabilities: Supports global style transfer, scene/background replacement, localized object manipulation, appearance modification, and motion-aware editing.
Conclusion
JoyAI-Video-Edit is a 16B-parameter autoregressive diffusion framework that transforms video editing from a fixed-clip post-production process into a continuous, interactive workflow. The key contributions are:
- Chunk-wise autoregressive adaptation with sliding window and global sink for bounded-memory causal generation.
- Source-Anchored Distribution Matching Distillation (SA-DMD) for two-step generation with source fidelity preservation.
- Long-Horizon Autoregressive Distillation (LHAD) for mitigating temporal drift in extended rollouts.
The system achieves 30 FPS at 720p on a single Nvidia B200 GPU, substantially outperforms existing streaming editors, and remains competitive with strong offline systems. This opens up new possibilities for real-time video editing in live broadcasting, real-time digital humans, interactive entertainment, game content creation, telepresence, and embodied simulation, providing a new interaction paradigm where video content can be modified continuously as it is captured, transmitted, or consumed.
Future directions: The paper suggests that this approach extends video editing beyond conventional offline production to continuous and interactive workflows, enabling creators to reduce repeated rendering and shorten iteration cycles, and enabling platforms to provide personalized visual effects and adaptive content transformation at scale.
Related papers
- How Far Is Document Parsing from Solved? PureDocBench: A Source-Traceable Benchmark across Clean, Degraded, and Real-World Settings
PureDocBench, a source-rendered benchmark with triple-track degradation, reveals document parsing is far from solved, with formula recognition as the field's shared bottleneck and clean-only evaluation misleading real-world deployment choices.
- Generating Pretraining Tokens from Organic Data for Data-Bound Scaling
SYNPRO's model-aware synthetic data generation, grounded in organic text via RL-optimized rephrasing and reformatting, matches or exceeds training on unique data in the data-bound scaling regime.
- GST-Bench: Can VLMs Develop Global Spatial Awareness from Video?
GST-Bench reveals a massive gap in global spatial reasoning, with top VLMs scoring 42.68 versus human 79.08, but fine-tuning Qwen3-VL-8B surpasses all proprietary models.