arXiv:2412.12735cs.CVcs.AI2024-12被引 2

让视觉语言模型处理长达128K的上下文,提升长序列理解能力。

GIRAFFE: Design Choices for Extending the Context Length of Visual Language Models

  • 构建ETVLM数据集,平衡多场景下模型性能。
  • 提出M-RoPE++位置编码方法,支持128K上下文长度。
  • 适合需要长视频、多图分析的研究者与开发者使用。

视觉语言模型(VLMs)在多模态输入处理中表现优异,但如视觉智能体等应用需处理多图像与高分辨率视频,要求更强的长距离建模能力。现有开源VLM缺乏对扩展上下文长度的系统探索,而商用模型通常信息不透明。为此,我们通过从数据构建到上下文窗口扩展的大量实验,选择最优设计:(1) 分析数据源与长度分布,构建ETVLM数据配方,实现多场景性能均衡;(2) 检视现有位置编码扩展方法并识别其局限,提出M-RoPE++增强方案,并仅用混合数据指令微调骨干模型;(3) 探讨如何更有效利用扩展上下文窗口,提出混合分辨率训练策略。基于Qwen-VL系列模型,我们提出Giraffe,可扩展至128K上下文长度。在VideoMME和Visual Haystacks等长上下文基准上评估,Giraffe在同规模开源长VLM中达到领先水平,且与商业模型GPT-4V相当。代码、数据与模型将全部开源。

原文摘要 · Abstract (English)

Visual Language Models (VLMs) demonstrate impressive capabilities in processing multimodal inputs, yet applications such as visual agents, which require handling multiple images and high-resolution videos, demand enhanced long-range modeling. Moreover, existing open-source VLMs lack systematic exploration into extending their context length, and commercial models often provide limited details. To tackle this, we aim to establish an effective solution that enhances long context performance of VLMs while preserving their capacities in short context scenarios. Towards this goal, we make the best design choice through extensive experiment settings from data curation to context window extending and utilizing: (1) we analyze data sources and length distributions to construct ETVLM - a data recipe to balance the performance across scenarios; (2) we examine existing position extending methods, identify their limitations and propose M-RoPE++ as an enhanced approach; we also choose to solely instruction-tune the backbone with mixed-source data; (3) we discuss how to better utilize extended context windows and propose hybrid-resolution training. Built on the Qwen-VL series model, we propose Giraffe, which is effectively extended to 128K lengths. Evaluated on extensive long context VLM benchmarks such as VideoMME and Viusal Haystacks, our Giraffe achieves state-of-the-art performance among similarly sized open-source long VLMs and is competitive with commercial model GPT-4V. We will open-source the code, data, and models.

视觉语言模型长上下文Qwen-VLM-RoPE++

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