利用基於圖片顯著性的遮罩來增益於以卷積神經網路為基底的對比式自監督學習
Masking Improves Contrastive Self-Supervised Learning for ConvNets, and Saliency Tells You Where
摘要
近年來自監督式學習利用變壓器的模型骨架以及圖像詞元化的方式、搭配對被部分遮蔽的圖像(意即加上遮罩)進行重建之損失函數,得到相當不錯的學習效果。但是想要將此遮罩技巧直接運用在另一個重要且廣泛使用的卷積神經網絡骨幹上、並當作對比式自監督式學習中一種資料增強的方法時,卻會遭遇到不少的困難。在此論文中,我們欲減輕在以卷積神經網路為骨架之對比式學習中將遮罩操作做為額外資料增強方法所碰到的問題。我們除了討論在先前的研究中有提過的:遮罩所造成的明顯邊緣 (即圖像中被遮罩以及未被遮罩區域之間的邊緣)以及其他衍伸之對於卷積網路運行上所產生的副作用,我們還特別提出另一個潛在的問題:在對比式學習的樣本對裡,其中一個正樣本之隨機選取的遮罩區域如果過於集中在圖片中重要或顯著的物體上時,將會對樣本對中的另一個正樣本產生誤導。為此,我們提出要在考慮影像之顯著性的前提下,將遮罩的區域均勻的分布在前景和背景上,以實現基於遮罩的資料擴增。此外,我們也將遮蔽掉較大顯著性區域面積的影像當作額外的負樣本。我們在各種數據集、對比式學習方法、和下游任務上進行大量實驗,以充分驗證我們提出的方法相對於目前其他主流對比式學習方法的有效性。
While image data starts to enjoy the simple-but-effective self-supervised learning scheme built upon masking and self-reconstruction objective thanks to the introduction of tokenization procedure and vision transformer backbone, convolutional neural networks as another important and widely-adopted architecture for image data, though having contrastive-learning techniques to drive the self-supervised learning, still face the difficulty of leveraging such straightforward and general masking operation to benefit their learning process significantly. In this work, we aim to alleviate the burden of including masking operation into the contrastive-learning framework for convolutional neural networks as an extra augmentation method. In addition to the additive but unwanted edges (between masked and unmasked regions) as well as other adverse effects caused by the masking operations for ConvNets, which have been discussed by prior works, we particularly identify the potential problem where for one view in a contrastive sample-pair the randomly-sampled masking regions could be overly concentrated on important/salient objects thus resulting in misleading contrastiveness to the other view. To this end, we propose to explicitly take the saliency constraint into consideration in which the masked regions are more evenly distributed among the foreground and background for realizing the masking-based augmentation. Moreover, we introduce hard negative samples by masking larger regions of salient patches in an input image. Extensive experiments conducted on various datasets, contrastive learning mechanisms, and downstream tasks well verify the efficacy as well as the superior performance of our proposed method with respect to several state-of-the-art baselines.