Introduction
Autoregressive (AR) models, such as the GPT series, have established themselves as the dominant paradigm in Natural Language Processing (NLP). By predicting the next token based on a preceding sequence, these models learn deep contextual representations. However, in Computer Vision (CV), AR models have historically underperformed compared to Masked Image Modeling (MIM) approaches like Masked Autoencoders (MAE).
The challenges for AR in vision are three-fold: the lack of a natural 1D order in 2D images, the high computational cost of pixel-level prediction, and the tendency of models to overfit to low-level textural noise rather than high-level semantics. This paper introduces SAIM (Stochastic Autoregressive Image Modeling) to address these limitations.
Methodology
SAIM revitalizes autoregressive pre-training through three primary innovations: stochastic ordering, a decoupled architecture, and target smoothing.
Stochastic Prediction Order
Unlike traditional AR models that follow a fixed raster scan (top-left to bottom-right), SAIM employs a stochastic prediction order. For each training instance, the sequence of image patches is randomly permuted. This forces the model to learn bidirectional context, as any patch can serve as the context for any other depending on the random shuffle.
Parallel Encoder-Decoder Architecture
To improve efficiency and representation quality, SAIM utilizes a parallel encoder-decoder framework. A Vision Transformer (ViT) acts as the encoder, processing the visible context to generate high-level features. A separate, non-weight-sharing decoder then reconstructs the target patches. This separation allows the encoder to focus on semantic feature extraction without the overhead of pixel-level reconstruction details.
Gaussian Smoothing
To mitigate the impact of high-frequency noise, SAIM applies Gaussian smoothing to the target patches. By blurring the targets, the model is encouraged to predict the general semantic content of a patch rather than exact, noisy pixel values, leading to more robust visual representations.
Experimental Results
SAIM was evaluated on standard benchmarks, demonstrating significant improvements over previous AR methods and competitive performance with MIM.
ImageNet-1K Performance
On the ImageNet-1K dataset, a SAIM model with a ViT-Base backbone achieved a top-1 accuracy of 83.9%. This surpasses the MAE baseline (83.6%) and represents a massive leap over the previous AR baseline, iGPT (72.6%). Notably, SAIM exhibits superior convergence speed, reaching the performance of a 1600-epoch MAE model in just 300 epochs.
Downstream Tasks
The robustness of SAIM's representations was confirmed through transfer learning on MS COCO (object detection) and ADE20K (semantic segmentation). SAIM achieved 49.4 box mAP on COCO and 47.8 mIoU on ADE20K, indicating that the learned features generalize effectively to complex spatial tasks.
Conclusion
SAIM demonstrates that autoregressive modeling is a powerful and efficient pretext task for visual representation learning when the constraints of fixed ordering and raw pixel prediction are removed. By introducing stochasticity and architectural decoupling, SAIM bridges the gap between AR and MIM, offering a new state-of-the-art approach for self-supervised vision pre-training.
Summary updated