Skip to main content
QUICK REVIEW

[论文解读] DeCap: Decoding CLIP Latents for Zero-Shot Captioning via Text-Only Training

Wei Li, Linchao Zhu|arXiv (Cornell University)|Mar 6, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用 24
一句话总结

DeCap 引入了一种轻量级、以文本数据为训练数据、基于 CLIP 的零-shot 字幕生成框架,具备无需培训的视觉到文本嵌入投影,在没有成对数据的情况下,在图像和视频字幕基准上实现了最先进的结果。

ABSTRACT

Large-scale pre-trained multi-modal models (e.g., CLIP) demonstrate strong zero-shot transfer capability in many discriminative tasks. Their adaptation to zero-shot image-conditioned text generation tasks has drawn increasing interest. Prior arts approach to zero-shot captioning by either utilizing the existing large language models (e.g., GPT-2) or pre-training the encoder-decoder network in an end-to-end manner. In this work, we propose a simple framework, named DeCap, for zero-shot captioning. We introduce a lightweight visual-aware language decoder. This decoder is both data-efficient and computation-efficient: 1) it only requires the text data for training, easing the burden on the collection of paired data. 2) it does not require end-to-end training. When trained with text-only data, the decoder takes the text embedding extracted from the off-the-shelf CLIP encoder as a prefix embedding. The challenge is that the decoder is trained on the text corpus but at the inference stage, it needs to generate captions based on visual inputs. The modality gap issue is widely observed in multi-modal contrastive models that prevents us from directly taking the visual embedding as the prefix embedding. We propose a training-free mechanism to reduce the modality gap. We project the visual embedding into the CLIP text embedding space, while the projected embedding retains the information of the visual input. Taking the projected embedding as the prefix embedding, the decoder generates high-quality descriptions that match the visual input. The experiments show that DeCap outperforms other zero-shot captioning methods and unpaired captioning methods on the typical image captioning benchmarks, i.e., MSCOCO and NoCaps.

研究动机与目标

  • 通过仅文本训练减少对成对图像-文本数据的依赖,以实现字幕生成。
  • 利用 CLIP 的对齐多模态潜在空间,在视觉输入条件下生成字幕。
  • 提出一种无需训练的投影机制,弥合图像和文本嵌入之间的模态差距。
  • 在图像和视频字幕基准上展示出强大的零-shot 性能。

提出的方法

  • 从头训练一个文本解码器,使其在 CLIP 文本嵌入的条件下重构句子(前缀语言建模)。
  • 使用仅文本的训练目标,以由固定的 CLIP 文本编码器编码的句子作为前缀。
  • 在推理阶段,利用一个无需训练的、基于记忆的从文本嵌入文本嵌入支持记忆的投影,将 CLIP 图像嵌入投影到 CLIP 文本嵌入空间。
  • 通过余弦相似度与 Softmax 的加权组合,形成用于生成的投影前缀文本嵌入。
  • 用以投影文本空间嵌入条件化的基于 Transformer 的解码器来解码字幕。
  • 可选地对比推理策略(CLIPRe、VD、NND)以分析模态差距效应。

实验结果

研究问题

  • RQ1一个仅文本训练的解码器在 CLIP 文本嵌入条件下,是否能在零-shot 设置下为视觉输入生成高质量字幕?
  • RQ2从图像嵌入到 CLIP 文本嵌入空间的无需训练的投影,是否能有效弥合字幕生成的模态差距?
  • RQ3DeCap 在标准字幕基准、零-shot 与跨域设置,以及视频字幕任务上的表现如何?

主要发现

  • DeCap 在没有成对数据的方法中,在 MSCOCO 与 NoCaps 上实现了零-shot 字幕的最先进性能。
  • 基于投影的解码机制显著降低模态差距并提升了图像和视频基准的字幕质量。
  • 在领域相关源(如 CC3M-text、SS1M、Book Corpus)上进行文本数据训练的 DeCap 比通用基线表现更强,并显示出较强的跨域泛化能力。
  • 基于神经的仅文本解码在许多零-shot 情景中可以超过基于检索和直接嵌入的方法。
  • 在 MSR-VTT 与 ActivityNet-Captions 上,视频字幕的零-shot 性能具有竞争力,若使用领域特定文本数据进行解码器训练则可进一步提升。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。