Skip to main content
QUICK REVIEW

[論文レビュー] Language Models Can See: Plugging Visual Controls in Text Generation

Yixuan Su, Lü Tian|arXiv (Cornell University)|May 5, 2022
Multimodal Machine Learning Applications被引用数 38
ひとこと要約

MAGIC は CLIP ベースの視覚制御を用いて GPT-2 テキスト生成をグラウンドさせるトレーニング不要のデコーディング方式で、ゼロショットの画像キャプショニングと視覚的に grounded なストーリ生成を実現し、最先端の性能と約27倍のデコーディング高速化を達成します。

ABSTRACT

Generative language models (LMs) such as GPT-2/3 can be prompted to generate text with remarkable quality. While they are designed for text-prompted generation, it remains an open question how the generation process could be guided by modalities beyond text such as images. In this work, we propose a training-free framework, called MAGIC (iMAge-Guided text generatIon with CLIP), for plugging in visual controls in the generation process and enabling LMs to perform multimodal tasks (e.g., image captioning) in a zero-shot manner. MAGIC is a simple yet efficient plug-and-play framework, which directly combines an off-the-shelf LM (i.e., GPT-2) and an image-text matching model (i.e., CLIP) for image-grounded text generation. During decoding, MAGIC influences the generation of the LM by introducing a CLIP-induced score, called magic score, which regularizes the generated result to be semantically related to a given image while being coherent to the previously generated context. Notably, the proposed decoding scheme does not involve any gradient update operation, therefore being computationally efficient. On the challenging task of zero-shot image captioning, MAGIC outperforms the state-of-the-art method by notable margins with a nearly 27 times decoding speedup. MAGIC is a flexible framework and is theoretically compatible with any text generation tasks that incorporate image grounding. In the experiments, we showcase that it is also capable of performing visually grounded story generation given both an image and a text prompt.

研究の動機と目的

  • テキスト以外のモダリティ、特に画像で言語モデル生成をガイドする方法を動機づける。
  • 視覚的内容にテキスト生成をグラウンドさせるトレーニング不要のデコーディングフレームワーク(MAGIC)を提案する。
  • 画像キャプショニングと視覚的 grounded なストーリーテリングでゼロショットの性能を示す。
  • MAGIC がベースラインを上回り、勾配ベースの手法に対して著しいデコード速度の向上を提供することを示す。

提案手法

  • MAGIC Search を導入し、トークン選択をガイドする CLIP による magic スコアを追加するデコーディング方式。
  • magic スコアを、トップ-k 候補トークンに対する CLIP ベースの画像-テキスト類似度分布として定義する(Eq. 5)。
  • トークン選択の目的関数に magic スコアとともにモデルの信頼度と退化ペナルティを組み込む(Eq. 4)。
  • 表現をキャリブレーションするため、タスク固有のテキストコーパス上でコントラスト学習目的関数を用いて GPT-2 をファインチューニングする(L_MLE + L_CL)。
  • デコーディング中に勾配更新を必要とせず、効率的なゼロショットのマルチモーダル生成を実現する。
  • 視覚 grounding が可能な任意のテキスト生成タスクと互換性があることを示す。

実験結果

リサーチクエスチョン

  • RQ1トレーニング不要のデコーディング戦略は、事前学習済み言語モデルに視覚 grounding を効果的に注入できるか?
  • RQ2CLIP-grounded デコーディングは、勾配ベースの手法と比べてゼロショットの画像キャプショニングの質と速度にどのように影響するか?
  • RQ3MAGIC はキャプショニングを超えた他のマルチモーダル生成タスク、例えば視覚 grounded なストーリーテリングにも対応できるか?

主な発見

モデルMS-COCO B@1MS-COCO B@4MS-COCO MMS-COCO R-LMS-COCO CIDErMS-COCO SPICEFlickr30k B@1Flickr30k B@4Flickr30k MFlickr30k R-LFlickr30k CIDErFlickr30k SPICEスピード
Supervised Approach77.236.227.056.4113.520.327.321.7-56.616.0--
GVD------66.927.322.5-62.316.5--
UniVLP-36.528.4-116.921.2-30.123.0-67.417.0--
ClipCap-33.527.5-113.121.1--------
Oscar-36.530.3-123.723.1--------
LEMON-40.330.2-133.323.3--------
Weakly Supervised Approach - UIC41.05.612.428.728.68.1--------
IC-SME-6.512.935.122.7--7.913.032.89.9---
S2S-SS49.56.314.034.531.98.6--------
S2S-GCC50.47.613.537.331.88.4--------
Unsupervised - Top-k33.62.48.325.63.81.734.02.99.024.43.32.769.9x-
Unsupervised - Nucleus32.62.37.824.83.11.432.62.48.123.42.52.472.5x-
Unsupervised - Contrastive39.53.010.830.87.72.937.64.39.825.78.94.61.0x-
CLIPRe39.54.911.429.013.65.338.55.211.627.610.05.7--
ZeroCap49.87.015.431.834.59.244.75.411.827.316.86.21.0x-
MAGIC56.812.917.439.949.311.344.56.413.131.620.47.126.6x-
  • MAGIC は MS-COCO および Flickr30k のゼロショット画像キャプショニングベンチマークで、複数指標において最先端の性能を達成する。
  • MAGIC は勾配ベースの ZeroCap アプローチより約27倍のデコード速度を達成する。
  • MAGIC はドメイン横断の評価で堅牢性を示し、ベースラインを上回る。
  • MAGIC は視覚 grounding を伴うストーリー生成にも適用でき、ベースラインより自動品質・人間評価品質の両方で高い成果を示す。
  • デコード時はトレーニング不要であり、タスク固有のファインチューニングは短くごくわずかなものである。

より良い研究を、今すぐ始めましょう

論文設計から論文執筆まで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。