Papers › RIFLEx: A Free Lunch for Length Extrapolation in Video Diffusion Transformers

RIFLEx: A Free Lunch for Length Extrapolation in Video Diffusion Transformers

21 Feb 2025arXiv:2502.15894archive 2025-07-28

Min Zhao, Guande He, Yixiao Chen, Hongzhou Zhu, Chongxuan Li, Jun Zhu

Recent advancements in video generation have enabled models to synthesize high-quality, minute-long videos. However, generating even longer videos with temporal coherence remains a major challenge, and existing length extrapolation methods lead to temporal repetition or motion deceleration. In this work, we systematically analyze the role of frequency components in positional embeddings and identify an intrinsic frequency that primarily governs extrapolation behavior. Based on this insight, we propose RIFLEx, a minimal yet effective approach that reduces the intrinsic frequency to suppress repetition while preserving motion consistency, without requiring any additional modifications. RIFLEx offers a true free lunch--achieving high-quality 2× extrapolation on state-of-the-art video diffusion transformers in a completely training-free manner. Moreover, it enhances quality and enables 3× extrapolation by minimal fine-tuning without long videos. Project page and codes: \href{https://riflex-video.github.io/}{https://riflex-video.github.io/.}

PaperPDFCode Syntology ran

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="2502.15894")

Code

Syntology Ran 6 of 7 code samples harvested from 2 repositories linked to this paper; 1 has no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 2 ran · our draft was wrong; 1 ran with no contract checked.

By repository: found in paper text by Syntology: 7 samples from 2 repositories, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Tencent/HunyuanVideo found in paper text by Syntology report
hao-ai-lab/FastVideo found in paper text by SyntologyApache-2.0 report
THUDM/CogVideo found in paper text by SyntologyApache-2.0 report
Alpha-VLLM/Lumina-T2X found in paper text by SyntologyMIT report

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

7 samples harvested; 6 ran; 2 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · violated contract
2ran · our draft was wrong
1ran
1unverified

Licence: 4 of the 7 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

RotaryPositionalEmbedding3D hao-ai-lab/FastVideo/fastvideo/layers/rotary_embedding_3d.py found in paper text by Syntology ran Apache-2.0 (permissive) · 45c3997748d4f45f · report
_to_tuple Tencent/HunyuanVideo/hyvideo/modules/posemb_layers.py found in paper text by Syntology ran · honoured contract fingerprinted licence not identified · pointer only · 3f82cc898d2962e9 · report
broadcast hao-ai-lab/FastVideo/fastvideo/layers/rotary_embedding_3d.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · dfd8b529d1956695 · report
get_1d_rotary_pos_embed Tencent/HunyuanVideo/hyvideo/modules/posemb_layers.py found in paper text by Syntology ran · violated contract fingerprinted licence not identified · pointer only · d248bc86ea44210d · report
get_nd_rotary_pos_embed Tencent/HunyuanVideo/hyvideo/modules/posemb_layers.py found in paper text by Syntology ran · our draft was wrong licence not identified · pointer only · 3c2aa07ddf1014f0 · report
rotate_half hao-ai-lab/FastVideo/fastvideo/layers/rotary_embedding_3d.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · d727d58b7f752099 · report
get_meshgrid_nd Tencent/HunyuanVideo/hyvideo/modules/posemb_layers.py found in paper text by Syntology unverified licence not identified · pointer only · 8ba917bc43560851 · report

Tasks

Video Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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