[Paper Review] Self-supervision through Random Segments with Autoregressive Coding (RandSAC)
RandSAC proposes a novel self-supervised pre-training method for Vision Transformers that uses randomly serialized hierarchical image segments to enable both short-range (within-segment) and long-range (across-segment) autoregressive prediction. By combining BERT-style parallel prediction within segments and GPT-style sequential prediction across segments, RandSAC achieves state-of-the-art performance on ImageNet and CIFAR benchmarks, outperforming non-autoregressive methods like MAE and iGPT, especially in low-data regimes.
Inspired by the success of self-supervised autoregressive representation learning in natural language (GPT and its variants), and advances in recent visual architecture design with Vision Transformers (ViTs), in this paper, we explore the effect various design choices have on the success of applying such training strategies for visual feature learning. Specifically, we introduce a novel strategy that we call Random Segments with Autoregressive Coding (RandSAC). In RandSAC, we group patch representations (image tokens) into hierarchically arranged segments; within each segment, tokens are predicted in parallel, similar to BERT, while across segment predictions are sequential, similar to GPT. We illustrate that randomized serialization of the segments significantly improves the performance and results in distribution over spatially-long (across-segments) and -short (within-segment) predictions which are effective for feature learning. We illustrate the pertinence of these design choices and explore alternatives on a number of datasets (e.g., CIFAR10, CIFAR100, ImageNet). While our pre-training strategy works with a vanilla Transformer, we also propose a conceptually simple, but highly effective, addition to the decoder that allows learnable skip-connections to encoder$'$s feature layers, which further improves the performance.
Motivation & Objective
- To investigate how autoregressive pre-training strategies—previously successful in NLP—can be effectively adapted to vision using Vision Transformers.
- To explore the impact of tokenization granularity, segment shape, and serialization order on visual feature learning performance.
- To address the limitations of deterministic raster ordering in autoregressive image modeling by introducing randomized segment traversal.
- To improve ViT performance through a learnable skip-connection mechanism between encoder and decoder layers.
Proposed method
- Images are divided into hierarchical segments (e.g., 2×2 patches or blob-shaped regions), forming a multi-scale token representation.
- Within each segment, tokens are predicted in parallel (BERT-style), while segments are predicted sequentially in a random order (GPT-style).
- Randomized serialization of segments introduces data augmentation and diversifies the predictive task distribution, improving generalization.
- A novel decoder architecture is introduced with learnable skip-connections from encoder feature maps, enhancing feature propagation and representation quality.
- The model is trained using an autoregressive cross-entropy loss on segment predictions, with no need for contrastive objectives.
- Pre-training is conducted on ImageNet and CIFAR datasets using standard ViT backbones, with evaluation via linear probing and fine-tuning.
Experimental results
Research questions
- RQ1How does the choice of segment granularity and shape (e.g., square vs. blob) affect self-supervised visual representation learning?
- RQ2Does randomized serialization of segments outperform deterministic raster ordering in autoregressive image modeling?
- RQ3Can learnable skip-connections between encoder and decoder layers improve ViT performance in autoregressive pre-training?
- RQ4How does RandSAC compare to contrastive and masked autoencoding methods in low-data and full-data settings?
Key findings
- RandSAC outperforms non-autoregressive methods like MAE and BEIT on ImageNet-1K, achieving 72.3% linear probe accuracy and 83.7% fine-tuning accuracy with a smaller input size (192×192).
- On CIFAR-10 and CIFAR-100, RandSAC achieves 93.9% and 96.9% linear probe accuracy, respectively, surpassing supervised DeiT-B and other self-supervised methods under low-data pre-training.
- The use of randomized segment serialization significantly improves performance over raster ordering, demonstrating its effectiveness as a form of implicit data augmentation.
- The proposed learnable skip-connection mechanism in the decoder leads to consistent performance gains across all benchmarks.
- RandSAC achieves competitive results with contrastive methods (e.g., DINO, MoCo v3) despite using a smaller image size and no contrastive objectives.
- The method generalizes well across datasets and scales effectively, with both square and blob-based segmentations yielding strong results.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.