GenRec: Unifying Video Generation and Recognition with Diffusion Models
Zejia Weng, Xitong Yang, Zhen Xing, Zuxuan Wu, Yu-Gang Jiang
TL;DR
GenRec presents a unified diffusion-based framework that jointly learns video generation and recognition by applying random-frame conditioning and latent masking on a Stable Video Diffusion backbone. It combines generative denoising with a recognition head, balancing losses to produce high-quality video generation while maintaining competitive recognition performance, even with partially observed frames. The approach achieves strong results on standard benchmarks and demonstrates robustness in low-information scenarios, while enabling class-guided generation. This unified model showcases the potential of integrating generation and understanding in a single diffusion-based architecture for versatile video analysis.
Abstract
Video diffusion models are able to generate high-quality videos by learning strong spatial-temporal priors on large-scale datasets. In this paper, we aim to investigate whether such priors derived from a generative process are suitable for video recognition, and eventually joint optimization of generation and recognition. Building upon Stable Video Diffusion, we introduce GenRec, the first unified framework trained with a random-frame conditioning process so as to learn generalized spatial-temporal representations. The resulting framework can naturally supports generation and recognition, and more importantly is robust even when visual inputs contain limited information. Extensive experiments demonstrate the efficacy of GenRec for both recognition and generation. In particular, GenRec achieves competitive recognition performance, offering 75.8% and 87.2% accuracy on SSV2 and K400, respectively. GenRec also performs the best on class-conditioned image-to-video generation, achieving 46.5 and 49.3 FVD scores on SSV2 and EK-100 datasets. Furthermore, GenRec demonstrates extraordinary robustness in scenarios that only limited frames can be observed. Code will be available at https://github.com/wengzejia1/GenRec.
