Saved in:
Bibliographic Details
Main Authors: Pang, Yatian, Jin, Peng, Yang, Shuo, Lin, Bin, Zhu, Bin, Tang, Zhenyu, Chen, Liuhan, Tay, Francis E. H., Lim, Ser-Nam, Yang, Harry, Yuan, Li
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.15321
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915204060676096
author Pang, Yatian
Jin, Peng
Yang, Shuo
Lin, Bin
Zhu, Bin
Tang, Zhenyu
Chen, Liuhan
Tay, Francis E. H.
Lim, Ser-Nam
Yang, Harry
Yuan, Li
author_facet Pang, Yatian
Jin, Peng
Yang, Shuo
Lin, Bin
Zhu, Bin
Tang, Zhenyu
Chen, Liuhan
Tay, Francis E. H.
Lim, Ser-Nam
Yang, Harry
Yuan, Li
contents Autoregressive models, built based on the Next Token Prediction (NTP) paradigm, show great potential in developing a unified framework that integrates both language and vision tasks. Pioneering works introduce NTP to autoregressive visual generation tasks. In this work, we rethink the NTP for autoregressive image generation and extend it to a novel Next Patch Prediction (NPP) paradigm. Our key idea is to group and aggregate image tokens into patch tokens with higher information density. By using patch tokens as a more compact input sequence, the autoregressive model is trained to predict the next patch, significantly reducing computational costs. To further exploit the natural hierarchical structure of image data, we propose a multi-scale coarse-to-fine patch grouping strategy. With this strategy, the training process begins with a large patch size and ends with vanilla NTP where the patch size is 1$\times$1, thus maintaining the original inference process without modifications. Extensive experiments across a diverse range of model sizes demonstrate that NPP could reduce the training cost to around 0.6 times while improving image generation quality by up to 1.0 FID score on the ImageNet 256x256 generation benchmark. Notably, our method retains the original autoregressive model architecture without introducing additional trainable parameters or specifically designing a custom image tokenizer, offering a flexible and plug-and-play solution for enhancing autoregressive visual generation.
format Preprint
id arxiv_https___arxiv_org_abs_2412_15321
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Next Patch Prediction for Autoregressive Visual Generation
Pang, Yatian
Jin, Peng
Yang, Shuo
Lin, Bin
Zhu, Bin
Tang, Zhenyu
Chen, Liuhan
Tay, Francis E. H.
Lim, Ser-Nam
Yang, Harry
Yuan, Li
Computer Vision and Pattern Recognition
Autoregressive models, built based on the Next Token Prediction (NTP) paradigm, show great potential in developing a unified framework that integrates both language and vision tasks. Pioneering works introduce NTP to autoregressive visual generation tasks. In this work, we rethink the NTP for autoregressive image generation and extend it to a novel Next Patch Prediction (NPP) paradigm. Our key idea is to group and aggregate image tokens into patch tokens with higher information density. By using patch tokens as a more compact input sequence, the autoregressive model is trained to predict the next patch, significantly reducing computational costs. To further exploit the natural hierarchical structure of image data, we propose a multi-scale coarse-to-fine patch grouping strategy. With this strategy, the training process begins with a large patch size and ends with vanilla NTP where the patch size is 1$\times$1, thus maintaining the original inference process without modifications. Extensive experiments across a diverse range of model sizes demonstrate that NPP could reduce the training cost to around 0.6 times while improving image generation quality by up to 1.0 FID score on the ImageNet 256x256 generation benchmark. Notably, our method retains the original autoregressive model architecture without introducing additional trainable parameters or specifically designing a custom image tokenizer, offering a flexible and plug-and-play solution for enhancing autoregressive visual generation.
title Next Patch Prediction for Autoregressive Visual Generation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2412.15321