Representation Learning by Learning to Count
Mehdi Noroozi, Hamed Pirsiavash, Paolo Favaro
TL;DR
This work introduces a self-supervised representation learning method that uses counting of visual primitives as an artificial supervision signal. By enforcing an equivariance-like constraint between image downsampling and tiling transformations in feature space, the authors train a neural network with a contrastive loss to avoid trivial solutions. The resulting representations achieve competitive or superior transfer-learning performance on benchmarks such as Pascal VOC and ImageNet/Places, and extensive analyses show the learned features encode high-level visual content and scene structure. The approach highlights counting as a versatile pretext task and suggests extensions to other transformations and semi-supervised settings.
Abstract
We introduce a novel method for representation learning that uses an artificial supervision signal based on counting visual primitives. This supervision signal is obtained from an equivariance relation, which does not require any manual annotation. We relate transformations of images to transformations of the representations. More specifically, we look for the representation that satisfies such relation rather than the transformations that match a given representation. In this paper, we use two image transformations in the context of counting: scaling and tiling. The first transformation exploits the fact that the number of visual primitives should be invariant to scale. The second transformation allows us to equate the total number of visual primitives in each tile to that in the whole image. These two transformations are combined in one constraint and used to train a neural network with a contrastive loss. The proposed task produces representations that perform on par or exceed the state of the art in transfer learning benchmarks.
