arXiv:2605.13831cs.CV2026-05被引 1

用长文档问答提升视觉语言模型长上下文能力,效果优于文字识别。

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

论文配图:Training Long-Context Vision-Language Models Effectively with Generalization Beyond 128K Context
图 1 · 摘自论文原文
  • 用长文档问答替代文字识别,更有效提升长上下文理解力。
  • 平衡长度数据比单一长序列数据表现更好,支持跨长度泛化。
  • 模型在128K外仍保持性能,适合网页检索、视频分析等场景。

长上下文建模已成为现代大规模视觉语言模型的核心能力,支持长文档理解、视频分析及智能体工作流中的多轮工具使用。然而,针对长上下文数据混合设计与平衡的训练方法仍不充分。本文对7B参数模型进行从32K到128K上下文的持续预训练,系统研究长文档数据的有效性。实验表明,长文档VQA比OCR转写更有效。进一步分析发现:一、均衡长度分布的数据优于聚焦目标长度(如128K)的数据,说明长上下文能力需跨长度、跨位置的关键信息检索泛化;二、检索仍是主要瓶颈,应采用以检索为主、少量推理为辅的数据混合策略以提升任务多样性;三、纯长文档VQA可基本保留短上下文能力,减少对短数据混合的需求。基于此,我们提出MMProLong,仅用50亿令牌预算,在Qwen2.5-VL-7B基础上完成长上下文持续预训练。该模型在128K上长文档VQA得分提升7.1%,并在256K和512K上下文下无需额外训练即保持强性能。同时,其能力可泛化至网页式多模态寻针、长文本图像压缩及长视频理解,无需特定任务监督。本研究建立了实用的长上下文预训练范式,为推进长上下文视觉语言模型提供实证基础。

原文摘要 · Abstract (English)

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 agentic workflows. 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 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; and 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.1% 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.

视觉语言长上下文多模态模型训练

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