
Paper: 2605.13831 Authors: Zhaowei Wang, Lishu Luo, Haodong Duan, Weiwei Liu, Sijin Wu, Ji Luo, Shen Yan, Shuai Peng, Sihang Yuan, Chaoyi Huang Categories: cs.CV
The Gap
Vision-language models (LVLMs) are being pushed into long-context scenarios: analyzing 100-page documents, hour-long videos, multi-turn agent workflows. Existing models like GPT-4V and Gemini handle 32K-128K contexts, but training recipes remain ad-hoc. Prior work focuses on architectural tricks (sparse attention, RoPE scaling) or throws compute at the problem without understanding what data actually teaches long-context ability. The specific gap: no one has systematically ablated data composition for long-context vision-language training. Should you train on 128K-only data? Mix short and long? Use OCR transcripts or VQA? The field is flying blind.
Problem: LVLMs need long context, but training recipes are guesswork
|
v
Assumption: Data mixture matters more than architecture tweaks
|
v
Method: Systematic ablation of data types, lengths, task ratios
|
v
Evidence: Balanced lengths + retrieval-heavy mix beats target-length focus
|
v
Conclusion: 5B tokens with right data → 128K training generalizes to 512K
The Increment
One sentence: Before this paper, long-context LVLM training was “throw more 128K data at it”; after, we know balanced-length retrieval data with modest reasoning generalizes beyond training length.
Core Mechanism
The method is continued pre-training on top of Qwen2.5-VL-7B (32K context). The core pipeline: take long documents (PDFs, slides, webpages), convert to images, generate VQA pairs where answers require retrieving information scattered across many pages. Three data types: long-document VQA (questions about content), OCR transcription (just text extraction), and reasoning tasks (math, logic). The training uses standard next-token prediction but with careful data mixing.
The key architectural move is minimal: extend RoPE (rotary position embeddings) from 32K to 128K using YaRN interpolation. No fancy sparse attention, no retrieval-augmented generation modules. The entire contribution is in the data recipe.
Data composition has three knobs: sequence length distribution (how much 32K vs 64K vs 128K), task type ratio (retrieval vs reasoning), and format (VQA vs OCR). The authors train multiple variants, each with 5B tokens, and measure performance on long-document VQA benchmarks plus generalization to 256K and 512K contexts (never seen during training).
Structural metaphor: Think of training a search-and-rescue dog. You could train it only in dense forests (128K-only data), but it won’t generalize to mountains or deserts. Instead, you train across varied terrain (balanced lengths) and focus on the core skill—finding the target (retrieval-heavy tasks)—while adding occasional problem-solving drills (modest reasoning data). The dog learns a generalizable “search” instinct rather than memorizing one environment. Here, the model learns key-information retrieval as a transferable skill, not a length-specific trick.
Key Concepts
-
Long-document VQA vs OCR transcription: OCR is “read this page aloud.” VQA is “find the answer to this question somewhere in these 50 pages.” OCR teaches the model to see text but not to search. VQA forces the model to build an internal index of where information lives. The paper shows VQA is 7% better than OCR for long-context ability because retrieval, not transcription, is the bottleneck. Concrete example: OCR learns “page 23 says ‘Q3 revenue: $5M’”; VQA learns “when asked about Q3 revenue, jump to page 23.”
-
Balanced-length distribution: Intuition says “train on 128K to get 128K ability.” This paper shows the opposite. Training on 50% 128K + 25% 64K + 25% 32K outperforms 100% 128K data. Why? Because long-context ability is not about handling a specific length—it’s about retrieving key information regardless of where it appears. Balanced data teaches the model “search everywhere” rather than “expect information at position 100K.” It’s like learning to find your keys: practicing in different rooms (varied lengths) beats practicing only in the bedroom (target length).
-
Retrieval-heavy mixture: The paper finds 70% retrieval + 30% reasoning beats 50/50 or pure retrieval. Retrieval (VQA) is the primary skill; reasoning (math, logic) adds task diversity to prevent overfitting. Pure retrieval works but slightly underperforms because the model starts memorizing document structures. A small reasoning component acts as regularization, keeping the model general. Think of it as a pianist practicing scales (retrieval) with occasional full pieces (reasoning) to stay musical.
Framework Shift
Before (mainstream approach): After (this paper):
[Architecture] [Data Recipe]
| |
Sparse Attn Balanced Lengths
RoPE Scaling vs. Retrieval-Heavy Mix
Memory Tricks VQA > OCR
| |
Marginal Gains Generalization Leap
(128K → 128K) (128K → 512K)
From architecture-centric scaling to data-centric generalization, the core shift is treating long-context as a retrieval skill learned from diverse examples, not a length-specific capability drilled with target-length data.
Expert Assessment
Problem choice: Real gap. Long-context LVLMs are being deployed (legal doc analysis, video understanding), but training recipes are cargo-culted from language models without vision-specific validation. The field needed this ablation study two years ago.
Method maturity: Refreshingly simple. No architectural novelty—just systematic data ablation. The insight (balanced data beats target-length focus) is non-obvious and challenges intuition. However, the study is limited to one base model (Qwen2.5-VL-7B) and one continued pre-training budget (5B tokens). Generalization to other model families and scales is unproven.
Experimental integrity: Baselines are fair. The ablations are thorough (10+ data mixtures tested). The 256K/512K generalization results are impressive but lack error bars—single-run numbers are risky. The paper claims “maintains short-context capabilities” but only shows aggregate scores, not per-task breakdowns. A deeper analysis of what short-context tasks degrade (if any) would strengthen the claim.
Writing quality: The abstract oversells (“extensive ablations” = 10 runs with 5B tokens each, not extensive by modern standards). Section 3.2 (data construction) is rushed—how exactly are VQA pairs generated? Human-written? Synthetic? The paper says “we generate” but doesn’t specify the pipeline. Rewriting this section with a clear data flowchart would eliminate confusion.
Verdict: Weak accept — solid empirical contribution with actionable insights, but limited scope (one model, one budget) and missing details on data generation reduce impact.
Takeaways
For practitioners:
- If training long-context vision models, use balanced-length data (mix of 32K/64K/128K) rather than focusing on your target length. The model will generalize better.
- Prioritize retrieval-heavy tasks (VQA) over transcription tasks (OCR). Retrieval is the bottleneck, not text recognition.
- Add 20-30% reasoning data (math, logic) to prevent overfitting to document structures, but keep retrieval as the majority.
- You can likely skip short-data mixing if your long data is instruction-formatted. The paper shows minimal short-context degradation with pure long VQA.
Transferable idea: The “balanced distribution beats target distribution” insight applies beyond vision-language. If training models for any length-dependent task (long code generation, extended dialogue), consider whether you’re teaching a length-specific trick or a generalizable skill. Balanced training data often teaches the latter.
论文: 2605.13831 作者: Zhaowei Wang, Lishu Luo, Haodong Duan, Weiwei Liu, Sijin Wu, Ji Luo, Shen Yan, Shuai Peng, Sihang Yuan, Chaoyi Huang 分类: cs.CV
缺口
视觉语言模型(LVLM)正被推向长上下文场景:分析百页文档、小时级视频、多轮智能体工作流。
现有模型如 GPT-4V 和 Gemini 能处理 32K-128K 上下文,但训练配方仍是临时拼凑。
先前工作聚焦架构技巧(稀疏注意力、RoPE 缩放)或用算力硬砸,却不理解什么数据真正教会了长上下文能力。
具体缺口:没人系统消融过长上下文视觉语言训练的数据组成。
该用纯 128K 数据训练吗?
混合长短数据?
用 OCR 转录还是 VQA?
整个领域在盲飞。
问题:LVLM 需要长上下文,但训练配方靠猜
|
v
假设:数据混合比架构调整更重要
|
v
方法:系统消融数据类型、长度、任务比例
|
v
证据:平衡长度 + 检索密集型混合 胜过 目标长度聚焦
|
v
结论:50 亿 token + 正确数据 → 128K 训练泛化到 512K
增量
一句话:这篇论文之前,长上下文 LVLM 训练是”扔更多 128K 数据”;之后,我们知道平衡长度的检索数据加少量推理能泛化到训练长度之外。
核心机制
方法是在 Qwen2.5-VL-7B(32K 上下文)基础上继续预训练。
核心流程:拿长文档(PDF、幻灯片、网页),转成图像,生成 VQA 对,答案需要检索分散在多页的信息。
三种数据类型:长文档 VQA(关于内容的问题)、OCR 转录(纯文本提取)、推理任务(数学、逻辑)。
训练用标准的下一 token 预测,但精心混合数据。
关键架构改动极简:用 YaRN 插值把 RoPE(旋转位置编码)从 32K 扩展到 128K。
没有花哨的稀疏注意力,没有检索增强生成模块。
全部贡献在数据配方。
数据组成有三个旋钮:序列长度分布(多少 32K vs 64K vs 128K)、任务类型比例(检索 vs 推理)、格式(VQA vs OCR)。
作者训练多个变体,每个 50 亿 token,在长文档 VQA 基准上测性能,外加泛化到 256K 和 512K 上下文(训练时从未见过)。
核喻:想象训练搜救犬。
你可以只在密林里训练它(纯 128K 数据),但它不会泛化到山地或沙漠。
相反,你在多种地形训练(平衡长度),聚焦核心技能——找到目标(检索密集型任务)——同时加入偶尔的解题训练(少量推理数据)。
狗学会了可泛化的”搜索”本能,而非记住某个环境。
这里,模型学会关键信息检索作为可迁移技能,而非长度特定的把戏。
关键概念
- 长文档 VQA vs OCR 转录:OCR 是”把这页念出来”。
VQA 是”在这 50 页里找到这个问题的答案”。
OCR 教模型看见文字,但不教搜索。
VQA 迫使模型建立信息位置的内部索引。
论文显示 VQA 比 OCR 好 7%,因为检索而非转录是瓶颈。
具体例子:OCR 学会”第 23 页说’Q3 营收:500 万美元’“;VQA 学会”被问到 Q3 营收时,跳到第 23 页”。
- 平衡长度分布:直觉说”训练 128K 得到 128K 能力”。
本文显示相反。
训练 50% 128K + 25% 64K + 25% 32K 优于 100% 128K 数据。
为什么?
因为长上下文能力不是处理特定长度——而是无论信息出现在哪都能检索到。
平衡数据教模型”到处搜”而非”期待信息在位置 100K”。
就像学找钥匙:在不同房间练习(多样长度)胜过只在卧室练(目标长度)。
- 检索密集型混合:论文发现 70% 检索 + 30% 推理 胜过 50/50 或纯检索。
检索(VQA)是主技能;推理(数学、逻辑)增加任务多样性防止过拟合。
纯检索可行但略差,因为模型开始记忆文档结构。
少量推理成分充当正则化,保持模型通用。
想象钢琴家练音阶(检索)加偶尔完整曲目(推理)保持音乐性。
框架转变
之前(主流方法): 之后(本文方法):
[架构] [数据配方]
| |
稀疏注意力 平衡长度
RoPE 缩放 vs. 检索密集型混合
内存技巧 VQA > OCR
| |
边际收益 泛化飞跃
(128K → 128K) (128K → 512K)
从架构中心的扩展到数据中心的泛化,核心转变是把长上下文当作从多样样本学到的检索技能,而非用目标长度数据训练的长度特定能力。
专家评审
选题眼光:真缺口。
长上下文 LVLM 正被部署(法律文档分析、视频理解),但训练配方从语言模型照搬,没有视觉特定验证。
该领域两年前就需要这个消融研究。
方法成熟度:简单得令人耳目一新。
没有架构创新——只是系统的数据消融。
洞见(平衡数据胜过目标长度聚焦)非显而易见,挑战直觉。
但研究局限于一个基础模型(Qwen2.5-VL-7B)和一个继续预训练预算(50 亿 token)。
泛化到其他模型家族和规模未经证实。
实验诚意:基线公平。
消融彻底(测试了 10+ 数据混合)。
256K/512K 泛化结果令人印象深刻,但缺误差条——单次运行数字有风险。
论文声称”保持短上下文能力”但只展示总分,没有逐任务分解。
更深入分析哪些短上下文任务退化(如果有)会加强论断。
写作功力:摘要过度推销(“extensive ablations” = 用 50 亿 token 跑 10 次,按现代标准不算 extensive)。
3.2 节(数据构建)仓促——VQA 对到底怎么生成的?
人写的?
合成的?
论文说”we generate”但没说明流程。
用清晰的数据流程图重写这节能消除困惑。
判决:弱接收 — 扎实的经验贡献,有可操作洞见,但范围有限(一个模型、一个预算)且数据生成细节缺失,降低影响力。
要点总结
给实践者:
- 如果训练长上下文视觉模型,用平衡长度数据(混合 32K/64K/128K)而非聚焦目标长度。
模型会泛化得更好。
- 优先检索密集型任务(VQA)而非转录任务(OCR)。
检索是瓶颈,不是文本识别。
-
加入 20-30% 推理数据(数学、逻辑)防止过拟合文档结构,但保持检索为主。
-
如果长数据是指令格式,可能可以跳过短数据混合。
论文显示纯长 VQA 的短上下文退化极小。
可迁移想法:“平衡分布胜过目标分布”的洞见超越视觉语言。
如果训练任何长度依赖任务的模型(长代码生成、扩展对话),考虑你是在教长度特定的把戏还是可泛化的技能。
平衡训练数据通常教后者。