Under review

Separating What from When

Fine-Grained Temporal Control for Joint Audio-Video Generation

Yichen Liu1, Quanwei Zhang2, Haozhe Wang3, Donghao Zhou4, Xiaojie Li, Yang Shi2, Jiaming Liu2, Ruihua Huang2, Yingtian Zou5, Daquan Zhou1

0.042s

Mean shot boundary error about one frame at 24 fps, down from 1.11 s on the same base model

01

Video overview

02

Generated examples

Requested
the shot or line written in the script
Now
the interval under the playhead
Playhead
current position, synchronised with the video
03

Abstract

Audio-video generation is shifting from prompt following to script execution, where success depends on placing the requested content at the requested time. A director-style script schedules shots and spoken lines on one clock, so a plausible clip can still fail by cutting late or letting dialogue cross the wrong boundary. An interval defines the target, but the generator still needs a way to vary each script element's influence over video and audio queries. We formulate this missing operation as temporal routing. Temporal Context Routing (TCR) realizes it by adding an interval-derived timing score to content-based text-attention logits, thereby factorizing unnormalized attention mass into what and when terms on a shared audio–visual clock.

04

Method

TCR applied to the video and audio towers of a joint backbone
Figure 1. Blue and green are the video and audio towers in (b), but a shot and a spoken line in (a) and (c); gold always marks time. (a) The script, each interval a gold bar. (b) The intervals bypass the text encoder and arrive as a routing term on a gold side channel into text cross-attention. (c) Each interval becomes a duration-normalized arc reaching its floor at its own endpoints.

Time never enters the text encoder

Every time_range field is stripped from the script before tokenization and kept in an index-aligned timing map. Shot, Event, Reference and Global records are matched back to tokenizer positions, so each content token inherits the interval of the record it belongs to. Tokens the script never placed — padding, special tokens, register slots — take a sentinel interval and receive no routing term at all.

One term added to the attention logits

For a token with interval centre c and radius r, and a latent query at wall-clock time t, we add B = −β(t−c)2 / 2r2 to the pre-softmax text cross-attention logit. Because the terms combine additively, the unnormalized attention weight factorizes: semantic evidence selects what fits, the routing term decides when it matters. TCR has no learned parameters, and β is fixed at 5 everywhere.

Normalized by duration, not by a fixed width

Dividing by each record's own radius makes the profile relative to its duration, so a 0.8-second reaction and a 4-second establishing shot are treated alike rather than gated uniformly. Adjacent intervals meet their shared boundary at the same value, making the handoff between them duration-independent.

Both towers read the same clock

The routing term reads only wall-clock seconds, so a single function compiled once from the script is evaluated at the query times of each branch. The two routing matrices differ in shape because the latent lattices differ; what is shared is the function and its clock. A dialogue token and the shot it crosses are therefore routed against the same timeline.

05

Construction of data

Three-stage pipeline for building multi-shot audio-visual clips with corrected timings
Figure 2. The pipeline traced on real data; each panel header names the tool. (a) A clip is kept only when both boundaries fall in speech-free regions; interior cuts are retained, making the unit multi-shot. (b) Gemini proposes a structured record with provisional intervals. (c) Shot detection relocates those cuts and word alignment re-times each line from audio.
  1. Cut on sound, not on picture

    Source episodes are split where the speech band goes silent, under an asymmetric rule: a clip must begin and end inside a speech-free region, while visual cuts inside it are deliberately kept. The resulting units are multi-shot clips in which dialogue routinely continues across a shot change and a line is often spoken by someone momentarily off screen — exactly the structure that fixed-length windows or per-shot clipping would destroy.

  2. Propose structure with a captioner

    Gemini proposes grounded Reference, Shot, Event and Global records, using stable identifiers instead of repeated appearance descriptions and keeping dialogue in its original spoken language. Fields that must not reach the model, most importantly transcribed burned-in subtitles, are removed at this stage.

  3. Replace guessed times with measured ones

    A record is retained only when its shot count agrees with a separately run content-based detector; a disagreement discards the clip rather than forcing an alignment. On agreement the detector's cut times replace the provisional boundaries, and WhisperX supplies word-level timestamps from the audio alone to re-time every line. The captioner supplies semantic structure; the detectors supply the clock.

06

Comparison with open-source generators

System Video quality Temporal accuracy Speech & A/V sync
IQ ↑AES ↑ Shot B-MAE (s) ↓Shot IoU ↑ Count Acc. (%) ↑Acc@0.5s (%) ↑ WER (%) ↓Sync-C ↑Off. Acc (%) ↑
Wan2.2 video only 0.68200.5150 2.310.4229.00.0 n/an/an/a
OVI 0.66400.5602 1.840.45717.08.6 56.92.3717.2
JoyAI-Echo 0.66800.5167 1.810.46415.523.2 11.92.717.3
LTX-2.3 our base 0.68190.5354 1.110.532 36.00.0 n/a2.5531.2
TCR ours 0.70320.5477 0.0420.957 93.084.1 8.482.7830.5

Bold is best, underline second best. Wan2.2 emits no audio, and LTX-2.3 produces no intelligible speech, so their speech columns are not applicable. Adding TCR to the same base lowers shot Boundary MAE from 1.11 s to 0.042 s, about one frame at 24 fps.

07

Citation

@inproceedings{liu2027separating,
  title     = {Separating What from When: Fine-Grained Temporal Control
               for Joint Audio-Video Generation},
  author    = {Liu, Yichen and Zhang, Quanwei and Wang, Haozhe and
               Zhou, Donghao and Li, Xiaojie and Shi, Yang and Liu, Jiaming and
               Huang, Ruihua and Zou, Yingtian and Zhou, Daquan},
  booktitle = {Under review},
  year      = {2027}
}