NASiam: Efficient Representation Learning using Neural Architecture Search for Siamese Networks

Alexandre Heuillet, Hedi Tabia, Hichem Arioui
1/31/2023
cs.CVcs.AI

Official code: aheuillet/NASiam (9 stars, last commit 2024-06-02).

Abstract

Siamese networks are one of the most trending methods to achieve self-supervised visual representation learning (SSL). Since hand labeling is costly, SSL can play a crucial part by allowing deep learning to train on large unlabeled datasets. Meanwhile, Neural Architecture Search (NAS) is becoming increasingly important as a technique to discover novel deep learning architectures. However, early NAS methods based on reinforcement learning or evolutionary algorithms suffered from ludicrous computational and memory costs. In contrast, differentiable NAS, a gradient-based approach, has the advantage of being much more efficient and has thus retained most of the attention in the past few years. In this article, we present NASiam, a novel approach that uses for the first time differentiable NAS to improve the multilayer perceptron projector and predictor (encoder/predictor pair) architectures inside siamese-networks-based contrastive learning frameworks (e.g., SimCLR, SimSiam, and MoCo) while preserving the simplicity of previous baselines. We crafted a search space designed explicitly for multilayer perceptrons, inside which we explored several alternatives to the standard ReLU activation function. We show that these new architectures allow ResNet backbone convolutional models to learn strong representations efficiently. NASiam reaches competitive performance in both small-scale (i.e., CIFAR-10/CIFAR-100) and large-scale (i.e., ImageNet) image classification datasets while costing only a few GPU hours. We discuss the composition of the NAS-discovered architectures and emit hypotheses on why they manage to prevent collapsing behavior. Our code is available at https://github.com/aheuillet/NASiam.

View on arXivView PDF

Code Implementations(1)

aheuillet/NASiamOfficial100%

Official implementation of the NASiam paper.

92PythonJan 31, 20232 years agoNOASSERTION
computer-visioncontrastive-learningneural-architecture-searchsiamese-networks

Cite this paper

@article{heuillet2023nasiam,
  title  = {NASiam: Efficient Representation Learning using Neural Architecture Search for Siamese Networks},
  author = {Alexandre Heuillet and Hedi Tabia and Hichem Arioui},
  year   = {2023},
  eprint = {2302.00059},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.00059v1}
}

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/2302.00059.svg)](https://codeofpaper.com/paper/2302.00059)

Discussion