Refrain logo

RefrainLearning Multi-Shot Consistency from Inconsistent References for A²O Video Generation

Any Reference · Any Duration · One Timeline
Hongru Yan1,2,* Yue Wu2,‡ Jian-Wei Zhang2 Liangbin Xie2,3 Mingzhe Zheng2,4 Shenghua Gao1,†
1 The University of Hong Kong 2 Tencent 3 University of Macau 4 The Hong Kong University of Science and Technology
* Work done during internship at Tencent Hunyuan    † Corresponding author    ‡ Project leader
Refrain teaser: T2V, V2V, TI2V and TIV2V requests on one shared timeline
Unified multi-shot generation with Refrain. Each row is a separate request with text, video, image or joint conditioning. References differ in appearance and in duration R, which can be shorter or longer than the target shot duration D.

Highlights

Refrain generates a coherent multi-shot video in a single diffusion pass from any mix of text, image and video references, and renders references with clashing styles in one consistent look.

  1. Self-supervised reconstruction learning. Reference shots from the same source video are edited independently, and the model learns to recover the unedited source under a shared style prompt. It suppresses style conflicts while keeping reference content and motion. DurMix-300K provides these pairs with variable reference durations.
  2. Unified sparse conditioning (A²O). One backbone handles T2V, V2V, TI2V and TIV2V. References are placed sparsely on a shared temporal canvas, with no added conditioning modules.
  3. Shot-Debiased Consistency (SDC). A cross-shot style metric that compares style change with what real videos show at the same amount of content change, calibrated on a 2.14M-video bank.

Abstract

A comic-book character, a photorealistic cityscape, an oil-painted coffee cup: such stylistically diverse references provide visual guidance across shots and frames, yet generating a coherent multi-shot video that unifies their visual styles while preserving subject identities and scene content remains challenging. Existing methods maintain cross-shot continuity through additional attention control or memory processing. However, they struggle to resolve disparate per-shot styles or handle reference–target duration mismatches within a single framework.

To tackle this, we introduce Refrain, a unified model that learns cross-shot consistency through a self-supervised reconstruction task: reference clips from the same original video are deliberately perturbed with distinct visual edits, challenging the model to recover the unedited source footage under a shared style prompt. In this way, Refrain learns to suppress conflicting stylistic artifacts while faithfully retaining reference content and motion dynamics. Operating on the A²O principle (Any Reference, Any Duration, One Timeline), Refrain maps image and video references onto a shared temporal canvas without auxiliary conditioning modules. For evaluation, experiments show that standard CLIP or DINO metrics frequently overlook stylistic clashes or misinterpret intended narrative cuts as inconsistency. We therefore propose Shot-Debiased Consistency (SDC), which uses an extensive real-video bank to establish a baseline for style variation associated with content changes. By discounting this baseline, SDC evaluates cross-shot style shifts against real-world distributions. We further construct DurMix-300K, a dataset pairing stylistically altered clips of varying lengths with their original video sequences, to train the model. Extensive experiments demonstrate that Refrain achieves state-of-the-art performance in cross-shot consistency, while excelling at shot timing, reference adherence, and text alignment.

How Refrain Works

DurMix data construction (A) and the Refrain model (B)
Self-supervised reconstruction and unified conditioning. (A) Reconstructing coherent source videos from independently edited references. (B) Joint multi-shot generation with sparse references on one timeline. Black marks occupied mask positions.

(A) DurMix-300K: references that disagree on purpose

A coherent multi-shot source video is cut into shots. The first frame of selected shots is edited with one of 61 instructions (lighting, background, style transfer, subject appearance, …), the clip is optionally cropped or extended to a new length, and the edit is propagated through the clip with depth-conditioned video generation. Each shot is edited independently, so the references clash with each other, while the unedited source video remains the reconstruction target. To reconstruct it, the model has to keep what the references show and remove how they were restyled.

(B) One canvas, one trajectory

  1. Reference canvas + occupancy mask. All conditions are encoded by the 3D VAE and written at their exact positions on the target timeline; empty slots are generated. An image anchor occupies one latent frame.
  2. Sparse placement for any duration. A reference shorter than its shot fills only part of the shot; a longer one is mapped onto the shot's latent frames by frame selection that keeps its first and last frame. Latents are never interpolated.
  3. Shot-aware RoPE. Each token carries its shot coordinate plus a per-shot offset, so the DiT knows where cuts are and which tokens belong together.
  4. Shared style prompt + per-shot text. A global style description applies to every shot; each shot can add its own description or only a reference instruction.

