Instructify:揭秘视觉指令调优数据转换的元数据
Instructify: Demystifying Metadata to Visual Instruction Tuning Data Conversion
AI总结:
提出Instructify,一种使用开放LLM将图像元数据转换为视觉指令调优数据的统一方法,通过多阶段框架提升数据质量与LMM性能,平均提高约3%。
摘要:
视觉指令调优(VisIT)数据通常以人类助手对话形式提供,并在人类轮次中穿插图像,目前是将强大的大语言模型(LLM)对齐以理解视觉输入、将其转换为强大多模态大模型(LMM)的最广泛使用的载体。尽管有许多VisIT数据集可用,但大多数是由不同团队独立开发的临时技术构建而成。这些数据集通常文档不全,缺乏可复现的代码,并依赖付费的闭源模型API(如GPT-4、Gemini或Claude)将图像元数据(标签)转换为VisIT指令。这导致成本高昂,并使得扩展、提高质量或为新数据集生成VisIT数据变得困难。在这项工作中,我们解决了这些挑战,并提出了一种开放且统一的配方和方法,即\textbf{\method},使用开放LLM将可用元数据转换为VisIT指令。我们的多阶段\method采用了一个高效框架,用于元数据分组、质量控制、数据和提示组织以及对话采样。我们表明,当应用于相同的图像数据和元数据源时,我们的方法可以复现或增强现有VisIT数据集的数据质量,使用开放模型(如Gemma 2 27B和LLaMa 3.1 70B)将GPT-4生成的VisIT指令平均提高约3%,在个别基准上最高提高12%。此外,我们的方法通过提高所得LMM在广泛基准上的性能,实现了有效的性能扩展——无论是在数量还是质量上。我们还分析了各种因素的影响,包括对话格式、基础模型选择和重采样策略。我们的代码支持复现同等或更高质量的VisIT数据集,并促进面向小众领域的元数据到VisIT数据转换,已发布在https://github.com/jacob-hansen/Instructify。
英文摘要:
Visual Instruction Tuning (VisIT) data, commonly available as human-assistant conversations with images interleaved in the human turns, are currently the most widespread vehicle for aligning strong LLMs to understand visual inputs, converting them to strong LMMs. While many VisIT datasets are available, most are constructed using ad-hoc techniques developed independently by different groups. They are often poorly documented, lack reproducible code, and rely on paid, closed-source model APIs such as GPT-4, Gemini, or Claude to convert image metadata (labels) into VisIT instructions. This leads to high costs and makes it challenging to scale, enhance quality, or generate VisIT data for new datasets. In this work, we address these challenges and propose an open and unified recipe and approach,~\textbf{\method}, for converting available metadata to VisIT instructions using open LLMs. Our multi-stage \method features an efficient framework for metadata grouping, quality control, data and prompt organization, and conversation sampling. We show that our approach can reproduce or enhance the data quality of available VisIT datasets when applied to the same image data and metadata sources, improving GPT-4 generated VisIT instructions by ~3\% on average and up to 12\% on individual benchmarks using open models, such as Gemma 2 27B and LLaMa 3.1 70B. Additionally, our approach enables effective performance scaling - both in quantity and quality - by enhancing the resulting LMM performance across a wide range of benchmarks. We also analyze the impact of various factors, including conversation format, base model selection, and resampling strategies. Our code, which supports the reproduction of equal or higher-quality VisIT datasets and facilities future metadata-to-VisIT data conversion for niche domains, is released at https://github.com/jacob-hansen/Instructify.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。