Skip to main content
QUICK REVIEW

[論文レビュー] Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understanding

Kenton Lee, Mandar Joshi|arXiv (Cornell University)|Oct 7, 2022
Multimodal Machine Learning ApplicationsComputer Science被引用数 45
ひとこと要約

Pix2StructはマスクされたスクリーンショットをHTML様の構造に解析する学習済みの画像-to-textモデルであり、この知識を4つのドメインに跨る9つの視覚的配置言語タスクに転移させる。

ABSTRACT

Visually-situated language is ubiquitous -- sources range from textbooks with diagrams to web pages with images and tables, to mobile apps with buttons and forms. Perhaps due to this diversity, previous work has typically relied on domain-specific recipes with limited sharing of the underlying data, model architectures, and objectives. We present Pix2Struct, a pretrained image-to-text model for purely visual language understanding, which can be finetuned on tasks containing visually-situated language. Pix2Struct is pretrained by learning to parse masked screenshots of web pages into simplified HTML. The web, with its richness of visual elements cleanly reflected in the HTML structure, provides a large source of pretraining data well suited to the diversity of downstream tasks. Intuitively, this objective subsumes common pretraining signals such as OCR, language modeling, image captioning. In addition to the novel pretraining strategy, we introduce a variable-resolution input representation and a more flexible integration of language and vision inputs, where language prompts such as questions are rendered directly on top of the input image. For the first time, we show that a single pretrained model can achieve state-of-the-art results in six out of nine tasks across four domains: documents, illustrations, user interfaces, and natural images.

研究の動機と目的

  • ドメイン固有のパイプラインを超えた汎用の視覚的配置言語理解の必要性を動機付ける。
  • マスクされたスクリーンショットをHTMLパースへマッピングするピクセルのみの事前学習目的を導入する。
  • 可変解像度の ViT 入力と入力画像上に直接テキストプロンプトをレンダリングする手法を提案する。
  • 単一の事前学習モデルを複数の下流タスクへ強力な結果とともに転移することを実証する。

提案手法

  • Base: 282M パラメータ; Large: 1.3B パラメータの ViT ベースの画像-to-text モデルを、HTML由来のパースと対になる80Mのウェブページスクリーンショットで事前学習する。
  • スクリーンショット解析目的を用いる:マスクされたスクリーンショットからHTMLベースのパースを予測し、コンテキスト利用を促すためにテキストを50%マスキングする。
  • HTML DOMを表示要素と、対象シーケンス長に適合する最大のサブツリーに要約する;スクリーンショット上でそのサブツリーの周りに境界ボックスを描く。
  • アスペクト比を保ち、異なる解像度に対応するために2D絶対位置埋め込みと可変解像度入力を採用する。
  • 下流タスクでの微調整前に、色付き/ランダムフォントのテキストに対するテキストのみのデコードを含むリーディングカリキュラムでウォームアップする。
  • 微調整時には、プロンプト(質問、境界ボックス)を入力画像上にレンダリングし、タスクデータで単一の画像-to-textモデルをエンドツーエンドで訓練する。

実験結果

リサーチクエスチョン

  • RQ1スクリーンショット解析目的で訓練された単一のピクセルのみのモデルは、ドメインを跨る複数の視覚的配置言語タスクへ効果的に転移できるか?
  • RQ2可変解像度入力と画像上でのプロンプトレンダリングは、タスク間でどのように性能と堅牢性に影響するか?
  • RQ3スクリーンショット解析の事前学習信号は、下流転移のためのOCR、言語モデリング、画像キャプションの信号をどの程度包含するか?

主な発見

  • Pix2Structは四つのドメインにわたる9つのベンチマークのうち8つでDonutベースラインを上回る。
  • LargeモデルはBaseモデルより強い改善を達成し、いくつかのタスクスコアを向上させる。
  • Pix2Structはドメイン特化パイプラインなしで、複数のUIおよびイラストタスクで最新の結果を達成。
  • 自然画像と文書では、Pix2Structはドメイン最適化手法と競合するか、近接しており、ドメイン内事前学習データを欠くにもかかわらず。
  • 重要なアブレーションでは、スクリーンショット解析目的を除去すると性能が著しく低下することが示され、その中心的役割を強調している。)

この論文を読む

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

Nubintでこの論文を読む

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