VisualBERT: A Simple and Performant Baseline for Vision and Language

VisualBERT

在这里插入图片描述

Architecture

  • 网络架构与 BERT 相同。文本部分的处理也与 BERT 相同,下面主要介绍视觉图像部分的处理:设 F F F 为 visual embeddings 的集合, f ∈ F f\in F fF 为一个 bounding region 对应的 feature,为如下 3 部分 embedding 的加和:(1) f o f_o fo: bounding region 对应的 visual feature representation,由 Faster-RCNN 得到;(2) f s f_s fs: 用于指示一个 embedding 是 image embedding 还是 text embedding 的 segment embedding;(3) f p f_p fp: position embedding f p f_p fp 只在需要输入 word 和 bounding region 之间的对齐关系时才会被使用 (e.g. 在 VCR 中,数据集提供了 words 和 bounding regions 之间的对齐关系),它是 bounding region 对应 words 的 position embeddings 之和;如果 visual embedding 维度与 text embedding 不同,则还需要一个全连接层将 visual embedding 投影到与 text embedding 相同的维度

Pre-training

  • Task-Agnostic Pre-Training: COCO 数据集中的每张图片都有 5 个独立的 captions,VisualBERT 在 COCO 数据集上使用了两个 visually-grounded language model objectives:
    • (1) Masked language modeling with the image: 遮盖一些 word embedding 并要求模型由视觉信息和其他文本信息预测被遮盖的内容
    • (2) Sentence-image prediction. For COCO, where there are multiple captions corresponding to one image, we provide a text segment consisting of two captions. One of the caption is describing the image, while the other has a 50% chance to be another corresponding caption and a 50% chance to be a randomly drawn caption. The model is trained to distinguish these two situations.
  • Task-Specific Pre-Training: 在 fine-tune 之前,先在下游任务的数据集上使用 masked language modeling with the image objective 进行预训练,这能帮助模型适应新的 target domain

Experiment

  • Experiments on four vision-and-language tasks including VQA, VCR, NLVR2, and Flickr30K show that VisualBERT outperforms or rivals with state-of-the-art models while being significantly simpler.

References

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值