Learning from Next-Frame Prediction: Autoregressive Video Modeling Encodes Effective Representations
Jinghan Li, Yang Jin, Hao Jiang, Yadong Mu, Yang Song, Kun Xu
TL;DR
The paper tackles the need for temporally aware visual pretraining by introducing NExT-Vid, an autoregressive framework that uses masked next-frame prediction to learn robust representations of images and videos. It decouples semantic encoding from target decoding via a context-isolated autoregressive predictor and a conditioned flow-matching decoder, enabling high-quality generation and better semantic localization. Empirical results show state-of-the-art performance among generative pretraining methods across benchmarks like IN1K, K400, SSv2, and Diving48, with scalable gains as model size and data increase. The work demonstrates that challenging objectives, appropriate masking, and stable training dynamics (e.g., EMA reference encoders) are key to extracting strong temporal representations for downstream tasks, while also highlighting trade-offs between generation quality and representation fidelity.
Abstract
Recent advances in pretraining general foundation models have significantly improved performance across diverse downstream tasks. While autoregressive (AR) generative models like GPT have revolutionized NLP, most visual generative pretraining methods still rely on BERT-style masked modeling, which often disregards the temporal information essential for video analysis. The few existing autoregressive visual pretraining methods suffer from issues such as inaccurate semantic localization and poor generation quality, leading to poor semantics. In this work, we propose NExT-Vid, a novel autoregressive visual generative pretraining framework that utilizes masked next-frame prediction to jointly model images and videos. NExT-Vid introduces a context-isolated autoregressive predictor to decouple semantic representation from target decoding, and a conditioned flow-matching decoder to enhance generation quality and diversity. Through context-isolated flow-matching pretraining, our approach achieves strong representations. Extensive experiments on large-scale pretrained models demonstrate that our proposed method consistently outperforms previous generative pretraining methods for visual representation learning via attentive probing in downstream classification.
