arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.12735cs.CVcs.AIcs.CL
收藏

GIRAFFE:扩展视觉语言模型上下文长度的设计选择

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

The University of Hong Kong(香港大学)

Mukai Li, Lei Li, Shansan Gong, Qi Liu

AI总结:

针对视觉语言模型长上下文能力不足的问题,提出Giraffe,通过数据配方ETVLM、位置扩展方法M-RoPE++及混合分辨率训练,将Qwen-VL扩展至128K长度,在长上下文基准上达到开源最优并媲美GPT-4V。

摘要:

视觉语言模型(VLM)在处理多模态输入方面展现出令人印象深刻的能力,然而诸如视觉智能体等需要处理多张图像和高分辨率视频的应用,则要求增强的长程建模能力。此外,现有的开源VLM缺乏对扩展其上下文长度的系统性探索,而商业模型往往提供的细节有限。为解决这一问题,我们旨在建立一种有效的解决方案,在增强VLM长上下文性能的同时,保持其在短上下文场景中的能力。为实现这一目标,我们通过从数据整理到上下文窗口扩展与利用的广泛实验设置,做出了最佳设计选择:(1)我们分析数据来源和长度分布,构建了ETVLM——一种用于平衡各场景性能的数据配方;(2)我们考察现有的位置扩展方法,识别其局限性,并提出M-RoPE++作为一种增强方法;我们还选择仅使用混合来源数据对骨干网络进行指令微调;(3)我们讨论如何更好地利用扩展的上下文窗口,并提出混合分辨率训练。基于Qwen-VL系列模型,我们提出了Giraffe,其有效扩展至128K长度。在VideoMME和Visual Haystacks等广泛的长上下文VLM基准上进行评估,我们的Giraffe在同等规模的开源长VLM中取得了最先进的性能,并与商业模型GPT-4V具有竞争力。我们将开源代码、数据和模型。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