SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.11079 · ICCV · 2025

Phantom: Subject-Consistent Video Generation via Cross-Modal Alignment

Gen Li, Siyu Zhou, Jiawei Liu, Qian He, Tianxiang Ma, Zhuowei Chen, Xinglong Wu, Bingchuan Li, Lijie Liu

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 2 have no contract verdict; 4 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2502.11079.json · badge: /api/ran/2502.11079.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
phantom-video/phantom community (classifier label)
classifier basis not recorded on the link
8 ran · 4 no recorded run
FunctionStatusWhere it lives
basic_clean Ran
ran; our contract draft was wrong, not the code
phantom-video/phantom/phantom_wan/modules/tokenizers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("98f385d847636a3e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ltpwy/MSCI, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

canonicalize Ran
ran; our contract draft was wrong, not the code
phantom-video/phantom/phantom_wan/modules/tokenizers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from sais-fuxi/omni-video, is pointer only (licence: NONE) · get_code("1066f2140d4e9845")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from sais-fuxi/omni-video, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_conv3d Ran
ran, honoured the contract we drafted
phantom-video/phantom/phantom_wan/modules/vae.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from sais-fuxi/omni-video, is pointer only (licence: NONE) · get_code("78d2ce0959095290")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from sais-fuxi/omni-video, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fp16_clamp Ran
ran, violated the contract we drafted
phantom-video/phantom/phantom_wan/modules/t5.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from sais-fuxi/omni-video, is pointer only (licence: NONE) · get_code("d3d53f877a9af3a3")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from sais-fuxi/omni-video, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rope_params Ran
ran on a synthesized input
phantom-video/phantom/phantom_wan/modules/model.py
code served (permissive licence) · get_code("b81485ecf664d0d5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (8, 2) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.cuda.amp as amp

torch.manual_seed(0)

# Analyze the function:
# - max_seq_len: used in torch.arange(max_seq_len) - needs to be an int
# - dim: used in assertions and torch.arange(0, dim, 2) - needs to be an int, must be even
# - theta: used in torch.pow(theta, ...) - numeric value with default 10000

ARGS = {
    "max_seq_len": 8,
    "dim": 4,
    "theta": 10000,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (8, 2) — shape (8, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sinusoidal_embedding_1d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
phantom-video/phantom/phantom_wan/modules/model.py
code served (permissive licence) · get_code("e34a97853e924d88")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze the function:
# - dim: int, must be even, used as dimension for embedding
# - position: tensor, used with .type(torch.float64), torch.outer(), and .to() operations
#   position should be 1D tensor of positions

dim = 4  # Must be even
position = torch.tensor([0, 1, 2, 3], dtype=torch.int64)

ARGS = {
    "dim": dim,
    "position": position,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
whitespace_clean Ran
ran; our contract draft was wrong, not the code
phantom-video/phantom/phantom_wan/modules/tokenizers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("9542161e9640b858")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ltpwy/MSCI, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

xlm_roberta_large Ran
ran on a synthesized input
phantom-video/phantom/phantom_wan/modules/xlm_roberta.py
code served (permissive licence) · get_code("dd27a4bda5e8824c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned XLMRoberta. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'pretrained': False,
    'return_tokenizer': False,
    'device': 'cpu',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type XLMRoberta — a XLMRoberta output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a XLMRoberta output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
attention Not yet run
unverified (harvested, no recorded run)
phantom-video/phantom/phantom_wan/modules/attention.py
code served (permissive licence) · get_code("2659ec11ef2cea0d")
How it ran

no invocation recorded.

flash_attention Not yet run
unverified (harvested, no recorded run)
phantom-video/phantom/phantom_wan/modules/attention.py
code served (permissive licence) · get_code("7ea44a4680b76539")
How it ran

no invocation recorded.

pos_interpolate Not yet run
unverified (harvested, no recorded run)
phantom-video/phantom/phantom_wan/modules/clip.py
code served (permissive licence) · get_code("cbc3565ced3e12b6")
How it ran

no invocation recorded.

rope_apply Not yet run
unverified (harvested, no recorded run)
phantom-video/phantom/phantom_wan/modules/model.py
code served (permissive licence) · get_code("3571f7fc8c1b5da7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 10 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 10 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
whitespace_clean 231 other papers
189 dated earlier, 2 the same month, 29 later, 10 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 228 more not named here
basic_clean 218 other papers
189 dated earlier, 2 the same month, 16 later, 10 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 215 more not named here
sinusoidal_embedding_1d 4 other papers
4 later
2503.07598 (2025-03)
VACE: All-in-One Video Creation and Editing
2505.23742 (2025-05)
MAGREF: Masked Guidance for Any-Reference Video Generation with Subject Disentanglement
2507.06119 (2025-07)
Omni-Video: Democratizing Unified Video Understanding and Generation
and 1 more not named here
attention 3 other papers
3 later
2505.23742 (2025-05)
MAGREF: Masked Guidance for Any-Reference Video Generation with Subject Disentanglement
2507.06119 (2025-07)
Omni-Video: Democratizing Unified Video Understanding and Generation
2602.15922 (2026-02)
World Action Models are Zero-shot Policies
flash_attention 3 other papers
3 later
2503.07598 (2025-03)
VACE: All-in-One Video Creation and Editing
2505.23742 (2025-05)
MAGREF: Masked Guidance for Any-Reference Video Generation with Subject Disentanglement
2604.18215 (2026-04)
Memorize When Needed: Decoupled Memory Control for Spatially Consistent Long-Horizon Video Generation
canonicalize 2 other papers
2 later
2505.23742 (2025-05)
MAGREF: Masked Guidance for Any-Reference Video Generation with Subject Disentanglement
2507.06119 (2025-07)
Omni-Video: Democratizing Unified Video Understanding and Generation
count_conv3d 2 other papers
2 later
2505.23742 (2025-05)
MAGREF: Masked Guidance for Any-Reference Video Generation with Subject Disentanglement
2507.06119 (2025-07)
Omni-Video: Democratizing Unified Video Understanding and Generation
fp16_clamp 2 other papers
2 later
2505.23742 (2025-05)
MAGREF: Masked Guidance for Any-Reference Video Generation with Subject Disentanglement
2507.06119 (2025-07)
Omni-Video: Democratizing Unified Video Understanding and Generation
pos_interpolate 1 other paper
1 later
2505.23742 (2025-05)
MAGREF: Masked Guidance for Any-Reference Video Generation with Subject Disentanglement
xlm_roberta_large 1 other paper
1 later
2505.23742 (2025-05)
MAGREF: Masked Guidance for Any-Reference Video Generation with Subject Disentanglement

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The continuous development of foundational models for video generation is evolving into various applications, with subject-consistent video generation still in the exploratory stage. We refer to this as Subject-to-Video, which extracts subject elements from reference images and generates subject-consistent videos following textual instructions. We believe that the essence of subject-to-video lies in balancing the dual-modal prompts of text and image, thereby deeply and simultaneously aligning both text and visual content. To this end, we propose Phantom, a unified video generation framework for both single-and multi-subject references. Building on existing text-to-video and image-to-video architectures, we redesign the joint text-image injection model and drive it to learn cross-modal alignment via text-imagevideo triplet data. The proposed method achieves highfidelity subject-consistent video generation while addressing issues of image content leakage and multi-subject confusion. Evaluation results indicate that our method outperforms other state-of-the-art closed-source commercial solutions. In particular, we emphasize subject consistency in human generation, covering existing ID-preserving video generation while offering enhanced advantages.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2502.11079")
get_code_for_paper("2502.11079")
have("2502.11079")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2502.11079.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2502.11079.svg)](https://syntology.ai/paper/2502.11079)

Connect an agent — have() is free.