Skip to main content
QUICK REVIEW

[論文レビュー] OpenFlamingo: An Open-Source Framework for Training Large Autoregressive Vision-Language Models

Anas Awadalla, Irena Gao|arXiv (Cornell University)|Aug 2, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用数 70
ひとこと要約

OpenFlamingo はウェブデータで訓練されたオープンソースの自己回帰型視覚言語モデル(3B–9B)で、イン・コンテキスト・デモンストレーションを用いて、7 つのデータセットにおける Flamingo の性能の約 80–89% を達成します。

ABSTRACT

We introduce OpenFlamingo, a family of autoregressive vision-language models ranging from 3B to 9B parameters. OpenFlamingo is an ongoing effort to produce an open-source replication of DeepMind's Flamingo models. On seven vision-language datasets, OpenFlamingo models average between 80 - 89% of corresponding Flamingo performance. This technical report describes our models, training data, hyperparameters, and evaluation suite. We share our models and code at https://github.com/mlfoundations/open_flamingo.

研究の動機と目的

  • オープンソースの自己回帰型視覚言語フレームワークの創出を動機づけ、独自の重みやデータなしで研究を可能にする。
  • 公開エンコーダとデコーダを使用して Flamingo スタイルのクロスアテンション視覚言語アーキテクチャを再現する。
  • インコンテキスト・デモンストレーションを用いて多様な視覚言語タスクでオープンモデルを評価し、一般化と少数ショット能力を評価する。
  • クローズド系モデルとの性能差を理解するため、データソースと訓練選択を分析する。

提案手法

  • クロスアテンションを用いて凍結された言語モデルを凍結された視覚エンコーダに対して訓練可能なクロスアテンション・モジュールで結合し、Flamingo アーキテクチャを再現する。
  • 凍結された視覚エンコーダ(CLIP ViT-L/14)を介して画像を埋め込み、画像埋め込みのための Perceiver リサンプリングを訓練する。
  • オープンウェブ上のデータセット LAION-2B(画像-テキスト対)と MMC4(Multimodal C4)と、モデルの一部には ChatGPT が生成したシーケンスを用いて訓練する。
  • <image> および <|endofchunk|> トークンでシーケンスを前処理し、AdamW 最適化で次のトークン予測を行う。
  • 3B、4B、9B のパラメータスケールを用いた実験を行い、標準と言語バックボーンの指示学習(instruction-tuned)を含む。
  • いくつかの設定でインコンテキスト例の数を0、4、8、16、32と変化させ、RICES(Retrieval-based In-Context Example Selection)を用いて評価する。
Figure 1 : OpenFlamingo performance as a fraction of corresponding Flamingo performance, averaged across evaluation settings (7 datasets $\times$ 5 options for number of in-context examples). Demonstrations are chosen using RICES (Retrieval-based In-Context Example Selection). More details regarding
Figure 1 : OpenFlamingo performance as a fraction of corresponding Flamingo performance, averaged across evaluation settings (7 datasets $\times$ 5 options for number of in-context examples). Demonstrations are chosen using RICES (Retrieval-based In-Context Example Selection). More details regarding

実験結果

リサーチクエスチョン

  • RQ1オープンソースの自己回帰型視覚言語モデルは、さまざまな視覚言語タスクで Flamingo の性能にどれだけ近づけることができるか?
  • RQ2モデルサイズ(3B、4B、9B)と言語モデルのバックボーン(標準 vs 指示学習)によるゼロショットおよびインコンテキスト学習の性能にどのような影響があるか?
  • RQ3オープントレーニングデータ(LAION-2BおよびMMC4)とデータ処理の選択は、インコンテキスト学習と VQA 風タスクにどのような影響を与えるか?
  • RQ4訓練可能な埋め込みと凍結された画像埋め込み、およびエンド・オブ・チャンク埋め込みは、下流の性能にどのような役割を果たすか?
  • RQ5オープンソースモデルは、ファインチューニングされた最先端(SoTA)と比較して、インコンテキスト・デモンストレーションを使用して競争力のある結果を達成できるか?

主な発見

  • OpenFlamingo-3B および -9B は、7つのデータセット全体で Flamingo の性能の平均約 85% および 89% をそれぞれ達成する。
  • 0-shot および 4-shot 設定では、OpenFlamingo-9B はいくつかのデータセットで Flamingo-9B に近づき、COCO、VQAv2、VizWiz で 4-shot の性能をほぼ同等に近づける。
  • OpenFlamingo-4B モデルはしばしば 3B モデルより劣り、画像関連の埋め込みを凍結すると性能が大幅に低下する(例:COCOと VQAv2)。
  • 言語指示学習(language-instruction-tuning)はいくつかの OpenFlamingo バリアントの性能を改善し、RedPajama-3B バックボーンで顕著な成果を示す。
  • OpenFlamingo-9B は実質的な改善を示すが最先端には至らず、ファインチューニングされた SoTA 論文と比較すると、32 RICES デモンストレーションで平均約 62% のファインチューン SoTA に達する。
  • データセットごとに性能傾向は異なり、VQAv2 は言語モデルの選択に大きく敏感である一方、COCO ベースの CIDEr スコアはインコンテキスト例を増やすにつれて着実に改善する。
Figure 2 : OpenFlamingo-9B (pictured) can process interleaved image-and-text sequences. This interface allows OpenFlamingo to learn many vision-language tasks through in-context demonstrations.
Figure 2 : OpenFlamingo-9B (pictured) can process interleaved image-and-text sequences. This interface allows OpenFlamingo to learn many vision-language tasks through in-context demonstrations.

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。