Abstract
Self-supervised learning (SSL) has significantly advanced representation learning by leveraging unlabeled data through contrastive objectives. However, current methods often suffer from dimensional redundancy and the emergence of "dimensional confounders"—noisy, task-irrelevant feature dimensions that degrade performance as model capacity increases. We present MetaMask, a novel SSL framework that introduces a meta-learned dimensional mask to adaptively weight feature dimensions. By utilizing a bi-level optimization strategy, MetaMask identifies and suppresses harmful confounders, preventing the performance collapse typically observed when scaling projection heads. Our experiments demonstrate that MetaMask consistently outperforms state-of-the-art baselines across multiple vision benchmarks, achieving significant gains in both accuracy and sample efficiency.
1. Introduction
Contrastive learning has become a cornerstone of self-supervised learning, aiming to learn representations where different augmented views of the same image are mapped closely together in a high-dimensional space. While effective, these methods face two primary challenges: dimensional redundancy, where multiple dimensions encode the same information, and dimensional confounders, where certain dimensions capture noise or task-irrelevant background details.
A critical observation in recent SSL research is that while increasing the size of a model's projection head initially improves performance, it eventually leads to a performance plateau or even a sharp collapse. This paper argues that this collapse is driven by the model's tendency to fill expanded feature spaces with confounders that interfere with downstream task performance.
2. The MetaMask Framework
MetaMask (Meta-learned dimensional Mask) addresses these issues by integrating a filtering mechanism into the redundancy-reduction paradigm. The framework is built upon three core components:
2.1 Redundancy Reduction
Building on the principles of the Barlow Twins objective, MetaMask utilizes a cross-correlation matrix constraint. This ensures that the various dimensions of the learned representation are as independent as possible, maximizing the information capacity of the feature vector.
2.2 The Dimensional Mask ($M$)
MetaMask introduces a learnable vector of weights, $M$, applied element-wise to the representation. This mask acts as a soft gate, amplifying dimensions that contain discriminative, invariant signals while silencing those dominated by noise or confounders.
2.3 Bi-Level Meta-Learning
Unlike standard model weights, the mask is updated via a bi-level optimization process (the "second-derivative trick"). The optimization follows a two-step cycle:
- Trial Update: The model performs a temporary update of its primary weights based on the current contrastive loss.
- Meta Update: The mask is updated based on how effectively the trial update improved the model's performance on a secondary contrastive objective.
This approach allows the mask to learn which dimensions consistently contribute to stable, useful features without requiring human-labeled data.
3. Experimental Setup
We evaluated MetaMask across a diverse range of computer vision benchmarks to test its robustness and scalability:
- Small-scale Classification: CIFAR-10 and CIFAR-100.
- Unsupervised Learning: STL-10, which features a large unlabeled set.
- Large-scale Benchmarks: ImageNet-200 and the full ImageNet dataset for linear evaluation and robustness testing.
Experiments utilized various backbones, including traditional convolutional architectures and ResNet-18, to ensure the framework's generalizability.
4. Results and Analysis
4.1 Performance Gains
MetaMask consistently outperformed baseline SSL methods, including SimCLR, MoCo, Barlow Twins, and BYOL. Notably, on CIFAR-10 using a convolutional backbone, MetaMask improved the accuracy of the Barlow Twins baseline from 76.63% to 85.24%, a significant absolute gain of 8.61%.
4.2 Robustness to Projection Head Scale
One of the most striking findings is MetaMask's stability at scale. While standard methods like Barlow Twins experience performance collapse when the projection head reaches high dimensions (e.g., 16,384), MetaMask maintains high accuracy. This confirms that the meta-learned mask successfully filters out the confounders that typically emerge in over-parameterized projection spaces.
4.3 Sample Efficiency
MetaMask demonstrates superior sample efficiency. On CIFAR-10, MetaMask achieved 86.01% accuracy within 800 epochs, whereas SimCLR required 2400 epochs to reach a lower peak of 81.75%. This suggests that by focusing on relevant dimensions, the model converges on high-quality representations much faster than its counterparts.
5. Discussion and Conclusion
MetaMask provides both empirical and theoretical evidence that managing dimensional confounders is essential for scaling self-supervised models. By providing tighter risk bounds for downstream tasks and introducing a self-paced learning mechanism for feature selection, MetaMask represents a significant step forward in redundancy-reduction techniques.
Despite its successes, the framework introduces higher computational complexity due to the Hessian-based updates required for meta-learning. Future work will focus on optimizing these updates and exploring the integration of MetaMask with Masked Image Modeling (MIM) to further enhance representation quality.
Summary updated