LongWriter-V: Enabling Ultra-Long and High-Fidelity Generation in Vision-Language Models
该论文提出了一种名为LongWriter-V的方法,通过构建大规模数据集和迭代直接偏好优化,显著提升了视觉语言模型生成超长文本的能力。
更新于 2025-02-21。作者:Shangqing Tu、Yucheng Wang、Daniel Zhang-Li、Yushi Bai、Jifan Yu、Yuhao Wu、Lei Hou、Huiqin Liu、Zhiyuan Liu、Bin Xu、Juanzi Li。
中文摘要
现有的大规模视觉语言模型(LVLMs)可以处理长度高达128k视觉和文本token的输入,但它们在生成超过1,000个单词的连贯输出时却遇到了困难。我们发现,主要的限制在于监督微调(SFT)过程中缺乏长输出示例。为了解决这个问题,我们引入了LongWriter-V-22k,这是一个包含22,158个示例的SFT数据集,每个示例包含多个输入图像、一条指令以及从0到10,000个单词的对应输出。此外,为了生成与输入图像高度保真的长输出,我们在SFT模型中采用了直接偏好优化(DPO)。鉴于收集大量人类反馈(例如3,000个单词)的成本很高,我们提出了IterDPO,它将长输出分解成段,并使用迭代校正与原始输出形成偏好对。此外,我们开发了MMLongBench-Write,这是一个包含六个任务的基准测试,用于评估VLMs的长生成能力。我们的70亿参数模型在LongWriter-V-22k和IterDPO的训练下,在这个基准测试中取得了令人印象深刻的性能,超过了像GPT-4o这样的大型专有模型。代码和数据:https://github.com/THU-KEG/LongWriter-V
英文摘要
Existing Large Vision-Language Models (LVLMs) can process inputs with context lengths up to 128k visual and text tokens, yet they struggle to generate coherent outputs beyond 1,000 words. We find that the primary limitation is the absence of long output examples during supervised fine-tuning (SFT). To tackle this issue, we introduce LongWriter-V-22k, a SFT dataset comprising 22,158 examples, each with multiple input images, an instruction, and corresponding outputs ranging from 0 to 10,000 words. Moreover, to achieve long outputs that maintain high-fidelity to the input images, we employ Direct Preference Optimization (DPO) to the SFT model. Given the high cost of collecting human feedback for lengthy outputs (e.g., 3,000 words), we propose IterDPO, which breaks long outputs into segments and uses iterative corrections to form preference pairs with the original outputs. Additionally, we develop MMLongBench-Write, a benchmark featuring six tasks to evaluate the long-generation capabilities of VLMs. Our 7B parameter model, trained with LongWriter-V-22k and IterDPO, achieves impressive performance on this benchmark, outperforming larger proprietary models like GPT-4o. Code and data: https://github.com/THU-KEG/LongWriter-V
解读
一句话总结
该论文提出了一种名为LongWriter-V的方法,通过构建大规模数据集和迭代直接偏好优化,显著提升了视觉语言模型生成超长文本的能力。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:现有的视觉语言模型(VLMs)在处理长文本生成方面存在限制,通常输出长度不超过1000词。
- 现有方案不足:现有的视觉指令微调数据集和模型训练方法未能充分提供长输出示例,限制了VLMs的输出长度。
- 研究目标:通过构建新的数据集和优化训练方法,提升VLMs生成超长文本的能力,并保持输出的高保真度。
问题2:论文的核心创新点是什么?
- 技术创新:构建了包含22,158个示例的大规模数据集LongWriter-V-22k,并提出了迭代直接偏好优化(IterDPO)方法。
- 方法改进:采用计划-编写方法来生成长文本,并使用IterDPO来提高文本质量。
- 优势:与现有方法相比,LongWriter-V能够生成更长的文本,并保持更高的质量。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在MMLongBench-Write基准测试中,使用LongWriter-V-22k和IterDPO训练的7B参数模型在输出长度和质量上均优于GPT-4o等模型。
- 性能提升:LongWriter-V模型能够生成超过3000词的文本,并且质量高于基线模型。
- 对比结果:与基线模型相比,LongWriter-V在输出长度和质量上均有显著提升。
问题4:这个研究的实际应用价值是什么?
- 应用场景:长文本生成在创意写作、专业写作、医疗报告、旅行指南等领域具有广泛的应用。
- 实施建议:建议在VLMs的训练过程中使用LongWriter-V-22k数据集和IterDPO方法,以提高模型的长期生成能力。
- 局限与展望:虽然LongWriter-V在长文本生成方面取得了显著进展,但仍需进一步扩大数据集规模,并探索更有效的训练策略。
来源
机器可读索引:llms.txt