What is: MoBY?
Source | Self-Supervised Learning with Swin Transformers |
Year | 2000 |
Data Source | CC BY-SA - https://paperswithcode.com |
MoBY is a self-supervised learning approach for Vision Transformers. The approach is basically a combination of MoCo v2 and BYOL. It inherits the momentum design, the key queue, and the contrastive loss used in MoCo v2, and inherits the asymmetric encoders, asymmetric data augmentations and the momentum scheduler in BYOL. It is named MoBY by picking the first two letters of each method.
The MoBY approach is illustrated in the Figure. There are two encoders: an online encoder and a target encoder. Both two encoders consist of a backbone and a projector head (2-layer MLP), and the online encoder introduces an additional prediction head (2-layer MLP), which makes the two encoders asymmetric. The online encoder is updated by gradients, and the target encoder is a moving average of the online encoder by momentum updating in each training iteration. A gradually increasing momentum updating strategy is applied for on the target encoder: the value of momentum term is gradually increased to 1 during the course of training. The default starting value is .
A contrastive loss is applied to learn the representations. Specifically, for an online view , its contrastive loss is computed as
where is the target feature for the other view of the same image; is a target feature in the key queue; is a temperature term; is the size of the key queue (4096 by default).
In training, like most Transformer-based methods, the AdamW optimizer is used, in contrast to previous self-supervised learning approaches built on ResNet backbone where usually SGD or LARS is used. The authors also use a regularization method of asymmetric drop path which proves important for the final performance.
In the experiments, the authors adopt a fixed learning rate of and a fixed weight decay of , which performs stably well. Hyper-parameters are tuned of the key queue size , the starting momentum value of the target branch, the temperature , and the drop path rates.