Separators in Enhancing Autoregressive Pretraining for Vision Mamba

Liu, Hanpeng, Wang, Zidan, Zhang, Shuoxi, Gao, Kaiyuan, He, Kun

–arXiv.org Artificial Intelligence 

Cluster-level separators enable multiple images to be modeled in one sequence. STAR improves ARM on COCO and five ImageNet robustness benchmarks. Abstract The state space model Mamba has recently emerged as a promising paradigm in computer vision, attracting considerable attention for its efficient handling of long-sequence tasks. Its inherent causal structure makes it particularly well suited for autoregressive pretraining. However, existing autoregressive pretraining methods in vision are largely limited to short-sequence settings and may not fully use Mamba's capacity to model longer contexts. To investigate this setting, we introduce SeparaTors for AutoRegressive pretraining (STAR), a new autoregressive pretraining method for Vision Mamba that explicitly marks the boundaries between different images. STAR increases the patch-token sequence length from 144 to 640 by packing four images and four separator clusters. This is approximately 4.4 the ARM patch-token sequence length. The increase is achieved without changing the resolution of any individual image: we use 192 192 inputs for autoregressive pretraining and 224 224 inputs for downstream classification fine-tuning. The learned representation also transfers beyond in-distribution classification: compared with ARM, STAR-B improves COCO box AP from 46.11 to 46.84 and mask AP from 40.74 to 41.45, while raising the mean top-1 accuracy across five Ima-Corresponding author Email addresses: hanpengliu@hust.edu.cn(Hanpeng He) 1This work is supported by National Natural Science Foundation of China (U22B2017) and International Cooperation Foundation of Hubei Province, China (2024EHA032). Figure 1: Each image is divided into non-overlapping patches. Multiple spatially adjacent patches are grouped into a cluster. Our STAR adds an input-space separator cluster at the beginning of each image.