OmniTokenizer: A Joint Image-Video Tokenizer for Visual Generation

Junke Wang, Yi Jiang, Zehuan Yuan, Binyue Peng, Zuxuan Wu, Yu-Gang Jiang

arXiv:2406.09399 · 2026-07-27 공개 · arXiv · PDF

diffusion-models transformer language-models reconstruction visual-generation fid spatial-temporal fvd

Abstract

Tokenizer, serving as a translator to map the intricate visual data into a compact latent space, lies at the core of visual generative models. Based on the finding that existing tokenizers are tailored to image or video inputs, this paper presents OmniTokenizer, a transformer-based tokenizer for joint image and video tokenization. OmniTokenizer is designed with a spatial-temporal decoupled architecture, which integrates window and causal attention for spatial and temporal modeling. To exploit the complementary nature of image and video data, we further propose a progressive training strategy, where OmniTokenizer is first trained on image data on a fixed resolution to develop the spatial encoding capacity and then jointly trained on image and video data on multiple resolutions to learn the temporal dynamics. OmniTokenizer, for the first time, handles both image and video inputs within a unified framework and proves the possibility of realizing their synergy. Extensive experiments demonstrate that OmniTokenizer achieves state-of-the-art (SOTA) reconstruction performance on various image and video datasets, e.g., 1.11 reconstruction FID on ImageNet and 42 reconstruction FVD on UCF-101, beating the previous SOTA methods by 13% and 26%, respectively. Additionally, we also show that when integrated with OmniTokenizer, both language model-based approaches and diffusion models can realize advanced visual synthesis performance, underscoring the superiority and versatility of our method. Code is available at https://github.com/FoundationVision/OmniTokenizer.

한국어 요약

한 줄 요약

OmniTokenizer는 이미지와 동영상을 통합 처리하는 트랜스포머 기반 토크나이저로, 1.11 rFID (ImageNet) 및 42 rFVD (UCF-101) 성능을 달성한다.

핵심 기여도

핵심 아이디어

기존 토크나이저는 이미지 또는 동영상에만 최적화되어 있어, 데이터 유연성과 모델 확장성에 한계가 있었다. OmniTokenizer는 공간-시간 분리 아키텍처를 도입하여, 이미지와 동영상의 보완성을 활용한다. 공간 차원에서는 **윈도우 어텐션**(window attention)을 사용해 지역적 특성을 효율적으로 캡처하고, 시간 차원에서는 **인과 어텐션**(causal attention)을 통해 동영상의 움직임을 모델링한다. 이는 기존 통합 어텐션 방식보다 계산 효율성과 성능에서 우수함을 보인다.

또한, **진보적 훈련 전략**(progressive training strategy)을 통해, 먼저 고정 해상도에서 이미지 훈련을 수행한 후, 이미지와 동영상 데이터를 병렬로 다중 해상도에서 훈련함으로써, 정적 및 동적 시각 정보를 모두 학습한다. 이는 단일 모드 훈련보다 훨씬 높은 성능을 달성하는 데 기여한다.

기술적 접근법

주요 결과

의의 및 한계

OmniTokenizer는 이미지와 동영상 토크나이저를 통합한 첫 번째 시도로, 데이터 유연성과 모델 확장성을 동시에 향상시켰다. 특히, **진보적 훈련 전략**을 통해 이미지와 동영상 데이터의 보완성을 효과적으로 활용하여, 기존 단일 모드 훈련보다 훨씬 높은 성능을 달성했다. 또한, **LM 및 Diffusion 모델**과의 호환성을 입증함으로써, 다양한 생성 모델에 적용 가능성을 보여준다.

그러나, 현재 모델은 **고정된 래티언트 차원**(latent dimension = 8)을 사용하며, 압축률 증가 시 재구성 성능이 저하되는 한계가 있다. 또한, 모델 크기 확장에 따른 성능 향상 가능성은 아직 검증되지 않았다.

실용적 활용

OmniTokenizer는 이미지 및 동영상 생성 모델 개발에 즉각적으로 활용될 수 있으며, 특히 데이터가 제한된 영상 생성 분야에서 유용하다. 또한, **LM 기반 생성 모델**과 **Diffusion 모델** 모두에 적용 가능하므로, 다양한 생성 작업 (예: 무조건 생성, 프레임 예측)에서 활용 범위가 넓다. 산업적으로는 콘텐츠 생성, VR/AR, 영상 편집 등에 적용 가능하다.