Papers › MAGREF: Masked Guidance for Any-Reference Video Generation
MAGREF: Masked Guidance for Any-Reference Video Generation
Yufan Deng, Xun Guo, Yuanyang Yin, Jacob Zhiyuan Fang, Yiding Yang, Yizhi Wang, Shenghai Yuan, Angtian Wang, Bo Liu, Haibin Huang, Chongyang Ma
Video generation has made substantial strides with the emergence of deep generative models, especially diffusion-based approaches. However, video generation based on multiple reference subjects still faces significant challenges in maintaining multi-subject consistency and ensuring high generation quality. In this paper, we propose MAGREF, a unified framework for any-reference video generation that introduces masked guidance to enable coherent multi-subject video synthesis conditioned on diverse reference images and a textual prompt. Specifically, we propose (1) a region-aware dynamic masking mechanism that enables a single model to flexibly handle various subject inference, including humans, objects, and backgrounds, without architectural changes, and (2) a pixel-wise channel concatenation mechanism that operates on the channel dimension to better preserve appearance features. Our model delivers state-of-the-art video generation quality, generalizing from single-subject training to complex multi-subject scenarios with coherent synthesis and precise control over individual subjects, outperforming existing open-source and commercial baselines. To facilitate evaluation, we also introduce a comprehensive multi-subject video benchmark. Extensive experiments demonstrate the effectiveness of our approach, paving the way for scalable, controllable, and high-fidelity multi-subject video synthesis. Code and model can be found at: https://github.com/MAGREF-Video/MAGREF
In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2505.23742")
Code
Syntology Ran 5 of 14 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · violated contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it.
By repository: official repository: 14 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
14 samples harvested; 5 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.
Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from magref-video/magref. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.
Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
98f385d847636a3e · report
1d28c4a06c930d63 · report
dc160d63c5846f4a · report
e34a97853e924d88 · report
9542161e9640b858 · report
2659ec11ef2cea0d · report
1066f2140d4e9845 · report
78d2ce0959095290 · report
7ea44a4680b76539 · report
d3d53f877a9af3a3 · report
fc80adbc3ff1d836 · report
cbc3565ced3e12b6 · report
f0b4a00c14f06595 · report
dd27a4bda5e8824c · report
Tasks
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Open-Domain Subject-to-Video | OpenS2V-Eval | MAGREF-480P | Aesthetics | 0.4502 | #7 of 10 | Archive leaderboard | report |
| Open-Domain Subject-to-Video | OpenS2V-Eval | MAGREF-480P | FaceSim | 0.3083 | #7 of 10 | Archive leaderboard | report |
| Open-Domain Subject-to-Video | OpenS2V-Eval | MAGREF-480P | GmeScore | 0.7047 | #7 of 10 | Archive leaderboard | report |
| Open-Domain Subject-to-Video | OpenS2V-Eval | MAGREF-480P | Motion | 0.2181 | #7 of 10 | Archive leaderboard | report |
| Open-Domain Subject-to-Video | OpenS2V-Eval | MAGREF-480P | NaturalScore | 0.6949 | #7 of 10 | Archive leaderboard | report |
| Open-Domain Subject-to-Video | OpenS2V-Eval | MAGREF-480P | NexusScore | 0.4304 | #7 of 10 | Archive leaderboard | report |
| Open-Domain Subject-to-Video | OpenS2V-Eval | MAGREF-480P | Total Score | 0.4793 | #7 of 10 | Archive leaderboard | report |
| Open-Domain Subject-to-Video | OpenS2V-Eval | MAGREF-480P | Venue | Open-Source | #7 of 10 | Archive leaderboard | report |
Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections