[Paper Review] Context Autoencoder for Self-Supervised Representation Learning
This paper proposes Context Autoencoder (CAE), a self-supervised representation learning method that improves masked image modeling by predicting masked patch representations in the encoded space and reconstructing patches from these predictions. By decoupling representation learning from reconstruction via an encoder-regressor-decoder architecture, CAE achieves state-of-the-art performance on downstream tasks like semantic segmentation, object detection, and classification, outperforming supervised and contrastive pretraining baselines.
We present a novel masked image modeling (MIM) approach, context autoencoder (CAE), for self-supervised representation pretraining. We pretrain an encoder by making predictions in the encoded representation space. The pretraining tasks include two tasks: masked representation prediction - predict the representations for the masked patches, and masked patch reconstruction - reconstruct the masked patches. The network is an encoder-regressor-decoder architecture: the encoder takes the visible patches as input; the regressor predicts the representations of the masked patches, which are expected to be aligned with the representations computed from the encoder, using the representations of visible patches and the positions of visible and masked patches; the decoder reconstructs the masked patches from the predicted encoded representations. The CAE design encourages the separation of learning the encoder (representation) from completing the pertaining tasks: masked representation prediction and masked patch reconstruction tasks, and making predictions in the encoded representation space empirically shows the benefit to representation learning. We demonstrate the effectiveness of our CAE through superior transfer performance in downstream tasks: semantic segmentation, object detection and instance segmentation, and classification. The code will be available at https://github.com/Atten4Vis/CAE.
Motivation & Objective
- To improve self-supervised representation learning by decoupling encoder training from reconstruction tasks.
- To address the limitation of existing masked image modeling (MIM) methods that mix representation learning with reconstruction in a single network.
- To enhance representation quality by making predictions in the encoded representation space using visible patch features and positional information.
- To empirically validate that prediction in the latent space improves semantic representation learning.
- To demonstrate superior transfer performance on downstream tasks such as classification, detection, and segmentation.
Proposed method
- The model uses an encoder-regressor-decoder architecture: the encoder processes only visible patches to extract their representations.
- A latent contextual regressor predicts the representations of masked patches using the representations of visible patches and their spatial positions.
- The predicted masked representations are aligned with the ground-truth representations computed via the encoder, enforcing consistency through a contrastive alignment loss.
- A separate decoder reconstructs the original masked patches from the predicted representations, enabling end-to-end training.
- The pretraining task combines masked representation prediction and masked patch reconstruction, with a weighted loss function balancing both objectives.
- The encoder is trained only on visible patches, ensuring its primary role is representation learning, while reconstruction and prediction are handled by the regressor and decoder.
Experimental results
Research questions
- RQ1Can predicting masked patch representations in the encoded space improve self-supervised representation learning?
- RQ2Does decoupling representation learning from reconstruction lead to better downstream performance?
- RQ3How does the performance of CAE compare to supervised pretraining and contrastive self-supervised methods on standard benchmarks?
- RQ4What is the impact of different reconstruction targets (e.g., DALL-E tokenizer, d-VAE, RGB pixels) on CAE's performance?
- RQ5How does mask ratio affect the generalization and robustness of the learned representations?
Key findings
- CAE achieves a linear probing accuracy of 72.4% on ImageNet-1K, outperforming supervised pretraining and contrastive self-supervised methods.
- On the ADE20K dataset, CAE achieves 50.4% mIoU in semantic segmentation, surpassing previous MIM and contrastive methods.
- At a 50% mask ratio, CAE achieves the best balance of performance, with 64.2% linear probing accuracy, outperforming 40% and 60% ratios in most metrics.
- Using RGB pixel values as reconstruction targets yields the best linear probing (72.4%) and segmentation (50.4%) results, though attentive probing is slightly worse than with other tokenizers.
- A 4-layer regressor and decoder architecture yield the best overall performance, with 64.1% linear probing and 73.8% attentive probing accuracy.
- The loss tradeoff parameter λ = 2 yields the best performance (64.1% linear probing), though λ = 1.5 and λ = 1 also perform well.
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.