TokensGen: Harnessing Condensed Tokens for Long Video Generation

Wen-Qi Ouyang, Ze-Qi Xiao, Dan-Ni Yang, Yi-Fan Zhou, Shuai Yang +3 more
1/1/2025
diffusion-flow

No official code found. Best implementation: Vicky0522/TokensGen (58 stars, last commit 2025-12-10).

Abstract

Generating consistent long videos is a complex challenge: while diffusion-based generative models generate visually impressive short clips, extending them to longer durations often leads to memory bottlenecks and long-term inconsistency. In this paper, we propose TokensGen, a novel two-stage framework that leverages condensed tokens to address these issues.

Show full abstract

Our method decomposes long video generation into three core tasks: (1) inner-clip semantic control, (2) long-term consistency control, and (3) inter-clip smooth transition. First, we train To2V (Token-to-Video), a short video diffusion model guided by text and video tokens, with a Video Tokenizer that condenses short clips into semantically rich tokens. Second, we introduce T2To (Text-to-Token), a video token diffusion transformer that generates all tokens at once, ensuring global consistency across clips. Finally, during inference, an adaptive FIFO-Diffusion strategy seamlessly connects adjacent clips, reducing boundary artifacts and enhancing smooth transitions.Experimental results demonstrate that our approach significantly enhances long-term temporal and content coherence without incurring prohibitive computational overhead. By leveraging condensed tokens and pre-trained short video models, our method provides a scalable, modular solution for long video generation, opening new possibilities for storytelling, cinematic production, and immersive simulations.

Semantic Scholar

Code Implementations(1)

[ICCV 2025] TokensGen: Harnessing Condensed Tokens for Long Video Generation

580Jul 16, 202511 months ago
long-video-editinglong-video-generation

Similar Papers

Cite this paper

@article{ouyang2025tokensgen,
  title  = {TokensGen: Harnessing Condensed Tokens for Long Video Generation},
  author = {Wen-Qi Ouyang and Ze-Qi Xiao and Dan-Ni Yang and Yi-Fan Zhou and Shuai Yang and Lei Yang and Jian-Lou Si and Xin-Gang Pan},
  year   = {2025},
  url    = {https://arxiv.org/pdf/2507.15728},
  journal = {IEEE International Conference on Computer Vision}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/48a1b6b9737f01c81d5ebdfaee39a505b09850d4.svg)](https://codeofpaper.com/paper/48a1b6b9737f01c81d5ebdfaee39a505b09850d4)

Discussion