UnityShots: Memory-Driven Multi-Shot Audio-Video Generation with Boundary-Aware Gating

Jiehui Huang, Yuechen Zhang, Bin Xia, Jiahao Wang, Xu He, Zhenchao Tang, Meng Chu, Xin Tao, Pengfei Wan, Jiaya JiaarXiv 2026

TL;DR

UnityShots is a memory-driven framework designed to generate coherent, multi-shot audio-video sequences by decoupling long-term identity anchors from short-term motion context. By utilizing a novel boundary-conditioned gating mechanism and a stratified position encoding, it prevents identity drift across cuts while maintaining local continuity. The system sets a new standard for open-source multi-shot generation and introduces a diverse, multi-cultural benchmark to advance cinematic AI.

What Problem Does This Paper Address?

While AI video generation has made massive strides in creating stunning single-shot clips, generating a coherent multi-shot video (like a short film or music video) remains a major challenge. When a video cuts from one shot to another, the AI must maintain subject appearance, scene context, and speaker identity across the cut, all while handling an abrupt visual change.

Existing approaches fall into three flawed categories:

  1. End-to-end models train over full sequences but are strictly limited by GPU memory and cannot scale to long narratives.
  2. Shot-by-shot models generate videos sequentially but suffer from "identity drift" as the conditioning window slides away from the opening frame.
  3. Agent-orchestrated pipelines use LLMs to stitch together independent clips but lack a core video backbone that actually understands cross-shot relationships.

UnityShots addresses this by treating memory not as a monolithic block, but as a structured, dual-tier system that separates global narrative anchors from local transition dynamics.

Methods

Built on top of the LTX-2.3 foundation model, UnityShots introduces three main architectural innovations to handle multi-shot audio-video generation:

  • Dual-Slot Video Memory Bank: Instead of a single sliding context window, the video stream maintains two fixed-size slots. The Long-Term Memory (LTM) slot uses latent frames from the opening shot to anchor the character's identity across the entire sequence. The Short-Term Memory (STM) slot captures frames from the immediately preceding shot's tail to maintain local motion and lighting continuity. For the audio stream, a fixed reference speaker token is injected at every shot to preserve vocal timbre without needing a sliding audio bank.
  • Boundary-Conditioned Memory Gating: At every cut, a gating mechanism determines how much memory to retain or overwrite. This gate fuses visual cut probabilities (detected via TransNetv2) and audio beat-tracker signals to mimic human film-editing rhythms. A discrete cut-type prior (fed via AdaLN) acts as an inference control knob, allowing users to explicitly adjust transition strength.
  • Strata-RoPE Position Encoding: To help the model's attention mechanism distinguish between long-term memory, short-term memory, and the current noisy shot without adding extra tokens, the authors partition the temporal Rotary Position Embedding (RoPE) axis into three distinct, non-overlapping bands (strata).
Figure 2. UnityShots architecture. Left: Strata-RoPE partitions the temporal band of the video stream into three non-overlapping strata for the long-term memory (LTM) slot, the short-term memory (STM) slot, and the current shot. Right: at each shot boundary the composite signal bN produces two gating coefficients gltm and gstm that update the two video memory slots before the dual-stream DiT denoises the current shot; the audio stream injects a fixed reference speaker token at every shot without memory gating.

Datasets

The authors curated a massive training dataset and a robust evaluation benchmark:

  • Training Set: 146k highly annotated clips (116k cinematic shots and 30k music video shots), complete with shot-level captions, speaker diarization, character anchoring, and transition labels.
  • Multi-Cultural Multi-Shot Benchmark: A new evaluation dataset consisting of 200 unique sequences spanning six ethnic regions (East Asian, Western, South Asian, African, Latin, Middle Eastern) and over 10 languages. Each sequence includes per-shot first frames, reference portraits, reference audio, and transition labels to stress-test cross-shot coherence.

Key Insights and Ideas

  • The Complementarity of LTM and STM: The biggest "aha" moment is that long-term identity and short-term continuity are distinct problems requiring different memory dynamics. Ablation studies showed that using STM alone provides smooth transitions but suffers from identity drift, while LTM alone preserves identity but causes jarring, discontinuous cuts. They must work together.
  • Audio-Visual Boundary Fusion: Real film editing relies heavily on audio cues (like musical beats and dialogue cuts). Fusing visual cut probabilities with beat-tracking signals allows the memory gating mechanism to make more natural, content-adaptive updates at shot boundaries.
  • The "Culture vs. Memory" Trade-off: Interestingly, the authors found that enforcing strong identity memory slightly reduces the model's generation of culture-specific visual details from text prompts. This highlights a fundamental tension in diffusion models between conditioning stability and prompt flexibility.

Key Results

  • Open-Source Dominance: In Image-to-Video (I2V) mode, UnityShots outperforms all open-source baselines (including LTX-2, ID-LoRA, and MOVA) across all cross-shot coherence metrics, boasting a +0.40 improvement in Narrative Coherence (NC) and +0.69 in Story consistency over the next best open-source model.
  • Matching Closed-Source: UnityShots matches the multi-shot performance of the powerful closed-source Kling AI, while significantly outperforming it on audio metrics (+0.47 Audio AES) because Kling only generates ambient sound rather than speaker-consistent dialogue.
  • Long-Sequence Robustness: On sequences with 6+ shots—where baseline models completely collapse due to identity drift—UnityShots maintains near-perfect narrative and character consistency ratings from automated LLM evaluators (Gemini-2.5-Pro) and human judges alike.

Limitations and Future Work

While UnityShots marks a major step forward, it still faces a few hurdles:

  • Subtitle Instability: Text rendering and subtitles occasionally glitch or become unstable across shot boundaries.
  • Complex Scenes: Visual quality degrades in complex layouts or scenes featuring multiple simultaneous speakers.
  • Future Directions: The authors propose leveraging their companion agent system to perform iterative per-shot frame refinement, creating a fully automated pipeline that can detect and fix visual artifacts post-generation without losing narrative continuity.

Summary updated

BibTeX
@misc{huang2026unityshots,
  author = {Jiehui Huang and Yuechen Zhang and Bin Xia and Jiahao Wang and Xu He and Zhenchao Tang and Meng Chu and Xin Tao and Pengfei Wan and Jiaya Jia},
  title = {{UnityShots: Memory-Driven Multi-Shot Audio-Video Generation with Boundary-Aware Gating}},
  year = {2026},
  eprint = {2606.21661},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.21661},
}
Figure