Reproduce “Representation Learning by Learning to Count” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Mehdi Noroozi, Hamed Pirsiavash, Paolo Favaro

A self-supervised method trains deep neural networks to learn visual representations by implicitly "counting visual primitives," enforcing that feature vectors derived from scaled images equal the sum of vectors from their tiled components. This approach generates features competitive with state-of-the-art self-supervised methods on PASCAL VOC (e.g., 67.7% mAP for classification) and demonstrates robust cross-dataset generalization.

Key insights

  • Leveraging fundamental image properties like scale invariance and additive compositionality for counts provides a strong, annotation-free supervision signal for learning high-level semantic representations.
  • A contrastive loss is essential to prevent self-supervised models from collapsing to trivial feature representations (e.g., all zeros) when enforcing internal consistency constraints.
  • Networks can exploit subtle non-semantic artifacts (e.g., downsampling styles, chromatic aberrations); careful regularization through randomization is critical for learning robust and generalizable features.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.