Skip to Content
視覚言語モデル (Japanese Edition)
book

視覚言語モデル (Japanese Edition)

by Merve Noyan, Andrés Marafioti, Miquel Farré, Orr Zohar
June 2026
Intermediate
408 pages
6h 37m
Japanese
O'Reilly Media, Inc.
Content preview from 視覚言語モデル (Japanese Edition)

第4章 VLMのトレーニング データと前処理

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

第3章では、 を使って最初のビジョン言語モデル(VLM)をトレーニングした。損失曲線が低下していくのを見守り、パディングトークンによるループをデバッグし、バッチサイズ1は良いスタートだが、バッチサイズ4になってこそ本領を発揮することを学んだ。 モデルがようやくまともな結果を出し始めたとき、あなたは興奮した。また、少し恐ろしい事実にも気づいた。FineVisionの0.5%(12万サンプル)でさえ、ごく初期段階のVLMをトレーニングさせるには、慎重なトークンパッキング、画像用のプレースホルダートークン、そしてバグを早期に発見するための頻繁な動作確認が必要だったのだ。

さて、これをスケールアップするとどうなるか想像してみてほしい。12万サンプルではなく、320万サンプルだ。さらに1,530万サンプルだ。単一のデータセットの0.5%ではなく、数十のデータセットの混合だ。それぞれが異なる視覚ドメイン、異なるアノテーション品質、異なる構成比、そして異なる目的を持っている。これが、実際のVLMトレーニングにおけるデータ上の課題だ。

第3章で事前学習済みのSigLIPやSmolLMを読み込んだ際にも見たように、VLMは実際にはゼロから学習されるわけではない。現代のVLMは、マルチモーダル学習が始まる前に、事前学習済みのビジョンエンコーダーと言語バックボーンの上に構築される。その後、各段階で異なるデータ品質とデータ量を要求する複数のトレーニング段階を通じて、モデルを「世話」(そう、文字通り、昼夜を問わず、友よ!)することになる。

図4-1のJina-VLMのトレーニングデータの詳細を見てみよう。

これらの数字は、特に(私のように)数年前に畳み込みニューラルネットワーク(CNN)を学習させた「古参」にとっては、無視できない事実を物語っている。CNN分類器のファインチューニングには数千から数万枚のラベル付き画像が必要だったのに対し、VLMのトレーニングは全く異なる規模で行われる。 Jina-VLMのプレトレーニング段階だけで、100億トークンに及ぶ320万サンプルを消費し、その後、1,530万サンプルと370億トークンを用いたポストトレーニングが行われる。

Diagram comparing Jina-VLM's pre-training stage, with 3.2 million samples and 10 billion tokens, to its post-training stage, using 15.3 million samples and 37 billion tokens, highlighting different data types and datasets used in each.
図4-1. トレーニング段階ごとのJina-VLM データ混合の詳細。

各段階には明確な目的があり、その目的に合わせたデータの要件がある:

  • 事前学習では、モデルの各構成要素が相互にコミュニケーションするよう学習させることに重点を置く。自然なシーンのキャプション、文書の説明、インフォグラフィックの解説、図表の注釈を通じて、ピクセルが意味する内容を言葉で定義する。

  • ポストトレーニングでは、専門的な能力の特殊化へと移行する。推論の連鎖を含む科学的な図、Q&Aを伴う複数ページの文書、解決策付きの数学問題、そして多様なレイアウトにわたるOCRタスクなどが対象となる。

データ品質は、学習目標と共に進化する。この章では、これらのマルチモダリティデータセットが提起するあらゆる課題を探求する。インターネット規模でコンテンツを調達する方法、数百万のサンプルを効率的にフィルタリングし多様化させる方法、莫大なコストをかけずにアノテーションを行う方法、それらを賢く組み合わせる方法、そしてマルチノード環境ですぐに使えるようにパッケージ化する方法について解説する。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

マルチモダリティAIのためのデータエンジニアリング (Japanese Edition)

マルチモダリティAIのためのデータエンジニアリング (Japanese Edition)

Vasundra Srinivasan
AIプロジェクトの管理 (Japanese Edition)

AIプロジェクトの管理 (Japanese Edition)

Malini Jain Runtasewee, Adrián González Sánchez

Publisher Resources

ISBN: 0642572302849