XShot: Cross-Shot Video Object Insertion from a Reference Video
Organizations: University of California, Irvine · University of Central Florida
Abstract
We present XShot, a framework for cross-shot video object insertion, which adds objects to a shot by watching another shot of the same scene. Video productions show a scene through many shots, and objects added to one shot must appear consistently in the others. Most video editors take the appearance of new objects from reference images and their location from a text prompt, a mask or an edited keyframe, leaving this consistency to the user. XShot reads both from a reference video of another shot, which need not be aligned with the target, and needs no mask, box or camera pose. We build on a video Diffusion Transformer and formulate the task as in-context generation over the reference video, a few images of the objects and the target video. A geometry-aware cross-shot attention estimates the epipolar geometry between the two shots from the model's own correspondences and uses it to guide where the target reads the reference and the exemplars. We train XShot with an erase-and-restore data engine: objects are erased from one shot of a film or a multi-camera recording and restored from another shot of the scene. Experiments show that XShot places objects more accurately and renders them more faithfully than open-source and commercial video editors, while leaving the rest of the shot intact.
Figures & tables
| Placement | Object fidelity | Whole video | ||||||
|---|---|---|---|---|---|---|---|---|
| Method | IoU | Cen. | CLIP-I | DINO-I | LPIPS | MSE | SSIM | FVD |
| VACE-14B | 0.0184 | 0.200 | 0.871 | 0.729 | 0.354 | 9.86 | 0.728 | 330 |
| UniVideo | 0.0685 | 0.107 | 0.872 | 0.702 | 0.432 | 28.3 | 0.524 | 415 |
| Kiwi-Edit | 0.426 | 0.0472 | 0.915 | 0.801 | 0.270 | 4.56 | 0.876 | 157 |
| MiniMax-H3 | 0.125 | 0.155 | 0.888 | 0.733 | 0.383 | 31.6 | 0.568 | 398 |
| Kling 3.0 Omni | 0.234 | 0.113 | 0.876 | 0.713 | 0.393 | 26.9 | 0.689 | 384 |
| Method | Price basis | Cost ($) |
|---|---|---|
| MiniMax-H3 | $0.06 per second of output | 0.300 |
| Kling 3.0 Omni | $0.168 per second of output | 0.536 |
| Wan 3.0 | $0.10 per second of input and output | 0.732 |
| XShot (ours) | $0.556 per GPU-hour, 167 s per clip | 0.0258 |
| Placement | Object fidelity | Whole video | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Variant | IoU | Cen. | CLIP-I | DINO-I | LPIPS | MSE | SSIM | FVD | ||
| w/o geometry-aware attention | 0.570 | 0.0276 | 0.941 | 0.905 | 0.170 | 2.37 | 0.877 | 116 | ||
| Number of exemplars | 5 | 0.664 | 0.0272 | 0.950 | 0.921 | 0.133 | 1.55 | 0.905 | 80.0 | |
| 3 | 0.660 | 0.0259 | 0.950 | 0.922 | 0.135 | 1.54 | 0.905 | 77.2 | ||
| 1 | 0.621 | 0.0261 | 0.944 | 0.908 | 0.152 | 1.78 | 0.903 | 83.6 | ||
| 0 | 0.552 | 0.0242 | 0.928 | 0.844 | 0.204 | 2.44 | 0.899 | 119 | ||
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Metric | Placement | Appearance | Rest of video | Overall |
|---|---|---|---|---|
| IoU | 0.752 | 0.642 | 0.543 | 0.733 |
| Cen. | 0.496 | 0.483 | 0.358 | 0.524 |
| CLIP-I | 0.706 | 0.522 | 0.652 | 0.692 |
| DINO-I | 0.766 | 0.588 | 0.711 | 0.754 |
| LPIPS | 0.765 | 0.592 | 0.735 | 0.753 |
| MSE | 0.606 | 0.400 | 0.604 | 0.587 |
| Method | Reference shot | Text | Exemplars |
|---|---|---|---|
| VACE-14B | middle frame | ✓ | ✓ |
| UniVideo | middle frame | ✓ | ✓ |
| Kiwi-Edit | middle frame | ✓ | ✗ |
| MiniMax-H3 | video | ✓ | ✓ |
| Kling 3.0 Omni | 3 frames | ✓ | ✓ |
| Wan 3.0 | video | ✓ | ✓ |
| Training | Benchmark | |
| Clips | 17,840 | 100 |
| from feature films | 7,994 | 60 |
| from Ego-Exo4D | 9,846 | 40 |
| Feature films | 769 | 57 |
| Ego-Exo4D recordings | 2,310 | 40 |
| Ego-Exo4D activities | 6 | 6 |
| Reference frames | 33 | 65 | 97 | 129 |
|---|---|---|---|---|
| Generation, full reference (s) | 232 | 309 | 411 | 506 |
| Generation, XShot (s) | 179 | 192 | 211 | 225 |
| Training step, full reference (s) | 14.6 | OOM | OOM | OOM |
| Training step, XShot (s) | 12.9 | 14.1 | 15.6 | 16.6 |
| Training memory, XShot (GB) | 26.3 | 27.3 | 28.4 | 29.5 |