Barlow Twins is a self-supervised learning method that builds a cross-correlation matrix between the dimensions of the embeddings of two views of the same image and pushes it toward the identity matrix. It was proposed by Zbontar et al. at Facebook AI Research in 2021 and presented at ICML 2021. Without negatives, a predictor, or a moving-average network, it reaches a top-1 accuracy of 73.2% with ResNet-50 under linear evaluation on ImageNet.
Learning that pulls together the features of two views faces the problem of collapse: the loss can be lowered simply by outputting the same feature for every image. Earlier methods avoided collapse through implementation tricks such as negatives (SimCLR), a predictor and a moving average (BYOL), or a predictor and stop-gradient (SimSiam).
Barlow Twins instead designs the loss function itself so that it does not allow collapse. Setting the diagonal of the cross-correlation matrix to 1 aligns the embeddings of the two views. Setting the off-diagonal entries to 0 decorrelates the embedding dimensions from one another, so each dimension carries different information. The paper states that this loss avoids collapsed solutions by construction, even though the two networks remain symmetric.
The name comes from neuroscientist H. Barlow's redundancy-reduction principle (the hypothesis that the goal of sensory processing is to recode redundant inputs into a representation whose components are statistically independent) and from the two networks with shared weights (twins). As an analogy, take two photos of the same person from different angles: the idea is to make the per-item ratings ("hair color," "face shape," and so on) agree between the photos, while keeping the items from merely restating one another.