The HunyuanVideo-1.5 DiT backbone (8.49B) is unchanged. Training runs in three stages: multi-shot T2V pre-training, reconstruction from references that match their target length, and reconstruction from variable-duration DurMix references.

Shot-Debiased Consistency (SDC)

A cut to a new character or location naturally changes CLIP/DINO features, so those metrics read intended narrative changes as inconsistency, and they barely react to a real style clash. SDC asks instead: given how much the content changed between two shots, is the style change unusually large compared with real videos?

SDC construction: shot energies, content-style calibration and kappa stability
SDC construction. (A) Within- and cross-shot energies. (B) Content–style calibration. (C) The calibration slope κ is stable from 1K to 2.14M real videos.
  1. Shot energies. DINOv2 content features and two style heads (CSD, VGG AdaIN statistics) are compared across and within shots, giving a content energy and a style energy for every shot pair.
  2. Real-video calibration. Style energy is corrected for its dependence on content energy (κ ≈ 0.399) and converted into a conditional survival rank within the real-video bank.
  3. Pooling. Ranks from the two style heads are fused 2:1 and averaged over shot pairs.
SDC(V) = (K choose 2)−1 Σi<j (RijCSD)2/3 (RijVGG)1/3
SDC detects style edits missed by CLIP and ViCLIP and stays high across coherent scene cuts
Qualitative validation. Top: a style edit on one shot drops SDC by 90–99% while CLIP and ViCLIP barely move. Bottom: coherent cuts between very different shots keep a high SDC even though DINO similarity is near zero.

Comparison with Baselines

The three requests from the paper's qualitative comparison. Refrain, StoryMem and Phantom receive the same per-shot references and prompts. The references are restyled independently on purpose; Refrain follows their content and shot descriptions while rendering all shots in one shared style, whereas StoryMem and Phantom copy each reference's style or drift away from the references.

V2V

Communal meal in the sun

3 shots · 8.0 s · text + video references

Refrain (ours)

StoryMem

Phantom

Shared styleDocumentary, Realistic. The style is observational, capturing candid moments of social interaction. Bright, direct natural sunlight from a high angle, creating strong highlights and defined shadows. The lighting is high-key, contributing to the cheerful and open atmosphere. Joyful, social, and convivial. The video captures the warmth and intimacy of a community gathering, filled with laughter, conversation, and shared meals.
  1. Shot 10.0 – 2.5 s
    VideoCamera / Lens Filter · 1.5 s clip

    Under bright sunshine, a large group of people are gathered for a communal meal in a rustic courtyard.

  2. text only
    Shot 22.5 – 4.7 s

    The scene is filled with lively interactions: two men share a laugh at a table laden with food, an older man affectionately hugs another from behind, and a young couple sits intimately by a stone wall.

  3. Shot 34.7 – 8.0 s
    VideoSpatial Relation Change · 4.2 s clip

    The atmosphere is one of warmth, connection, and celebration, captured with natural light that highlights the joyful expressions and social bonds of the attendees.

TI2V

Reading a comic under blue light

2 shots · 5.0 s · text + image anchor

Refrain (ours)

StoryMem

Phantom

Shared styleRealistic, contemporary drama. Cool, soft key light from the front-left, creating subtle shadows on the right side of the subject's face. The background is dimly lit with some bokeh highlights, suggesting a low-key lighting setup. Contemplative and serious. The cool lighting and the character's focused, somber expression create a mood of quiet introspection and concern.
  1. text only
    Shot 10.0 – 1.7 s

    In a dimly lit room with cool blue lighting, a young man's hands are shown holding an open black-and-white comic book.

  2. Image anchor
    Shot 21.7 – 5.0 s
    Imageunedited frame @ 3.5 s

    The scene then cuts to a close-up of his face.

TIV2V

Encounter in a Chinese courtyard

5 shots · 10.3 s · text + image anchor + video references

Refrain (ours)

StoryMem

Phantom

