TL;DR
Streaming real-time video from a massive cloud-based AI model feels great—until your Wi-Fi hiccups and the picture freezes. LatentDuet splits the job between a large cloud model and a tiny model on your device: the edge model always generates the next video chunk, while the cloud sends compact corrections before it hits the screen. If the network drops out, playback never stalls—you just watch the edge model’s best guess until the cloud catches up.
What Problem Does This Paper Address?
Autoregressive video diffusion models generate video one short chunk at a time, reusing a key–value (KV) cache of past frames much like a language model predicts the next word. The best open models have around 14 billion parameters and require data-center GPUs. To watch their output, the cloud has to stream pixels (using a codec like H.264), which ties playback directly to the network. Because interactive streams can't buffer far ahead, any late packet freezes the video.
Running a smaller (~1B parameter) model locally avoids stalls, but the video quality is visibly weaker. Meanwhile, existing hybrid schemes that pair a small and large model on a single machine pass internal KV caches back and forth—state that is over 1,400× larger than the video latent itself (0.86 GB per chunk), making it impossible to ship across a wide-area network.
Methods
LatentDuet keeps both the cloud (14B) and edge (1.3B) models synchronized on the exact same history of displayed chunks, using a shared CPU-generated random seed so both sides are deterministic.
- Closed-loop residual coding: Because the cloud knows the shared history and seed, it runs a local replica of the edge model to see what the edge will predict ($E_m$). It then computes the difference between its own output ($C_m$) and the edge's prediction, compresses this residual using a training-free 4×4 block Discrete Cosine Transform (DCT) and entropy coding, and sends only the residual. The edge adds the residual to its prediction, displays the chunk through a fast lightweight decoder (TAEHV), and both sides append the exact same reconstructed chunk to their KV caches.
- Graceful outage fallback: If a residual misses its playback deadline, the edge immediately displays its own generated chunk and appends it to its history. It later reports the missed chunk indices so the cloud's replica can replay them and resync.
- Two LoRA adapters on one backbone: The authors give the 1.3B edge model two separate low-rank adapters (LoRAs): a predictor adapter distilled to minimize residual bits, and a sampler adapter (scaled by $\alpha = 0.4$) trained to smoothly continue the cloud's video during outages.
- Temporal skipping at low bitrates: Rather than cranking up quantization—which blurs the video—LatentDuet's lowest bitrate tiers send a correction only every $k$-th chunk (skip-2 or skip-4) and let the edge sampler fill in the rest.
Datasets
- Training (Distillation): 971 prompts from MovieGen.
- Evaluation: 32 prompts from MovieGen (5.25 s clips) for main results, 16 prompts from VBench for generalization to unseen prompts, and 8 MovieGen prompts (15 s clips) for long-run drift tests.
- Network Simulation: 86 real-world Norwegian HSDPA cellular commute traces (replayed across 430 simulated 120-second sessions).
Key Insights and Ideas
- A good predictor is a bad sampler: Distilling the edge model to minimize residual bitrate makes it regress toward the conditional mean of the cloud's output. That's great for compression, but if you actually display its output during an outage, the video looks blurry (standalone MUSIQ drops from 68 to 25). Splitting prediction and sampling into two separate LoRA adapters resolves this rate–distortion–perception tradeoff.
- Correct the future, not the past: Injecting late cloud chunks into the edge's past history doesn't work—it fails to help if it arrives more than one chunk late, and causes jarring visual jumps at chunk boundaries. Correcting chunks before they are displayed avoids retroactive changes.
- Latent residuals are not white noise: Adjacent elements in the latent residual are spatially correlated, so a simple, integer-reproducible 4×4 block DCT saves significant bits without needing a heavy learned hyperprior codec.
Key Results
- Cloud quality at video-call bitrates: With a 14B cloud model and 1.3B edge model, LatentDuet achieves a MUSIQ perceptual quality score of 71.4 at 1.25 Mbps, virtually matching the cloud model's 71.5.
- Bitrate savings: Predicting residuals saves 13–39% of the bits required to send the cloud's latent under the same DCT codec. Below ~1 Mbps, LatentDuet stays closer to the cloud's output (measured by LPIPS) than H.264.
- Zero stalls on cellular networks: Across 430 simulated cellular sessions, chunk-wise H.264 streaming stalls for 17.8% of the session time. LatentDuet never stalls, achieving higher fidelity-based QoE than H.264 in 92% of sessions at measured bandwidth (100% at half bandwidth, 70% at double).
- Resilient to outages: During a 9.75 s outage, mean per-chunk MUSIQ drops by just 0.43 points, and fidelity recovers within three chunks once corrections resume.
Limitations and Future Work
The authors note several practical constraints:
- Tight compute margins: The 14B cloud model takes 3.20 s per 0.75 s chunk on a single RTX PRO 6000 (so the network simulations assume an on-time cloud). On an RTX 5090, the edge takes 0.69 s per 0.75 s chunk—real-time, but with only an 8% margin, and only if it knows in advance whether a residual is arriving.
- Decoder floor: Using the tiny TAEHV decoder for real-time edge display introduces a small fidelity floor (LPIPS $\approx 0.035$) compared to the full VAE.
- Evaluation scope: The network results are trace-driven with a fixed 80 ms RTT and no TCP dynamics or packet loss, and only one model pair was tested. Furthermore, if fallback chunks are compared against an independent cloud-only run rather than a same-history reference, the QoE win rate over H.264 drops from 92% to 21%.
Summary updated