Introduction
Auto-regressive (AR) models, the engine behind Large Language Models like GPT, have shown great promise in computer vision due to their predictable scaling. However, they have historically been "efficiency divas." Previous models like iGPT or AIM required billions of images and massive parameter counts to compete with other self-supervised methods like Masked Image Modeling (MAE) or Contrastive Learning (CLIP). This inefficiency stems from standard AR models predicting individual pixels or patches, forcing the model to focus on high-frequency noise rather than the high-level structural patterns needed for object recognition.
Methods: Block Causal Masking
XTRA addresses these barriers by introducing Block Causal Masking, a strategy that shifts the generative objective from individual tokens to groups of pixels. Utilizing a Vision Transformer (ViT) encoder-decoder architecture, XTRA divides the image into $k \times k$ blocks.
The architecture relies on three key components:
- Intra-block Attention: Within a single block, all tokens can "see" each other, allowing the model to capture local spatial structures more effectively.
- Inter-block Causality: Causality is enforced at the block level in raster order. Tokens in a specific block can attend to all tokens in all preceding blocks.
- Next-Block Reconstruction: At the output, the model concatenates representations of all tokens in a block and passes them through an MLP to predict the pixel values of the entire next block simultaneously.
By shifting the objective to "next block" prediction, the model is incentivized to learn more abstract, semantically meaningful representations.
Key Results
XTRA delivers a massive leap in efficiency compared to prior AR models across a suite of 15 diverse image recognition benchmarks, including ImageNet-1k, iNaturalist-18, and specialized datasets like EuroSAT (satellite) and Camelyon17 (medical).
- Sample Efficiency: XTRA-H/14, trained on just 13.1M images, surpassed the average accuracy of AIM-0.6B trained on 2 billion images—a 152x reduction in required training samples.
- Parameter Efficiency: On ImageNet-1k, XTRA-B/16 (85M parameters) outperformed iGPT-L (1.36B parameters) in linear probing, despite having 16x fewer parameters.
- State-of-the-Art AR: XTRA sets a new benchmark for generative vision models, achieving 70.2% linear probing accuracy and 76.8% attentive probing accuracy on ImageNet-1k.
Conclusion
XTRA proves that the scaling advantages of auto-regressive models can be achieved without "Google-scale" data or compute. By focusing on block-level structures rather than granular pixel noise, XTRA makes high-performance generative pre-training accessible to a broader range of researchers. Future work will explore scaling these models further and investigating hybrid objectives that combine AR with contrastive losses.
Summary updated