[MOCO] Momentum Contrast for Unsupervised Visual Representation Learning

1、目的

        无监督表示学习在自然图像领域已经很成功,因为语言任务有离散的信号空间(words, sub-word units等),便于构建tokenized字典

        现有的无监督视觉表示学习方法可以看作是构建动态字典,字典的“keys”则是从数据(images or patches)中采样得到的,并用编码网络来代表

        构建的字典需要满足large和consistent as they evolve during training这两个条件

2、方法

        Momentum Contrast (MoCo)

  

        1)contrastive learning

                dictionary look-up

                -> loss: info NCE

                        

                -> momentum

                        the dictionary is dynamic: the keys are randomly sampled, and the key encoder evolves during training

        2)dictionary as a queue

                -> large: decouple the dictionary size (can be set as a hyper-parameter) from the mini-batch size

                -> consistent: the encoded representations of the current mini-batch are enqueued, and the oldest are dequeued.

                                        the dictionary keys come from the preceding several mini-batches, slowly progressing key encoder, momentum-based moving average of the query encoder

        3)momentum update

                

                -> 只有\theta _{q}的参数是通过back-propagation更新的

                -> 尽管不同mini-batch中的key是用不同的encoder编码的,这些encoder之间的差异比较小

        4)pretext task

                instance discrimination: a query matches a key if they are encoded views (e.g. different crops) of the same image

        5)shuffling BN

                perform BN on the samples independently for each GPU,以防intra-batch communication among samples造成信息泄露

  • 10
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值