Representation Learning by Detecting Incorrect Location Embeddings

Sepehr Sameni, Simon Jenni, Paolo Favaro
4/10/2022
cs.CVcs.AIcs.LG
contrastive-ssl

Official code: Separius/DILEMMA (2 stars, Python, last commit 2023-02-06).

Abstract

In this paper, we introduce a novel self-supervised learning (SSL) loss for image representation learning. There is a growing belief that generalization in deep neural networks is linked to their ability to discriminate object shapes.

Show full abstract

Since object shape is related to the location of its parts, we propose to detect those that have been artificially misplaced. We represent object parts with image tokens and train a ViT to detect which token has been combined with an incorrect positional embedding. We then introduce sparsity in the inputs to make the model more robust to occlusions and to speed up the training. We call our method DILEMMA, which stands for Detection of Incorrect Location EMbeddings with MAsked inputs. We apply DILEMMA to MoCoV3, DINO and SimCLR and show an improvement in their performance of respectively 4.41%, 3.97%, and 0.5% under the same training time and with a linear probing transfer on ImageNet-1K. We also show full fine-tuning improvements of MAE combined with our method on ImageNet-100. We evaluate our method via fine-tuning on common SSL benchmarks. Moreover, we show that when downstream tasks are strongly reliant on shape (such as in the YOGA-82 pose dataset), our pre-trained features yield a significant gain over prior work.

View on arXivView PDF

Code Implementations(1)

Separius/DILEMMAOfficial100%

PyTorch implementation of DILEMMA https//arxiv.org/abs/2204.04788 (AAAI23)

20PythonFeb 6, 20233 years agoNOASSERTION

Similar Papers

Cite this paper

@article{sameni2022representation,
  title  = {Representation Learning by Detecting Incorrect Location Embeddings},
  author = {Sepehr Sameni and Simon Jenni and Paolo Favaro},
  year   = {2022},
  eprint = {2204.04788},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.04788}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.04788.svg)](https://codeofpaper.com/paper/2204.04788)

Discussion