Shared styleRealistic, historical drama aesthetic. Bright, diffuse natural daylight, suggesting an overcast sky or indirect sunlight. The lighting is even and soft, with minimal harsh shadows, creating a clear and gentle visual tone. Initially serene and tranquil, the atmosphere shifts to one of surprise and slight tension with the unexpected arrival of the second woman.
  1. Shot 10.0 – 1.2 s
    VideoSubject Appearance · 0.7 s clip

    In a beautifully landscaped traditional Chinese courtyard, a woman dressed in a flowing light blue and white gown walks calmly across the gravel path.

  2. Image anchor
    Shot 21.2 – 5.2 s
    Imageunedited frame @ 3.2 s

    The scene is peaceful, with wooden buildings, a small bridge over a pond, and ornate lanterns.

  3. Shot 35.2 – 7.2 s
    VideoSubject Appearance · 2.7 s clip

    Her walk is interrupted by the arrival of another woman in a vibrant red dress, who runs across the bridge.

  4. text only
    Shot 47.2 – 9.0 s

    The first woman stops, her expression shifting to surprise as she greets the newcomer.

  5. Shot 59.0 – 10.3 s
    VideoStyle Transfer · 1.7 s clip

    The two women then engage in a conversation, their expressions conveying a mix of shock and inquiry.

Reference duration ≠ shot duration

A 3.7 s reference controlling a 6.5 s shot
Short reference, longer target (3.7 s → 6.5 s). Refrain keeps the pace of the camera gesture and brings the referenced shot into the style of the surrounding shots.
A 3.9 s reference controlling a 2.8 s shot
Long reference, shorter target (3.9 s → 2.8 s). Refrain condenses the action while keeping the reaction, the hand gesture and the head turn at a natural pace.

Quantitative Results

Refrain Benchmark

300 requests (30 T2V, 30 TI2V, 120 V2V, 120 TIV2V) built from held-out videos with deliberately conflicting references.

MethodParams (B)FLOPs (P) ↓MAE (s) ↓CLIP-T ↑TA ↑SDC ↑
HunyuanVideo1.58.49324.40.8020.212−0.3860.090
Phantom14.29648.7–0.203−0.6750.130
RefAlign14.29807.7–0.204−0.5300.125
StoryMem29.80493.2–0.197−0.6790.175
VACE17.34608.9–0.217−0.3360.108
Refrain (ours)8.49324.40.1990.222−0.2210.315
MethodInter-shot Semantic ↑Inter-shot Subject ↑Inter-shot Scene ↑Ref. Semantic ↑Ref. Subject ↑Ref. Background ↑
HunyuanVideo1.50.5660.4390.478–––
Phantom0.4910.3450.3850.5560.4500.376
RefAlign0.4930.3410.3610.6140.4690.448
StoryMem0.7080.4890.5310.4780.4120.388
VACE0.4920.3620.361–––
Refrain (ours)0.7100.4940.4910.7370.6710.674

FLOPs are analytical denoising estimates for a 480×832, 241-frame, three-shot video with three 49-frame references under each method's own sampling schedule, excluding encoders and VAE decoding. “–” means the metric does not apply to that method's protocol.

Ablations

Reference-editing supervision

TrainTestSDC ↑
IndependentIndependent0.315
IndependentShared0.299
SharedIndependent0.301
SharedShared0.304

Shot coordinates and placement

Coords / placementMAE ↓SDC ↑
Shot-aware / Sparse0.1990.315
Shot-aware / Resample0.2330.310
None / Sparse0.2810.304
None / Resample0.2930.289

Pure T2V (no references)

TrainingSDC ↑
T2V pre-training0.253
+ independent edits0.303

Training on independently edited references also makes text-only generation more consistent.

Validating SDC

Single-shot style edit (108,909 videos)Score before → afterDetected @ 5% FPR ↑
CLIP0.836 → 0.71148.6%
ViCLIP0.609 → 0.42638.6%
DINO0.385 → 0.29710.0%
SDC0.346 → 0.04778.0%

Human study: six professional raters rated 150 clips (real splices, natural multi-shot clips and generated clips). SDC agrees with the mean rating at ρ = 0.68 and separates consistent from inconsistent clips with AUC 0.90 (95% CI [0.84, 0.95]); on real footage it reaches AUC 0.97.

Citation

@article{yan2026refrain,
  title   = {Refrain: Learning Multi-Shot Consistency from Inconsistent References for A$^2$O Video Generation},
  author  = {Yan, Hongru and Wu, Yue and Zhang, Jian-Wei and Xie, Liangbin and Zheng, Mingzhe and Gao, Shenghua},
  journal = {arXiv preprint arXiv:2611.27806},
  year    = {2026}
}