Rethinking generative image pretraining: How far are we from scaling up next-pixel prediction?
Xinchen Yan, Chen Liang, Lijun Yu, Adams Wei Yu, Yifeng Lu, Quoc V. Le
TL;DR
This work investigates whether scaling autoregressive next-pixel prediction can yield practical vision models. Using IsoFlops-based scaling studies on $32\times 32$ images, it shows that optimal data and model sizes follow power laws with compute and that the scaling behavior is highly task- and resolution-dependent, with generation demanding more data than classification and higher resolutions favoring larger models. The findings quantify the compute bottleneck and provide exponents for how $N_{opt}$ and $D_{opt}$ scale with compute across metrics, suggesting pixel-level modeling could become feasible within about five years given sustained compute growth. The results offer a roadmap for designing pixel-based vision models and highlight the critical role of compute in determining the practicality of end-to-end raw-pixel transformers.
Abstract
This paper investigates the scaling properties of autoregressive next-pixel prediction, a simple, end-to-end yet under-explored framework for unified vision models. Starting with images at resolutions of 32x32, we train a family of Transformers using IsoFlops profiles across compute budgets up to 7e19 FLOPs and evaluate three distinct target metrics: next-pixel prediction objective, ImageNet classification accuracy, and generation quality measured by Fr'echet Distance. First, optimal scaling strategy is critically task-dependent. At a fixed 32x32 resolution alone, the optimal scaling properties for image classification and image generation diverge, where generation optimal setup requires the data size grow three to five times faster than for the classification optimal setup. Second, as image resolution increases, the optimal scaling strategy indicates that the model size must grow much faster than data size. Surprisingly, by projecting our findings, we discover that the primary bottleneck is compute rather than the amount of training data. As compute continues to grow four to five times annually, we forecast the feasibility of pixel-by-pixel modeling of images within the next five years.
