Contrastive Learning and Positive Pair Design

Construct training pairs with a declared shared property and diagnose when augmentation teaches an unwanted invariance.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. The pairing rule defines which views should agree
  2. Candidates include ambiguous negatives

The pairing rule defines which views should agree

A contrastive image pipeline can take two transformations of one input as a positive pair and compare it with other examples. Similarity can use normalized embeddings. A crop might preserve overall object identity while discarding the small label needed by a later downstream task. Treating all such views as positive teaches belief about which input differences should be ignored.

Candidates include ambiguous negatives

Two different source images can depict the same object class or condition. Treating them as negatives can push apart features a downstream query would group. Evaluation should test both the retained information and how much depends on training pair design. Cosine similarity defines a common comparison. Self-supervised representation learning analyzes contrastive objectives, anti-collapse regularization and masking.[1][2]

References

  1. Ting Chen et al., A Simple Framework for Contrastive Learning of Visual Representations ↩
  2. Ian Goodfellow, Yoshua Bengio and Aaron Courville, Deep Learning ↩