[Paper Review] CAE v2: Context Autoencoder with CLIP Target
CAE v2 proposes a context autoencoder with CLIP-targeted supervision that achieves state-of-the-art performance in self-supervised vision pre-training by training on visible patches rather than masked ones and using a model-size-dependent mask ratio. It achieves 81.7% top-1 accuracy on ImageNet-1K with linear probing and 55.9% mIoU on ADE20K semantic segmentation after 300 epochs of pre-training on ViT-Large.
Masked image modeling (MIM) learns visual representation by masking and reconstructing image patches. Applying the reconstruction supervision on the CLIP representation has been proven effective for MIM. However, it is still under-explored how CLIP supervision in MIM influences performance. To investigate strategies for refining the CLIP-targeted MIM, we study two critical elements in MIM, i.e., the supervision position and the mask ratio, and reveal two interesting perspectives, relying on our developed simple pipeline, context autodecoder with CLIP target (CAE v2). Firstly, we observe that the supervision on visible patches achieves remarkable performance, even better than that on masked patches, where the latter is the standard format in the existing MIM methods. Secondly, the optimal mask ratio positively correlates to the model size. That is to say, the smaller the model, the lower the mask ratio needs to be. Driven by these two discoveries, our simple and concise approach CAE v2 achieves superior performance on a series of downstream tasks. For example, a vanilla ViT-Large model achieves 81.7% and 86.7% top-1 accuracy on linear probing and fine-tuning on ImageNet-1K, and 55.9% mIoU on semantic segmentation on ADE20K with the pre-training for 300 epochs. We hope our findings can be helpful guidelines for the pre-training in the MIM area, especially for the small-scale models.
Motivation & Objective
- To investigate how supervision position and mask ratio affect masked image modeling (MIM) when using CLIP as the supervision target.
- To develop a simple yet effective MIM framework that outperforms existing methods under the CLIP-targeted paradigm.
- To provide practical guidelines for pre-training, especially for small-scale models.
- To reveal the impact of feature distillation on visible patches and the relationship between optimal mask ratio and model size.
Proposed method
- CAE v2 uses a vision transformer encoder to process visible image patches after masking with a ratio γ that correlates positively with model size.
- A decoder reconstructs the masked patches from the encoded visible features and a learned mask token.
- The model predicts latent representations for both visible and masked patches, which are projected to a shared space.
- CLIP features from the original image are used as supervision targets, split by patch position into visible and masked components.
- The main training loss is applied only on the visible patches’ predictions and their corresponding CLIP targets, while masked patch supervision is optional.
- The framework is trained end-to-end with a contrastive-like objective on the visible patch predictions.
Experimental results
Research questions
- RQ1Does supervising the model on visible patches rather than masked patches improve performance in CLIP-targeted MIM?
- RQ2How does the optimal mask ratio in CLIP-targeted MIM vary with model size?
- RQ3Can a simple MIM pipeline with visible-patch supervision and adaptive mask ratio outperform existing methods?
- RQ4What is the relative contribution of visible vs. masked patch supervision in CLIP-targeted MIM?
Key findings
- Supervising only the visible patches with CLIP features achieves better performance than supervising only the masked patches, indicating that visible patches effectively distill semantic knowledge from CLIP.
- Combining supervision on both visible and masked patches yields only marginal improvement, suggesting that visible-patch supervision is sufficient and highly effective.
- The optimal mask ratio is positively correlated with model size: smaller models perform best with lower mask ratios, while larger models benefit from higher mask ratios.
- CAE v2 achieves 81.7% top-1 accuracy on ImageNet-1K with linear probing and 86.7% with fine-tuning using a ViT-Large backbone after 300 pre-training epochs.
- On ADE20K semantic segmentation, CAE v2 achieves 55.9% mIoU using the same ViT-Large model and 300-epoch pre-training.
- The method outperforms prior SOTA methods like iBOT and CAE on COCO object detection and instance segmentation benchmarks with fewer pre-training epochs.
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.