TL;DR
This paper introduces a novel method to make self-supervised learning models more trustworthy by estimating their uncertainty. They achieve this by using an ensemble of independent sub-networks with a new diversity-promoting loss function, offering well-calibrated uncertainty estimates with minimal computational overhead compared to traditional deep ensembles.
What Problem Does This Paper Address?
Self-supervised learning (SSL) has become a dominant paradigm for training powerful models across various domains like computer vision and natural language processing. However, a critical limitation of current SSL models is their inability to express confidence in their predictions. This lack of uncertainty estimation is a significant hurdle for deploying these models in high-stakes applications such as medical diagnosis or autonomous driving, where understanding model reliability is paramount. While model ensembling is a known technique for estimating uncertainty, deep ensembles are computationally expensive, especially for already resource-intensive SSL models. Existing methods for uncertainty quantification are often tailored for supervised learning and don't directly translate to the unsupervised pretraining phase of SSL.
Methods
The core of this paper is a novel "uncertainty-aware training regime" for self-supervised learning. Instead of a single encoder network, they employ an ensemble of M independent sub-networks that process the same input representations.
Here's a breakdown of their approach:
- Independent Sub-networks: After an initial encoder network generates representations from augmented views of the input, these representations are fed into M separate, trainable sub-networks. Each sub-network produces its own embedding.
- Averaging for Performance: For the standard self-supervised loss (e.g., contrastive learning), the mean of the embeddings from all sub-networks is used. This averaging is found to improve predictive performance.
- Diversity Loss for Uncertainty: To encourage uncertainty estimation, they introduce a new diversity regularization loss. This loss penalizes sub-networks whose standard deviations (across their embeddings) are too low, pushing them to disagree and thus capture different aspects of the data's uncertainty. This disagreement is key to estimating epistemic uncertainty (model uncertainty).
- Combined Loss: The final loss function is a combination of the standard self-supervised loss and this new diversity loss, controlled by a hyperparameter $\lambda$.
This approach aims to achieve the benefits of ensembling (uncertainty estimation) without the full computational cost, by sharing the initial encoder and only having independent, smaller sub-networks for the final embedding.
Datasets
The paper evaluates their method on a variety of datasets across different domains:
- Computer Vision: CIFAR-10, CIFAR-100, ImageNet, SVHN, and Uniform (likely referring to a dataset of uniform noise or a specific benchmark).
- Natural Language Processing (NLP): Sentences from Wikipedia for pretraining, and seven semantic textual similarity datasets from the SentEval benchmark suite (MR, CR, SUBJ, MPQA, SST-2, TREC, MRPC).
- Genomics: T6SS effector protein dataset (a 1-dimensional genomic sequence dataset).
No new datasets were introduced; they utilized established benchmarks.
Key Insights and Ideas
- Diversity is Key for SSL Uncertainty: The paper strongly suggests that encouraging diversity among sub-networks is crucial for effectively estimating epistemic uncertainty in self-supervised learning. This is a departure from simply averaging predictions, as it actively promotes disagreement that reflects model uncertainty.
- Low Overhead Uncertainty: The core innovation is demonstrating that uncertainty estimation can be achieved with minimal computational overhead compared to a single SSL model, by leveraging independent sub-networks rather than a full deep ensemble.
- Pretraining Matters for Uncertainty: The method focuses on incorporating uncertainty estimation during the self-supervised pretraining phase, which is a novel aspect compared to many post-hoc uncertainty methods.
- Generalizability Across Domains: The approach shows promise across diverse data types (images, text, genomics), indicating its broad applicability.
Key Results
The proposed method consistently demonstrates strong performance across various evaluation tasks:
- In-Distribution Generalization (Calibration): The method achieves better calibration (lower ECE and NLL) than deep ensembles, MC-dropout, and BatchEnsemble on CIFAR-10, CIFAR-100, and ImageNet, often with substantial margins, especially at larger ensemble sizes. For example, on CIFAR-10, their method achieved an ECE of 0.016, significantly lower than the baseline's 0.039.
- Out-of-Distribution (OOD) Detection: Their approach improves AUROC for OOD detection compared to baselines and deep self-supervised ensembles, enhancing the model's ability to recognize out-of-distribution samples. For instance, on the SVHN dataset, their method achieved an AUROC of 88.00, outperforming the baseline (84.22) and SSL-Ensemble (84.95).
- Semi-Supervised Learning: In low-data regimes (1% and 10% of data), their method significantly outperforms other approaches in both accuracy and calibration on CIFAR-10/100.
- Corrupted Dataset Evaluation: The method shows comparable predictive performance to deep self-supervised ensembles in terms of calibration (TACE) and AUROC under dataset corruption.
- Computational Efficiency: Table 1 shows that their method (e.g., 3 members) has a parameter count and memory usage comparable to a single baseline model, while a deep ensemble of 3 members incurs 3x the cost. Computation time is also very similar to a single model.
Limitations and Future Work
- Hyperparameter Tuning: The paper notes that the hyperparameters $\alpha$ (for diversity loss) and $\lambda$ (for weighting the diversity loss) need to be optimized jointly and can impact performance. They found optimal values for CIFAR-10 to be $\alpha=0.08$ and $\lambda=1.5$.
- Ensemble Size: While their method scales better than deep ensembles, the performance generally improves with an increasing number of sub-networks (M) up to a certain point, suggesting there's an optimal ensemble size to tune.
- Future Work: The paper suggests exploring the impact of their approach at different stages (pretraining vs. finetuning) and mentions that pretraining with their ensemble of sub-networks is beneficial, with additional finetuning potentially offering further improvements. They also imply that their method can be readily integrated into various existing SSL frameworks.
Summary updated