Evolved Hierarchical Masking for Self-Supervised Learning
Zhanzhou Feng, Shiliang Zhang
TL;DR
This work tackles the limitation of fixed masking patterns in Masked Image Modeling by introducing evolved hierarchical masking, which builds a dynamic, multi-level cue hierarchy from the model's own attention and evolves the masking depth as training progresses. The Adaptive Hierarchy Establishment module constructs a binary tree over image patches per input, and the Evolved Mask Generation module selects masking depth and patch sets according to the training epoch, enabling a smooth shift from low-level textures to high-level semantics without additional annotations or pre-trained models. Empirically, the approach yields substantial gains across seven downstream tasks and delivers competitive performance with fewer pretraining epochs, bridging self-supervised learning with semantic-heavy tasks and offering a cost-efficient path toward large-scale pretraining. The method also provides insights into how masking at different cue levels affects learning in shallow versus deep layers, and it scales across diverse MIM architectures and backbones.
Abstract
Existing Masked Image Modeling methods apply fixed mask patterns to guide the self-supervised training. As those mask patterns resort to different criteria to depict image contents, sticking to a fixed pattern leads to a limited vision cues modeling capability.This paper introduces an evolved hierarchical masking method to pursue general visual cues modeling in self-supervised learning. The proposed method leverages the vision model being trained to parse the input visual cues into a hierarchy structure, which is hence adopted to generate masks accordingly. The accuracy of hierarchy is on par with the capability of the model being trained, leading to evolved mask patterns at different training stages. Initially, generated masks focus on low-level visual cues to grasp basic textures, then gradually evolve to depict higher-level cues to reinforce the learning of more complicated object semantics and contexts. Our method does not require extra pre-trained models or annotations and ensures training efficiency by evolving the training difficulty. We conduct extensive experiments on seven downstream tasks including partial-duplicate image retrieval relying on low-level details, as well as image classification and semantic segmentation that require semantic parsing capability. Experimental results demonstrate that it substantially boosts performance across these tasks. For instance, it surpasses the recent MAE by 1.1\% in imageNet-1K classification and 1.4\% in ADE20K segmentation with the same training epochs. We also align the proposed method with the current research focus on LLMs. The proposed approach bridges the gap with large-scale pre-training on semantic demanding tasks and enhances intricate detail perception in tasks requiring low-level feature recognition.
