{"notes":[{"id":"contrastive-learning/byol","category":"contrastive-learning","legacyPath":"contrastive-learning/2006-byol","legacySlug":"2006-byol","legacyPaths":[],"title":"BYOL","subtitle":"No Need for Negative Samples","author":"Z. Yuan","paperDate":"2020-06-13","publishedOn":"2025-02-19","paperTitle":"Bootstrap your own latent: A new approach to self-supervised Learning","paperUrl":"https://arxiv.org/abs/2006.07733","bibliography":{"title":"Bootstrap your own latent: A new approach to self-supervised Learning","authors":["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"],"url":"https://arxiv.org/abs/2006.07733","pdfUrl":"https://arxiv.org/pdf/2006.07733","codeUrl":null,"preprint":{"id":"2006.07733","submittedOn":"2020-06-13","url":"https://arxiv.org/abs/2006.07733"},"publication":{"venue":"NeurIPS","year":2020,"kind":"conference","url":"https://proceedings.neurips.cc/paper/2020/file/f3ada80d5c4ee70142b17b8192b2958e-Review.html"},"citation":"@misc{contrastivelearningbyol2020,\n  title = {{Bootstrap your own latent: A new approach to self-supervised Learning}},\n  author = {Jean-Bastien Grill and Florian Strub and Florent Altché and Corentin Tallec and Pierre H. Richemond and Elena Buchatskaya and Carl Doersch and Bernardo Avila Pires and Zhaohan Daniel Guo and Mohammad Gheshlaghi Azar and Bilal Piot and Koray Kavukcuoglu and Rémi Munos and Michal Valko},\n  year = {2020},\n  eprint = {2006.07733},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2006.07733}\n}\n","citationPath":"/content/papers/citations/contrastive-learning/byol.bc00bcda9fb7.bib"},"thumbnail":{"src":"/content/papers/assets/b8cc1c529a1c65a2a6ce495941153b6b24def2bccc29907a0a5edf64b16570c9.jpg","width":1470,"height":526},"locale":"en","path":"/content/papers/en/contrastive-learning/byol.07dbefe0a2d7.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"training-process","text":"Training Process","depth":3},{"id":"loss-function","text":"Loss Function","depth":3},{"id":"implementation-details","text":"Implementation Details","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"why-doesnt-byol-collapse","text":"Why Doesn’t BYOL Collapse?","depth":3},{"id":"performance-on-imagenet","text":"Performance on ImageNet","depth":3},{"id":"ablation-studies---part-1","text":"Ablation Studies - Part 1","depth":3},{"id":"ablation-studies---part-2","text":"Ablation Studies - Part 2","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"contrastive-learning/simsiam","relation":"comparison","topic":"Self-supervision without explicit negative pairs"},{"id":"contrastive-learning/swav","relation":"comparison","topic":"Self-supervision without explicit negative pairs"}]},{"id":"contrastive-learning/simsiam","category":"contrastive-learning","legacyPath":"contrastive-learning/2011-simsiam","legacySlug":"2011-simsiam","legacyPaths":[],"title":"SimSiam","subtitle":"You Can Not Pass!","author":"Z. Yuan","paperDate":"2020-11-20","publishedOn":"2025-03-13","paperTitle":"Exploring Simple Siamese Representation Learning","paperUrl":"https://arxiv.org/abs/2011.10566","bibliography":{"title":"Exploring Simple Siamese Representation Learning","authors":["Xinlei Chen","Kaiming He"],"url":"https://arxiv.org/abs/2011.10566","pdfUrl":"https://arxiv.org/pdf/2011.10566","codeUrl":null,"preprint":{"id":"2011.10566","submittedOn":"2020-11-20","url":"https://arxiv.org/abs/2011.10566"},"publication":{"venue":"CVPR","year":2021,"kind":"conference","url":"https://doi.org/10.1109/cvpr46437.2021.01549"},"citation":"@misc{contrastivelearningsimsiam2020,\n  title = {{Exploring Simple Siamese Representation Learning}},\n  author = {Xinlei Chen and Kaiming He},\n  year = {2020},\n  eprint = {2011.10566},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2011.10566}\n}\n","citationPath":"/content/papers/citations/contrastive-learning/simsiam.a5921684873c.bib"},"thumbnail":{"src":"/content/papers/assets/9bab3f46b43305da27713f84e0b872ce577aedbd39bc82ce31403082310a0336.jpg","width":984,"height":624},"locale":"en","path":"/content/papers/en/contrastive-learning/simsiam.b31f9f75e7c6.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"stop-gradient","text":"Stop Gradient","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-other-methods","text":"Comparison with Other Methods","depth":3},{"id":"exploration-of-basic-architecture-design","text":"Exploration of Basic Architecture Design","depth":3},{"id":"ablation-studies","text":"Ablation Studies","depth":3},{"id":"expectation-maximization-hypothesis","text":"Expectation-Maximization Hypothesis","depth":2},{"id":"mathematical-representation","text":"Mathematical Representation","depth":3},{"id":"simsiams-em-approximation","text":"SimSiam's EM Approximation","depth":3},{"id":"the-true-role-of-the-predictor","text":"The True Role of the Predictor","depth":3},{"id":"the-effect-of-symmetric-loss-function","text":"The Effect of Symmetric Loss Function","depth":3},{"id":"experimental-validation-of-the-hypothesis","text":"Experimental Validation of the Hypothesis","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"contrastive-learning/byol","relation":"comparison","topic":"Self-supervision without explicit negative pairs"},{"id":"contrastive-learning/swav","relation":"comparison","topic":"Self-supervision without explicit negative pairs"}]},{"id":"contrastive-learning/swav","category":"contrastive-learning","legacyPath":"contrastive-learning/2006-swav","legacySlug":"2006-swav","legacyPaths":[],"title":"SwAV","subtitle":"Swapping Cluster Predictions","author":"Z. Yuan","paperDate":"2020-06-17","publishedOn":"2025-03-04","paperTitle":"Unsupervised Learning of Visual Features by Contrasting Cluster Assignments","paperUrl":"https://arxiv.org/abs/2006.09882","bibliography":{"title":"Unsupervised Learning of Visual Features by Contrasting Cluster Assignments","authors":["Mathilde Caron","Ishan Misra","Julien Mairal","Priya Goyal","Piotr Bojanowski","Armand Joulin"],"url":"https://arxiv.org/abs/2006.09882","pdfUrl":"https://arxiv.org/pdf/2006.09882","codeUrl":null,"preprint":{"id":"2006.09882","submittedOn":"2020-06-17","url":"https://arxiv.org/abs/2006.09882"},"publication":{"venue":"NeurIPS","year":2020,"kind":"conference","url":"https://arxiv.org/abs/2006.09882"},"citation":"@misc{contrastivelearningswav2020,\n  title = {{Unsupervised Learning of Visual Features by Contrasting Cluster Assignments}},\n  author = {Mathilde Caron and Ishan Misra and Julien Mairal and Priya Goyal and Piotr Bojanowski and Armand Joulin},\n  year = {2020},\n  eprint = {2006.09882},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2006.09882}\n}\n","citationPath":"/content/papers/citations/contrastive-learning/swav.0490004fcf03.bib"},"thumbnail":{"src":"/content/papers/assets/6a7e173611b1c8ff7d688566c9efb960e31afc020211d8c978ddc19250916671.jpg","width":1400,"height":428},"locale":"en","path":"/content/papers/en/contrastive-learning/swav.eb1bcbe9c75a.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"online-clustering","text":"Online Clustering","depth":3},{"id":"equal-allocation-constraint","text":"Equal Allocation Constraint","depth":3},{"id":"multiple-crops","text":"Multiple Crops","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"experimental-results","text":"Experimental Results","depth":3},{"id":"ablation-study-multiple-crops","text":"Ablation Study: Multiple Crops","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"contrastive-learning/byol","relation":"comparison","topic":"Self-supervision without explicit negative pairs"},{"id":"contrastive-learning/simsiam","relation":"comparison","topic":"Self-supervision without explicit negative pairs"}]}],"text":"While everyone is actively discussing how to design negative samples, the authors of this paper stand out by proposing an approach that doesn’t require negative samples.\n\nAs the authors put it: by learning from itself, a model can push past its own limits.\n\n## Problem Definition\n\nThe core concept of contrastive learning is to pull together representations of the same image from different views (referred to as \"positive sample pairs\") while pushing apart representations from different images (referred to as \"negative sample pairs\") to learn representations.\n\nHowever, these methods require carefully designed negative sample handling strategies, such as large-batch training (SimCLR) or memory banks (MoCo), to ensure effective learning.\n\nFurthermore, these methods heavily rely on image augmentations, with techniques like random cropping proven to be very effective in experiments.\n\nGiven how troublesome the design of negative samples can be, is there a way to avoid them altogether?\n\n\n> [!TIP]\n> \n> If you haven’t read SimCLR and MoCo yet, you can refer to our previous articles:\n> \n> - [**[19.11] MoCo v1: Momentum Contrastive Learning**](/blog/papers/contrastive-learning/moco-v1)\n> - [**[20.02] SimCLR v1: Winning with Batch Size**](/blog/papers/contrastive-learning/simclr-v1)\n\n\n## Solution\n\n### Model Architecture\n\n\n\n![model_arch](/content/papers/assets/b8cc1c529a1c65a2a6ce495941153b6b24def2bccc29907a0a5edf64b16570c9.jpg)\n\n\n\nThe authors propose the BYOL architecture, which consists of two parts: an online network and a target network:\n\n- **Online Network**: The upper half of the figure above, consisting of three parts:\n\n  1. **Encoder** $f_{\\theta}$: Converts the input image into features.\n  2. **Projector** $g_{\\theta}$: Maps the features into a high-dimensional space, similar to contrastive learning methods like SimCLR.\n  3. **Predictor** $q_{\\theta}$: Learns a nonlinear mapping in the projected space to predict the output of the target network.\n\n- **Target Network**:\n\n  The target contains an encoder and projector, but no predictor. Its parameters $\\xi$ are an exponential moving average (EMA) of the corresponding online parameters $\\theta$. The update rule is as follows:\n\n  $$\n  \\xi \\leftarrow \\tau \\xi + (1 - \\tau) \\theta\n  $$\n\n  Here, $\\tau$ is the decay factor that controls the update speed of the target network.\n\n### Training Process\n\nThe BYOL training process begins with a given image dataset $D$. A random image $x \\sim D$ is selected, and two different image augmentations $T$ and $T'$ are applied to generate two different views:\n\n$$\nv = t(x), \\quad v' = t'(x)\n$$\n\nWhere $t \\sim T$, $t' \\sim T'$.\n\nFor the first augmented view $v$, the online network computes:\n\n$$\ny_{\\theta} = f_{\\theta}(v), \\quad z_{\\theta} = g_{\\theta}(y_{\\theta})\n$$\n\nFor the second augmented view $v'$, the target network computes:\n\n$$\ny'_{\\xi} = f_{\\xi}(v'), \\quad z'_{\\xi} = g_{\\xi}(y'_{\\xi})\n$$\n\nAt this point, both branches have produced projected representations, but BYOL has no negative examples. If we merely pull the two representations together, every image might end up with the same trivial representation. The authors add a predictor $q_{\\theta}$ to the online branch to predict the target projection:\n\n$$\n\\hat{z}_{\\theta} = q_{\\theta}(z_{\\theta})\n$$\n\nThen, $z'_{\\xi}$ and $\\hat{z}_{\\theta}$ are compared and pulled together. In other words, the framework becomes a \"prediction\" problem rather than a \"contrast\" problem. The target branch is stop-gradient in this loss; only the online branch is updated by backpropagation.\n\nFinally, to ensure numerical stability, **$L_2$ normalization** is applied when comparing these vectors (making their norms equal to 1):\n\n$$\n\\hat{z}_{\\theta} = \\frac{q_{\\theta}(z_{\\theta})}{\\|q_{\\theta}(z_{\\theta})\\|_2}, \\quad\nz'_{\\xi} = \\frac{z'_{\\xi}}{\\|z'_{\\xi}\\|_2}\n$$\n\n### Loss Function\n\nHere the authors do not use InfoNCE. Instead, the loss is the squared distance between the two normalized vectors:\n\n$$\nL_{\\theta, \\xi} = \\|\\hat{z}_{\\theta} - z'_{\\xi}\\|_2^2\n$$\n\nExpanding the computation:\n\n$$\nL_{\\theta, \\xi} = 2 - 2 \\cdot \\langle \\hat{z}_{\\theta}, z'_{\\xi} \\rangle\n$$\n\nWhere $\\langle \\hat{z}_{\\theta}, z'_{\\xi} \\rangle$ is the inner product of two unit vectors, representing the cosine similarity between them.\n\nAdditionally, to symmetrize the learning, the views are swapped during training: $v'$ passes through the online network, and $v$ passes through the target network. The same loss is then computed again:\n\n$$\nL'_{\\theta, \\xi} = \\|\\hat{z}'_{\\theta} - z_{\\xi}\\|_2^2\n$$\n\nThe final total BYOL loss is:\n\n$$\nL^{BYOL}_{\\theta, \\xi} = L_{\\theta, \\xi} + L'_{\\theta, \\xi}\n$$\n\n### Implementation Details\n\nBYOL uses the same set of image augmentations as SimCLR, with view-dependent application probabilities:\n\n1. Random cropping and resizing to $224 \\times 224$ resolution.\n2. Random horizontal flipping.\n3. Color jittering (randomly changing brightness, contrast, saturation, and hue).\n4. Grayscale conversion (optional).\n5. Gaussian blur.\n6. Solarization.\n\n---\n\nFor the network architecture, BYOL uses ResNet-50 as the base encoder $f_{\\theta}$ and $f_{\\xi}$, and tests deeper ResNet variants (50, 101, 152, 200 layers) and wider variants (1× to 4×) in different experiments.\n\nThe detailed network structure is as follows:\n\n- **Output feature dimension**: 2048 (when width multiplier is 1×).\n- **Projection layer (MLP)**:\n  - **First layer**: Linear layer with output dimension 4096.\n  - **Batch normalization**.\n  - **ReLU activation**.\n  - **Final linear layer**: Output dimension 256.\n- **Predictor**: Same structure as the projection layer.\n\nUnlike SimCLR, BYOL does not apply batch normalization to the projector output. The paper does not attribute this choice to whether negative examples are used.\n\n---\n\nFinally, BYOL uses the LARS optimizer with a cosine decay learning rate schedule:\n\n- Train for 1000 epochs, with the first 10 epochs performing learning rate warmup.\n- The base learning rate is:\n  $$\n  \\eta = 0.2 \\times \\frac{\\text{BatchSize}}{256}\n  $$\n- Weight decay: $1.5 \\times 10^{-6}$.\n- Exponential moving average parameter $\\tau$: Starting value of 0.996, gradually increasing to 1 over training:\n  $$\n  \\tau = 1 - (1 - \\tau_{\\text{base}}) \\cdot \\frac{\\cos(\\pi k/K) + 1}{2}\n  $$\n  Where $k$ is the current step, and $K$ is the maximum number of steps.\n\n## Discussion\n\n### Why Doesn’t BYOL Collapse?\n\n\n> [!TIP]\n> \n> This section is arguably the most interesting part of the paper.\n\n\nIn contrastive learning, the design of negative sample pairs ensures that the model does not collapse into a trivial constant representation.\n\nSince BYOL does not have an explicit regularization term to avoid collapse during training, why doesn’t it collapse?\n\nThe authors offer a detailed explanation:\n\n1. The target network parameters $\\xi$ in BYOL are not updated through gradient descent. Therefore, the update direction for these parameters is not along the gradient of the loss function $L_{\\theta, \\xi}$:\n\n   $$\n   \\xi \\leftarrow \\tau \\xi + (1 - \\tau) \\theta.\n   $$\n\n   The authors compare this to the learning dynamics of generative adversarial networks (GANs): the two sets of parameters do not jointly descend the gradient of the same loss. Thus, finding that a constant representation minimizes the stated loss does not, by itself, show that BYOL will converge there. This is the authors’ explanation, not a complete proof against collapse.\n\n---\n\n2. For further analysis, the authors temporarily set aside normalization and the symmetric loss, and assume that **the predictor $q_{\\theta}$ is optimal** (i.e., it minimizes the expected squared error):\n\n   $$\n   q^* = \\arg \\min_{q} \\mathbb{E} \\left[ \\| q(z_{\\theta}) - z'_{\\xi} \\|_2^2 \\right],\n   $$\n\n   The optimal $q^*$ should satisfy:\n\n   $$\n   q^*(z_{\\theta}) = \\mathbb{E}[z'_{\\xi} | z_{\\theta}].\n   $$\n\n   Under these conditions, it is possible to derive the update direction of BYOL’s parameters. The gradient update with respect to $\\theta$ is related to the conditional variance:\n\n   $$\n   \\nabla_{\\theta} \\mathbb{E} \\left[ \\| q^*(z_{\\theta}) - z'_{\\xi} \\|_2^2 \\right] = \\nabla_{\\theta} \\mathbb{E} \\left[ \\sum_{i} \\text{Var}(z'_{\\xi, i} | z_{\\theta}) \\right],\n   $$\n\n   where $z'_{\\xi, i}$ represents the $i$-th feature component of $z'_{\\xi}$.\n\n   Under these assumptions, the update direction can be written as the gradient of the expected conditional variance. For square-integrable variables, adding conditioning information cannot increase the *expected* conditional variance. The expectation matters here: the pointwise inequality printed in the paper does not hold in general.\n\n   $$\n   \\mathbb{E}[\\text{Var}(X | Y, Z)] \\leq \\mathbb{E}[\\text{Var}(X | Y)].\n   $$\n\n   If we let:\n\n   - $X = z'_{\\xi}$ (target projection)\n   - $Y = z_{\\theta}$ (current online projection)\n   - $Z$ be additional variability in the training dynamics\n\n   Then, we get:\n\n   $$\n   \\mathbb{E}[\\text{Var}(z'_{\\xi} | z_{\\theta}, Z)] \\leq \\mathbb{E}[\\text{Var}(z'_{\\xi} | z_{\\theta})].\n   $$\n\n   Under the optimal-predictor assumption, discarding information from the online representation alone cannot lower the expected conditional variance. The authors therefore hypothesize that a constant representation would not be a stable outcome of actual training; the argument does not rule out every degenerate case.\n\n---\n\n3. Finally, let’s analyze the update mechanism for the target network parameters $\\xi$.\n\n   Suppose we directly transfer the online network parameters $\\theta$ to the target network:\n\n   $$\n   \\xi \\leftarrow \\theta.\n   $$\n\n   This would indeed quickly transfer the new variability of the online network to the target network, but it could destroy the assumption of optimality for the predictor, leading to instability in training. Therefore, BYOL uses exponential moving average to update the target network:\n\n   $$\n   \\xi \\leftarrow \\tau \\xi + (1 - \\tau) \\theta.\n   $$\n\n   This smooth update changes the target more slowly. The authors hypothesize that it helps the predictor stay near optimal, an explanation supported by the experiments.\n\n### Performance on ImageNet\n\n\n\n![imagenet](/content/papers/assets/696a701aaa66a84404875e698e8c1e39fa142a781052505e369074dedf5de2b7.jpg)\n\n\n\nFollowing the standard linear evaluation protocol, the authors train a linear classifier on the frozen representations from BYOL pretraining and measure the Top-1 and Top-5 accuracy.\n\nOn the ResNet-50 (1×) architecture, BYOL achieves a Top-1 accuracy of 74.3% (Top-5 accuracy of 91.6%), outperforming previous state-of-the-art self-supervised methods by 1.3 percentage points (Top-1) and 0.5 points (Top-5).\n\nBYOL reduces the gap to the supervised learning baseline (76.5%) but is still below the stronger supervised learning baseline (78.9%).\n\nOn deeper and wider ResNets, BYOL continues to outperform the other self-supervised methods in the table. ResNet-50 (4×) reaches 78.6%; the best result, 79.6%, uses ResNet-200 (2×) and approaches the corresponding supervised result.\n\nBYOL achieves performance comparable to, or even better than, contrastive learning methods without requiring negative samples and approaches the supervised learning benchmark. Detailed table data is shown below:\n\n\n\n![imagenet table](/content/papers/assets/6e0a5972270900514a1452706be08ba150435ac5bd4f0dfa3016835ef92a2917.jpg)\n\n\n\n### Ablation Studies - Part 1\n\nThe authors performed a series of ablation studies to explore the impact of key factors in the BYOL design on the final model performance:\n\n1. **Impact of Batch Size on Performance**:\n\n\n\n    ![batch_size](/content/papers/assets/137cf4a36f4fc05132c3473e412827847d70407e0c2740f903d38b214ea47c1f.jpg)\n\n\n\n   In contrastive learning methods, the batch size directly affects the number of negative samples. When the batch size is reduced, the number of negative samples decreases, leading to a worse training performance. Since BYOL does not rely on negative samples, it should theoretically be more robust.\n\n   The authors compared BYOL with their own reproduction of SimCLR at batch sizes from 128 to 4096 over 300 epochs, measuring the drop under linear evaluation. BYOL changes relatively little from 256 to 4096, with a clearer drop at 128 that the authors associate with batch normalization. SimCLR falls further as the batch shrinks, which the authors associate with fewer available negatives.\n\n---\n\n2. **Impact of Image Augmentation**:\n\n\n\n    ![image_aug](/content/papers/assets/5a6294700d990fb247f8ef6fe4490441e7dec97c373cb9c052909e215cd78eb5.jpg)\n\n\n\n   Contrastive learning methods are highly dependent on image augmentations, especially color jittering. This is because randomly cropped views often share color information, but the color variation between views from different images is larger. Without color augmentation, contrastive learning might only learn color histogram-based distinctions, rather than deeper features.\n\n   The authors compared BYOL with their reproduction of SimCLR as they progressively removed augmentations. With cropping alone, BYOL still drops about 13.1 percentage points from its baseline, to 59.4%, while SimCLR drops about 27.6 points, to 40.3%. This figure supports the narrower conclusion that BYOL is less sensitive under these settings.\n\n---\n\n3. **Impact of Bootstrapping**:\n\n\n\n    ![bootstrapping](/content/papers/assets/ee3ec9abedb71d2bfb17bc7d533bc9513ca138d614b65edbd1d78e9f8ebf7d24.jpg)\n\n\n\n   One of the core mechanisms of BYOL is using the target network to provide learning targets, where the target network weights are the exponential moving average (EMA) of the online network weights. If the decay rate is set to 1, the target network never updates, effectively using a fixed random network. If the decay rate is set to 0, the target network updates every step along with the online network.\n\n   The authors tested different target network update rates. The results show that:\n\n   - If the target network updates too quickly, the learning process becomes unstable because the learning target changes too rapidly.\n   - If the target network updates too slowly, learning progresses slowly, and the learned features are of poor quality.\n   - In this 300-epoch ablation, $\\tau_{\\text{base}}=0.99$ gives 72.5%, above 0.9 and 0.999. The main experiment instead starts from 0.996.\n\n### Ablation Studies - Part 2\n\nThe authors further explore the relationship between BYOL and other contrastive learning methods and analyze why BYOL outperforms SimCLR.\n\nStarting from InfoNCE, they consider an extended objective. The equation below is written as a score to **maximize**:\n\n$$\n\\begin{aligned}\n\\text{InfoNCE}_{\\alpha, \\beta}^{\\theta}\n&= \\frac{2}{B} \\sum_{i=1}^{B} S_{\\theta}(v_i, v'_i) \\\\\n&\\quad - \\beta \\cdot \\frac{2\\alpha}{B} \\sum_{i=1}^{B} \\ln \\left( \\sum_{j \\neq i} \\exp\\left(\\frac{S_{\\theta}(v_i, v_j)}{\\alpha}\\right) + \\sum_{j} \\exp\\left(\\frac{S_{\\theta}(v_i, v'_j)}{\\alpha}\\right) \\right).\n\\end{aligned}\n$$\n\nWhere:\n\n- **$\\alpha > 0$**: Temperature hyperparameter.\n- **$\\beta \\in [0,1]$**: Negative sample influence coefficient.\n- **$B$**: Batch size.\n- **$v, v'$**: Augmented views in the batch, with $v_i$ and $v'_i$ being different augmented versions of the same image.\n- **$S_{\\theta}(u_1, u_2)$**: Similarity function between views, defined as:\n\n  $$\n  S_{\\theta}(u_1, u_2) = \\frac{\\langle \\phi(u_1), \\psi(u_2) \\rangle}{\\|\\phi(u_1)\\|_2 \\cdot \\|\\psi(u_2)\\|_2}\n  $$\n\n  Where:\n\n  - **SimCLR**:\n    - **$\\phi(u) = z_{\\theta}(u)$** (no predictor used).\n    - **$\\psi(u) = z_{\\theta}(u)$** (no target network used).\n    - **$\\beta = 1$** (using negative samples).\n  - **BYOL**:\n    - **$\\phi(u) = q_{\\theta}(z_{\\theta}(u))$** (uses predictor).\n    - **$\\psi(u) = z_{\\xi}(u)$** (uses target network).\n    - **$\\beta = 0$** (does not use negative samples).\n\n---\n\nBased on the above setup, the experimental results are shown in the table below:\n\n\n\n![info_nce](/content/papers/assets/ea2af16d594329dc9841222e74923c52ab0c04a2901cac9c5b6453d38a2dc73d.jpg)\n\n\n\nFirst, they test different values of $\\beta$ to verify whether negative sample pairs are necessary:\n\n- When **$\\beta = 1$** without the predictor and target network, the objective corresponds to SimCLR; changing $\\beta$ alone does not turn every architecture into SimCLR.\n- When **$\\beta = 0$** (no negative examples), only the BYOL variant with both target network and predictor learns effectively in this table.\n\nAmong the variants tested in this ablation, the BYOL combination maintains good performance without negatives. This is not a claim that no other method can do so.\n\nNext, they add a target network to SimCLR. The accuracy in Table 5(b) rises from 69.4% to 70.9%, a 1.5-percentage-point increase under these settings.\n\nFinally, adding only a predictor to SimCLR does not outperform SimCLR in the table. The authors believe that the predictor and target network together are important for avoiding collapse in this no-negative setting.\n\n## Conclusion\n\nThe innovation of BYOL lies in completely removing the need for negative sample pairs and using the combination of a target network and a predictor to avoid the collapse solution. On ImageNet, BYOL achieves state-of-the-art self-supervised learning results and is close to the supervised learning baseline. Additionally, BYOL outperforms many existing contrastive learning methods.\n\n\n> [!NOTE]\n> \n> There has been much discussion regarding whether BYOL can truly eliminate the need for negative samples. After the publication of the paper, several articles addressed the \"BN cheating\" issue we previously discussed, which is quite interesting. Relevant discussions are as follows:\n> \n> - **Critiques from other researchers**:\n> \n>   - [**Understanding self-supervised and contrastive learning with \"Bootstrap Your Own Latent\" (BYOL)**](https://imbue.com/research/2020-08-24-understanding-self-supervised-contrastive-learning/)\n> \n> - **The authors’ responses and follow-up experiments**:\n> \n>   - [**[20.10] BYOL works _even_ without batch statistics**](https://arxiv.org/abs/2010.10241)\n> \n> In short, after several rounds of experiments, other researchers found that when BYOL removed the BN structure, the model failed to converge. It was speculated that BN provided implicit negative samples, allowing the model to perform contrastive learning.\n> \n> If this conclusion holds true, the innovation of BYOL (i.e., not requiring negative samples) would be undermined.\n> \n> To defend the innovation of BYOL, the authors conducted a series of experiments and eventually found that even without BN, as long as the model was appropriately adjusted, BYOL could still be trained without BN and achieve performance comparable to the original setup.\n> \n> The follow-up shows that batch statistics are not necessary for BYOL when normalization and training are adjusted appropriately. It weakens the claim that BN-supplied implicit negatives are essential, but does not by itself provide a complete theory of BYOL’s non-collapse behavior.\n\n\n\n> [!TIP]\n> \n> The \"BN cheating\" issue was also mentioned in MoCo v1, where the authors used the \"Shuffle BN\" method to address this problem.\n> \n> - [**[19.11] MoCo v1: Momentum Contrastive Learning**](/blog/papers/contrastive-learning/moco-v1)\n","imageSizes":{"/content/papers/assets/b8cc1c529a1c65a2a6ce495941153b6b24def2bccc29907a0a5edf64b16570c9.jpg":{"width":1470,"height":526},"/content/papers/assets/696a701aaa66a84404875e698e8c1e39fa142a781052505e369074dedf5de2b7.jpg":{"width":928,"height":834},"/content/papers/assets/6e0a5972270900514a1452706be08ba150435ac5bd4f0dfa3016835ef92a2917.jpg":{"width":1680,"height":494},"/content/papers/assets/137cf4a36f4fc05132c3473e412827847d70407e0c2740f903d38b214ea47c1f.jpg":{"width":800,"height":756},"/content/papers/assets/5a6294700d990fb247f8ef6fe4490441e7dec97c373cb9c052909e215cd78eb5.jpg":{"width":780,"height":692},"/content/papers/assets/ee3ec9abedb71d2bfb17bc7d533bc9513ca138d614b65edbd1d78e9f8ebf7d24.jpg":{"width":740,"height":320},"/content/papers/assets/ea2af16d594329dc9841222e74923c52ab0c04a2901cac9c5b6453d38a2dc73d.jpg":{"width":824,"height":428}}}
