Skip to main content
QUICK REVIEW

[Paper Review] Exploring Long-Sequence Masked Autoencoders

Ronghang Hu, Shoubhik Debnath|arXiv (Cornell University)|Oct 13, 2022
Multimodal Machine Learning ApplicationsComputer Science7 citations
TL;DR

This paper proposes a long-sequence masked autoencoder (MAE) that decouples mask size from patch size to enable effective pre-training on longer input sequences without additional downstream computation. By jointly masking adjacent patches (e.g., 2×2 groups), it maintains reconstruction difficulty and achieves consistent performance gains in object detection, instance segmentation, and semantic segmentation across multiple datasets, with notable improvements on COCO and ADE20K, and strong ImageNet-1K results when using long sequences.

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.

Motivation & Objective

  • To investigate the impact of input sequence length on masked autoencoding in computer vision, especially for long, high-resolution inputs.
  • To identify whether scaling sequence length—beyond standard image resolutions—improves representation learning without increasing downstream inference cost.
  • To develop a minimal modification to standard MAE that enables long-sequence pre-training by decoupling mask size from patch size.
  • To evaluate the method on diverse vision tasks, including object detection, segmentation, and image classification, across multiple benchmarks.
  • To demonstrate that long-sequence pre-training is especially beneficial for rich-scene, high-context tasks like instance and semantic segmentation.

Proposed method

  • Decouples mask size from patch size by grouping adjacent patches (e.g., 2×2) into single masking units, preserving task difficulty at longer sequence lengths.
  • Modifies the data loader to generate masked patch indices jointly, rather than independently, to maintain consistent masking ratio and difficulty.
  • Uses a smaller decoder (hidden size 384, 12 heads) for ViT-B to maintain architectural balance with the encoder, especially in long-sequence settings.
  • Applies joint masking to maintain reconstruction difficulty even when sequence length increases from 196 to 784 patches (e.g., 224×224 to 512×512 images).
  • Employs a learned 2×2 convolutional layer to downsample the decoder sequence length when needed, preserving spatial resolution in reconstruction.
  • Pre-trains on extended datasets such as COCO’s unlabeled2017 split (241,690 images), doubling the data size and improving downstream transfer.

Experimental results

Research questions

  • RQ1Does increasing input sequence length in masked autoencoding lead to improved representation learning in computer vision?
  • RQ2Can long-sequence MAE achieve better performance on dense prediction tasks like object detection and segmentation without increasing downstream inference cost?
  • RQ3How does decoupling mask size from patch size affect the stability and performance of long-sequence MAE?
  • RQ4Is the benefit of long-sequence pre-training more pronounced for high-context, complex scenes than for standard image classification?
  • RQ5Can long-sequence MAE achieve competitive ImageNet-1K accuracy without increasing input resolution?

Key findings

  • Long-sequence MAE achieves a 1.3 APb and 1.2 APm gain on COCO object detection and a 2.6 mIoU gain on ADE20K semantic segmentation over the baseline, with no additional inference cost.
  • On COCO, ViT-B with long-sequence MAE reaches 51.0 APb and 45.3 APm, compared to 49.7 and 44.1 in the baseline.
  • For ViT-L, the gains are even more pronounced: 52.3 APb and 46.4 APm (vs. 50.7 and 44.9 in baseline), with a 3.0 mIoU improvement on ADE20K.
  • Pre-training on the combined COCO train2017 + unlabeled2017 split (241,690 images) significantly improves downstream performance, confirming the scalability of long-sequence MAE to larger datasets.
  • On ImageNet-1K, long-sequence MAE achieves a top-1 accuracy of 83.4% when using 512×512 inputs, matching the performance of standard 224×224 crops with 448×448 evaluation.
  • The performance gain is most evident in dense prediction tasks, suggesting that long sequences better capture contextual and spatial dependencies in complex scenes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.