arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.13831cs.CV
收藏

通过超越128K上下文的泛化有效训练长上下文视觉-语言模型

Training Long-Context Vision-Language Models Effectively with Generalization Beyond 128K Context

CSE Department, HKUST(香港科技大学计算机科学与工程系)

Zhaowei Wang, Lishu Luo, Haodong Duan, Weiwei Liu, Sijin Wu, Ji Luo, Shen Yan, Shuai Peng, Sihang Yuan, Chaoyi Huang, Yi Lin, Yangqiu Song

AI总结:

本文研究了长上下文视觉-语言模型的持续预训练,通过平衡数据和检索优化,提出MMProLong模型在长文档VQA等任务中表现优异,且能扩展至更长上下文和多任务场景。

摘要:

长上下文建模已成为现代大视觉-语言模型(LVLMs)的核心能力,使模型能够在长文档理解、视频分析和多轮工具使用等任务中维持持续上下文管理。然而,实际训练方法仍缺乏深入探索,特别是如何设计和平衡长上下文数据混合。本文系统研究了长上下文持续预训练,将7B模型从32K扩展到128K上下文,并通过大量消融实验发现:长文档VQA比OCR转录更有效;检索仍是主要瓶颈,需优先考虑检索密集的数据混合;纯长文档VQA保留了短上下文能力,表明指令格式的长数据减少了对短数据混合的需求。基于这些发现,我们提出MMProLong,通过仅5B token预算对Qwen2.5-VL-7B进行长上下文持续预训练,使长文档VQA得分提升7.1%,并在256K和512K上下文中保持强劲表现,无需额外训练。此外,该模型还泛化至网页多模态针式检索、长上下文视觉-文本压缩和长视频理解等任务,无需特定监督。本文研究建立了长上下文视觉-语言模型的实用LongPT配方,并为推进该领域提供了实证基础。

英文摘要:

Long-context modeling is becoming a core capability of modern large vision-language models (LVLMs), enabling sustained context management across long-document understanding, video analysis, and multi-turn tool use in long-horizon agents. Yet practical training recipes remain insufficiently explored, particularly for designing and balancing long-context data mixtures. In this work, we present a systematic study of long-context continued pre-training (LongPT) for LVLMs, extending a 7B model from 32K to 128K context with extensive ablations on long-document data. We first show that long-document VQA is substantially more effective than OCR transcription. Building on this observation, our ablations further yield three key findings: i) for sequence-length distribution, balanced data outperforms target-length-focused data (e.g., 128K), suggesting that long-context ability requires generalizable key-information retrieval across various lengths and positions; ii) retrieval remains the primary bottleneck, favoring retrieval-heavy mixtures with modest reasoning data for task diversity; iii) pure long-document VQA largely preserves short-context capabilities, suggesting that instruction-formatted long data reduces the need for short-data mixing. Based on these findings, we introduce MMProLong, obtained by long-context continued pre-training from Qwen2.5-VL-7B with only a 5B-token budget. MMProLong improves long-document VQA scores by 7.11% and maintains strong performance at 256K and 512K contexts beyond its 128K training window, without additional training. It further generalizes to webpage-based multimodal needle retrieval, long-context vision-text compression, and long-video understanding without task-specific supervision. Overall, our study establishes a practical LongPT recipe and an empirical foundation for advancing long-context vision-language models.

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

↑