Bootstrap Your Own Latent: A New Approach to Self-Supervised Learning

Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi Munos, Michal Valko

2020 · NeurIPS

Bootstrap Your Own Latent: A New Approach to Self-Supervised Learning

Problem

Framing

Contrastive SSL depended on negative pairs, large batches, or memory banks to avoid collapse. BYOL replaces negatives with bootstrap regression between two augmented views, using an online predictor and an EMA target network. On ImageNet linear evaluation, it reaches 74.3% top-1 with ResNet-50 and 79.6% with ResNet-200 (2×\times).

Currently Used Methods

Foundational

Proposed Method

Loss / Objective

BYOL uses two branches. The online branch is encoder fθf_{\theta}, projector gθg_{\theta}, predictor qθq_{\theta}; the target branch is encoder fξf_{\xi} and projector gξg_{\xi} with no predictor. The target parameters follow an EMA of the online weights, and only fθf_{\theta} is kept after training.

Architecture diagram: an input image is augmented into two views; the online path applies encoder, projector, and predictor, while the target path applies encoder and projector with stop-gradient before the similarity loss.

Loss / Objective

The objective regresses the normalized online prediction to the normalized target projection, then symmetrizes across the two views.

Lθ,ξ=qθ(zθ)qθ(zθ)2zξzξ222=22qθ(zθ),zξqθ(zθ)2zξ2\mathcal{L}_{\theta,\xi} = \left\| \frac{q_{\theta}(z_{\theta})}{\|q_{\theta}(z_{\theta})\|_2} - \frac{z_{\xi}'}{\|z_{\xi}'\|_2} \right\|_2^2 = 2 - 2 \cdot \frac{\langle q_{\theta}(z_{\theta}), z_{\xi}' \rangle}{\|q_{\theta}(z_{\theta})\|_2 \cdot \|z_{\xi}'\|_2} Lθ,ξBYOL=Lθ,ξ+L~θ,ξ\mathcal{L}^{\mathrm{BYOL}}_{\theta,\xi} = \mathcal{L}_{\theta,\xi} + \tilde{\mathcal{L}}_{\theta,\xi}

Sampling Rule / Algorithm

Each step updates the online network by gradient descent and the target network by EMA.

ξτξ+(1τ)θ\xi \leftarrow \tau \xi + (1-\tau)\theta θoptimizer ⁣(θ,θLθ,ξBYOL,η)\theta \leftarrow \mathrm{optimizer}\!\left(\theta, \nabla_{\theta} \mathcal{L}^{\mathrm{BYOL}}_{\theta,\xi}, \eta\right)

Training Procedure

Evaluation

Datasets

Metrics

Headline results

Results plot: BYOL loses less top-1 accuracy than SimCLR as batch size shrinks and augmentations are removed.

Ablations

Method Strengths and Weaknesses

Strengths

Weaknesses

Suggestions from the authors

Links

Prior Papers

Further Papers