arXiv:2502.14846cs.CVcs.CL2025-02ACL被引 55

用代码自动生成图文数据,提升模型看懂图表文档的能力

Scaling Text-Rich Image Understanding via Code-Guided Synthetic Multimodal Data Generation

  • 让大模型写代码生成带文字的合成图像和指令数据
  • 构建40万张图、270万条数据,性能超越GPT-4V等闭源模型
  • 可生成定位数据,适合开发能操作真实环境的多模态智能体

利用视觉语言模型(VLMs)理解包含图表、文档等丰富文本的图像是一项关键应用。然而,由于多样化文本丰富的视觉语言数据稀缺,VLMs在此类任务上表现不佳。为此,我们提出CoSyn框架,利用仅文本的大语言模型(LLMs)的编码能力,自动创建合成的文本丰富多模态数据。给定目标领域描述(如“营养成分标签”),CoSyn提示LLM生成渲染合成图像的代码(如Python、HTML、LaTeX)。以底层代码作为合成图像的文本表示,CoSyn再次依赖纯文本LLM生成高质量指令微调数据。通过CoSyn,我们构建了包含40万张图像和270万行视觉语言指令微调数据的数据集。在七个基准上的全面实验表明,使用该合成数据训练的模型在开源模型中达到顶尖水平,包括Llama 3.2,且优于GPT-4V和Gemini 1.5 Flash等闭源模型。此外,CoSyn还能生成合成定位数据,使VLM能在输入图像中定位信息,展示其在开发可作用于真实环境的多模态智能体方面的潜力。

原文摘要 · Abstract (English)

Reasoning about images with rich text, such as charts and documents, is a critical application of vision-language models (VLMs). However, VLMs often struggle in these domains due to the scarcity of diverse text-rich vision-language data. To address this challenge, we present CoSyn, a framework that leverages the coding capabilities of text-only large language models (LLMs) to automatically create synthetic text-rich multimodal data. Given input text describing a target domain (e.g., "nutrition fact labels"), CoSyn prompts an LLM to generate code (Python, HTML, LaTeX, etc.) for rendering synthetic images. With the underlying code as textual representations of the synthetic images, CoSyn can generate high-quality instruction-tuning data, again relying on a text-only LLM. Using CoSyn, we constructed a dataset comprising 400K images and 2.7M rows of vision-language instruction-tuning data. Comprehensive experiments on seven benchmarks demonstrate that models trained on our synthetic data achieve state-of-the-art performance among competitive open-source models, including Llama 3.2, and surpass proprietary models such as GPT-4V and Gemini 1.5 Flash. Furthermore, CoSyn can produce synthetic pointing data, enabling VLMs to ground information within input images, showcasing its potential for developing multimodal agents capable of acting in real-world environments.

多模态合成数据视觉语言模型代码生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。