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. 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, and the model recovers the unedited source footage under a shared style prompt. The resulting pipeline yields DurMix-300K, which pairs independently edited references of varying durations with their original videos. Operating on the A2O 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 propose Shot-Debiased Consistency (SDC), which uses an extensive real-video bank to establish a baseline for style variation associated with content changes within shots. By discounting this baseline divergence, SDC evaluates cross-shot style shifts against real-world distributions, where smaller residual differences indicate higher stylistic continuity. 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.
Figures & tables
Figure 1: Unified multi-shot generation with Refrain. Each row shows a separate request with text, video, image, or joint conditioning. References vary in appearance and duration R , which can be shorter or longer than target duration D .
Setting
Refs
Duration =D
Conflicting styles
Shared style
Cut timing
Multi-shot
none/images
–
✗
✓
✓
Subject-to-video
images
✗
✗
✗
✗
Memory multi-shot
images
✗
✗
✓
✗
Temporal placement
img.+video
✓
✗
✗
✗
Ours
img.+video
✓
✓
✓
✓
Table 1: Comparison of task settings. Multi-shot generation ( Meng et al., 2026 ; Wang et al., 2026b ) , subject-to-video ( Liu et al., 2025b ; Wang et al., 2026a ) , memory ( Zhang et al., 2025 ) , and temporal placement ( Jiang et al., 2025 ; Cai et al., 2026 ) . ✓: required; ✗: not addressed.
Figure 2: 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 indicates occupied mask positions ( m=1 ).
Figure 3: SDC construction and motivation. (A) Within- and cross-shot energies. (B) Content–style calibration. (C) Source-dependent κ and sample-size stability.
Figure 4: Qualitative validation of SDC. (A) SDC detects style edits missed by CLIP/ViCLIP. (B) SDC remains high across coherent scene cuts that lower DINO similarity.
Figure 5: Multi-shot generation from per-shot inconsistent references. Refrain follows the reference content and shot descriptions while generating a shared visual style across shots.
Method
#Params (B)
FLOPs (P) ↓
Generation and Alignment
Inter-Shot ↑
Reference ↑
MAE s ↓
CLIP-T ↑
TA ↑
SDC ↑
Semantic
Subject
Scene
Semantic
Subject
Background
HunyuanVideo1.5
8.49
324.4
0.802
0.212
-0.386
0.090
0.566
0.439
0.478
✗
✗
✗
Phantom
14.29
648.7
✗
0.203
-0.675
0.130
0.491
0.345
0.385
0.556
0.450
0.376
RefAlign
14.29
807.7
✗
0.204
-0.530
0.125
0.493
0.341
0.361
0.614
0.469
0.448
StoryMem
29.80
493.2
✗
0.197
-0.679
0.175
0.708
0.489
0.531
0.478
0.412
0.388
VACE
17.34
608.9
✗
0.217
-0.336
0.108
0.492
0.362
0.361
✗
✗
✗
Table 2: Unified multi-shot generation. Bold/underlined: best/second-best; ✗ : unreported or inapplicable. Parameters include all experts and unmerged adapters. FLOPs are analytical denoising estimates for a 480×832 , 241-frame, three-shot video with three 49-frame references under each method’s sampling schedule and reference adapter, excluding encoders and VAE decoding. SDC uses a fixed real-video bank. Metric definitions: Appendix C .
Train edits
Test edits
SDC ↑
Independent
Independent
0.315
Independent
Shared
0.299
Shared
Independent
0.301
Shared
Shared
0.304
Table 3: Ablation studies. (a) Reference editing. (b) Shot coordinates and placement. (c) Channel vs. sequence injection; Tok.: token count relative to the target.
Training
SDC ↑
T2V pretraining
0.253
Independent edits
0.303
Table 4: Pure T2V generation.
Metric
Score
Detect. ↑
CLIP
0.836→0.711
48.6%
ViCLIP
0.609→0.426
38.6%
DINO
0.385→0.297
10.0%
SDC
0.346→0.047
78.0%
Table 5: Style and content controls. (a) Single-shot style edits (108,909 videos). (b) Shared/independent edits (72,570 videos). Means and detection at 5% control false positives. (c) Real videos.
Clips
Scored
Consistent / inconsistent
ρ / AUC
All
140
73 / 48
0.68 / 0.90
Real footage
90
40 / 36
0.77 / 0.97
Real, external collections
54
25 / 22
0.79 / 0.98
Table 6: SDC and human style ratings. Consensus labels require at least four of six votes. ρ : Spearman correlation with the mean rating.
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
Field
Annotation
Style
Realistic, cinematic thriller style.
Environment
A dimly lit urban street at night, lined with parked cars and trees. The setting suggests a residential or commercial area after hours.
Shot 1, 0.0–2.7 s
A woman ( ID:1 ) holding a handgun ( ID:2 ) looks over her shoulder and speaks.
Shot 2, 2.7–4.2 s
A man walks away from the camera towards a motorcycle on a dark street.
Appendix
Table 7: Example Gemini-3 annotation.
Category
Instructions
Conditions
Style transfer
20
125,457
Subject appearance
8
31,655
Object material or colour
7
24,544
Lighting and weather
6
31,175
Background retexturing
6
28,718
Spatial relation
6
21,266
Appendix
Table 8: Editing categories in DurMix-300K. Counts refer to validated reference conditions.
Setting
Value
Pure T2V, steps 0–19k
19,000 updates, 256 H800 GPUs, LR 10−5
Reference fine-tuning, steps 19k–36k
17,000 updates, 16 H800 GPUs, LR 10−5
Reference fine-tuning, steps 36k–45k
9,000 updates, 16 H800 GPUs, LR 2×10−6
Global batch size, steps 0–19k
128 videos per optimizer update
Global batch size, steps 19k–36k
8 videos per optimizer update
Global batch size, steps 36k–45k
8 videos per optimizer update
Appendix
Table 9: Main fine-tuning and inference configuration. Conditioning probabilities act at the segment/anchor level, and the resulting task frequencies depend on reference availability and selection.
Edit type
Videos
SDC
CLIP
ViCLIP
DINO
Camera / lens filter
21,699
96.2%
13.4%
33.9%
22.0%
Style transfer
108,909
86.5%
14.9%
30.1%
22.8%
Lighting / weather
29,516
75.0%
10.4%
22.5%
17.1%
Background retexture
27,253
64.2%
10.2%
24.4%
21.0%
Object material / color
23,405
51.0%
7.8%
16.6%
10.1%
Subject appearance
29,873
32.4%
9.5%
18.0%
13.5%
Appendix
Table 10: Sensitivity to reference edit types. Relative decrease in mean similarity or consistency from original shot pairs to pairs with one edited shot. Larger decreases indicate stronger responses within each metric’s scale. A source video can appear in multiple edit categories.
Metric
Single-shot style edits Detection ↑
Independent vs. shared edits Detection ↑
Real videos, DINO <0.25 Low-score rate
CSD cosine
78.6%
58.5%
18.8%
VGG cosine
34.9%
39.5%
13.7%
SDC
78.0%
50.9%
4.4%
Appendix
Table 11: Style-feature similarity and SDC. Edit detection uses a 5% control false-positive rate. Low-score rates use each metric’s fifth percentile over all real videos as the threshold.
Setting
Single-shot style edits Detection ↑
Independent vs. shared edits Detection ↑
Real videos, DINO <0.25 Low-score rate
κ=0
76.79%
50.29%
6.01%
Full SDC
77.98%
50.85%
4.38%
Appendix
Table 12: Effect of linear correction with fixed conditional ranking. Edit detection uses a 5% control false-positive rate. The last column gives the low-score fraction among 458,920 real videos with DINO <0.25 , using each variant’s fifth percentile over all real videos as its threshold.
κ
SDC
Videos
Repeats
Mean
sd
Minimum
Maximum
Mean
sd
100
5
0.39100
0.01533
0.36996
0.41107
0.33636
0.02372
1,000
5
0.40168
0.00284
0.39684
0.40415
0.34414
0.00484
10,000
5
0.39920
0.00065
0.39813
0.39984
0.33795
0.00227
100,000
5
0.39890
0.00066
0.39793
0.39982
0.33711
0.00071
1,000,000
2
0.39872
0.00014
0.39858
0.39886
0.33733
0.00002
Appendix
Table 13: Real-video κ and SDC across six sample sizes. Repeated subsets are disjoint within each size. We refit κ on each subset and average SDC over the same videos using the fixed full real-video bank. Standard deviations and ranges summarize repetitions, and the 2,144,201 row uses all videos. The last row is the pooled bank with IP and Stock, where κ is fitted and SDC is scored on that bank.
Calibration bank
Videos
κ^CSD
Refrain
StoryMem
Phantom
RefAlign
VACE
HY1.5
DurMix original
0.22M
0.388
0.291
0.160
0.114
0.110
0.094
0.080
DurMix shared edits
0.22M
0.393
0.306
0.167
0.127
0.123
0.105
0.087
DurMix indep. edits
0.22M
0.393
0.305
0.167
0.126
0.122
0.104
0.086
Paper bank
2.14M
0.399
0.315
0.175
0.130
0.125
0.108
0.090
Pooled real
86.9M
0.411
0.277
0.158
0.102
0.099
0.084
0.076
Appendix
Table 14: SDC under five calibration banks. Mean SDC on the benchmark, with each bank used for both slope fitting and conditional ranking under source-fold exclusion. The pooled bank combines the paper bank with IP and Stock (86.9M videos, about 1.0B within-shot splits). Kendall τ compares each method ranking with the paper bank.
Figure 6: Rating interface. Raters judge whether the visual treatment is coherent across the cut (colour grading, lighting, contrast, texture) on five levels, and ignore changes of subject, place, or framing. They also rate the amount of content change and within-shot flicker, and may mark “cannot judge”.
All
Real
Real, ext.
Ext. splices
Real, train
Generated
n
140 (73/48)
90 (40/36)
54 (25/22)
36 (8/21)
36 (15/14)
38 (25/8)
ρ
0.68
0.77
0.79
0.59
0.75
0.30
AUC
0.90
0.97
0.98
0.95
0.97
0.57
Appendix
Table 15: SDC and human ratings by subset . n : clips (consistent/inconsistent, rest undecided). ρ : Spearman. Ext.: the two external collections. Train: our source videos.
Figure 7: SDC and human ratings on real footage. Each row is one rated clip: two-shot splices from different sources (Stock + Stock, Stock + IP, IP + IP, Train + Train) and natural multi-shot clips (Real Uncut), with the shot descriptions, SDC, and the mean score of six raters (1–5).
vs. original refs
vs. restyled refs
Method
SDC ↑
Ref-Subj ↑
Ref-Bg ↑
Ref-Subj ↑
Ref-Bg ↑
TA ↑
MAE (s) ↓
Refrain
0.323
0.645
0.653
–
–
− 0.204
0.197
Cascade + Refrain
0.324
0.569
0.574
0.627
0.638
− 0.296
0.227
Appendix
Table 16: Cascade baseline (requests with video references). References are restyled with the DurMix-300K editors before generation. Fidelity is measured against the original references and, for the cascade rows, also against the restyled references the generator received. Real videos of the same requests: SDC 0.339.
Training edits
Independent-edit test
Shared-edit test
Independent
0.315
0.299
Shared
0.301
0.304
Hybrid 1:1
0.300
0.303
Appendix
Table 17: Hybrid edit training (SDC).
Figure 8: Performance curves vs. edit intensity. Top: SDC, Ref-Subject, Ref-Background, and TA of the independent-edit (Refrain), shared-edit, and hybrid training, from clean references ( α=0 ) to the benchmark edits ( α=1 ), plus unseen edit instructions (shaded). Bottom: Shared minus Independent and Hybrid minus Independent, averaged over the requests scored in both settings. The top row and Table 18 average each setting over all of its scored requests, and the two averages can differ slightly.
SDC ↑
Ref-Subj ↑
Test references
Independent
Shared
Hybrid
Independent
Clean ( α=0 )
0.350
0.347
0.336
0.737
α=0.25
0.334
0.319
0.325
0.699
α=0.50
0.324
0.306
0.310
0.675
α=0.75
0.324
0.305
0.315
0.660
Benchmark ( α=1 )
0.323
0.301
0.306
0.645
Appendix
Table 18: Performance under varying test references (requests with video references). α : blend weight between original and edited references ( α=0 clean, α=1 benchmark edits). Fidelity is measured against the references each run received.
Figure 9: One request under six reference conditions. Left: the references given to the model (clean, blends α=0.25 – 1 , unseen instructions). Right: Refrain’s output frames for each condition.
Inter-Shot ↑
Reference ↑
Injection
MAE s ↓
CLIP-T ↑
TA ↑
SDC ↑
Semantic
Subject
Scene
Subject
Background
Channel (Refrain)
0.199
0.222
− 0.221
0.315
0.710
0.494
0.491
0.671
0.674
Sequence
0.209
0.222
− 0.250
0.315
0.709
0.476
0.493
0.666
0.670
Appendix
Table 19: Channel vs. sequence injection (metrics of Table 2 ).
Method
Shorter ( n=55 )
Equal ( n=80 )
Longer ( n=26 )
Mixed ( n=79 )
SDC ↑
Phantom
0.130
0.123
0.113
0.111
RefAlign
0.110
0.086
0.103
0.088
StoryMem
0.200
0.150
0.163
0.181
VACE
0.116
0.095
0.097
0.092
Refrain
0.334
0.329
0.329
0.307
Appendix
Table 20: Results by reference duration (requests with video references). Requests are grouped by the duration of their video references relative to the assigned intervals: all shorter, all equal, all longer, or a mix of shorter and longer references. n : requests per group. Bold: best per group. Transition MAE applies only to methods that generate all shots jointly.
Figure 10: Short reference, longer target: 3.7s → 6.5s. Refrain preserves plausible action pacing and a shared style across shots. Dashed arrows link reference and generated action states.
Figure 11: Long reference, shorter target: 3.9s → 2.8s. Refrain condenses the reference action while retaining its key gestures and natural pacing.
Figure 12: Text-only multi-shot generation. Examples span documentary, animation, and drama. Each request specifies a shared style and per-shot events.
Figure 13: Reference-conditioned generation (1/2). Each example shows independently edited references, the requested shared style, and generated shots.
Figure 14: Reference-conditioned generation (2/2). Further examples under the protocol of Figure 13 .