Exploring Long-Sequence Masked Autoencoders
Ronghang Hu, Shoubhik Debnath, Saining Xie, Xinlei Chen
TL;DR
This work examines how input specifications, particularly sequence length, influence Masked Autoencoder pre-training for vision. By decoupling mask size from patch size and introducing block-wise masking, the authors create a minimally altered long-sequence MAE that scales with $L=(I/p)^2$. Across detection, segmentation, and some classification tasks, longer pre-training sequences yield consistent gains, especially on scene-rich datasets like COCO and Open Images, with larger ViT models deriving the most benefit. While longer sequences increase pre-training cost, they do not add transfer-time computation, suggesting sequence-length as a practical axis for scaling vision models with real-world impact on localization tasks.
Abstract
Masked Autoencoding (MAE) has emerged as an effective approach for pre-training representations across multiple domains. In contrast to discrete tokens in natural languages, the input for image MAE is continuous and subject to additional specifications. We systematically study each input specification during the pre-training stage, and find sequence length is a key axis that further scales MAE. Our study leads to a long-sequence version of MAE with minimal changes to the original recipe, by just decoupling the mask size from the patch size. For object detection and semantic segmentation, our long-sequence MAE shows consistent gains across all the experimental setups without extra computation cost during the transfer. While long-sequence pre-training is discerned most beneficial for detection and segmentation, we also achieve strong results on ImageNet-1K classification by keeping a standard image size and only increasing the sequence length. We hope our findings can provide new insights and avenues for scaling in computer vision.
