RealGeneral: Unifying Visual Generation via Temporal In-Context Learning with Video Models

Yijing Lin, Mengqi Huang, Shuhan Zhuang, Zhendong Mao
3/13/2025
cs.CVcs.AI

Official code: Lyne1/Realgeneral (17 stars, Apache-2.0, last commit 2025-07-16).

Abstract

Unifying diverse image generation tasks within a single framework remains a fundamental challenge in visual generation. While large language models (LLMs) achieve unification through task-agnostic data and generation, existing visual generation models fail to meet these principles. Current approaches either rely on per-task datasets and large-scale training or adapt pre-trained image models with task-specific modifications, limiting their generalizability. In this work, we explore video models as a foundation for unified image generation, leveraging their inherent ability to model temporal correlations. We introduce RealGeneral, a novel framework that reformulates image generation as a conditional frame prediction task, analogous to in-context learning in LLMs. To bridge the gap between video models and condition-image pairs, we propose (1) a Unified Conditional Embedding module for multi-modal alignment and (2) a Unified Stream DiT Block with decoupled adaptive LayerNorm and attention mask to mitigate cross-modal interference. RealGeneral demonstrates effectiveness in multiple important visual generation tasks, e.g., it achieves a 14.5% improvement in subject similarity for customized generation and a 10% enhancement in image quality for canny-to-image task. Project page: https://lyne1.github.io/realgeneral_web/; GitHub Link: https://github.com/Lyne1/RealGeneral

View on arXivView PDF

Code Implementations(1)

Lyne1/RealgeneralOfficial100%
Apache-2.0

RealGeneral (ICCV2025)

170Shell, PythonJul 10, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{lin2025realgeneral,
  title  = {RealGeneral: Unifying Visual Generation via Temporal In-Context Learning with Video Models},
  author = {Yijing Lin and Mengqi Huang and Shuhan Zhuang and Zhendong Mao},
  year   = {2025},
  eprint = {2503.10406},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.10406v2}
}

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/2503.10406.svg)](https://codeofpaper.com/paper/2503.10406)

Discussion