DeepSeek-OCR 2: Visual Causal Flow
DeepSeek-OCR 2通过引入因果推理能力,实现了视觉语言模型中视觉编码器的动态重排序,从而提高了图像理解能力。
更新于 2026-08-06。作者:Haoran Wei、Yaofeng Sun、Yukun Li。
中文摘要
我们推出 DeepSeek-OCR 2,旨在研究一种新型编码器 DeepEncoder V2 的可行性,该编码器能够根据图像语义动态重新排列视觉标记。传统的视觉语言模型(VLMs)在输入到大型语言模型(LLMs)时,总是以固定的栅格扫描顺序(从左上角到右下角)处理视觉标记,并使用固定位置编码。然而,这与人类的视觉感知相矛盾,人类的视觉感知遵循灵活但语义上连贯的扫描模式,这些模式由内在的逻辑结构驱动。特别是对于布局复杂的图像,人类的视觉表现出因果信息驱动的顺序处理。受这种认知机制的启发,DeepEncoder V2 被设计用来赋予编码器因果推理能力,使其能够在基于 LLM 的内容解释之前智能地重新排列视觉标记。这项工作探索了一种新颖的范式:是否可以通过两个级联的 1D 因果推理结构有效地实现 2D 图像理解,从而提供一种具有实现真正 2D 推理潜力的新型架构方法。代码和模型权重可在 http://github.com/deepseek-ai/DeepSeek-OCR-2 公开获取。
英文摘要
We present DeepSeek-OCR 2 to investigate the feasibility of a novel encoder-DeepEncoder V2-capable of dynamically reordering visual tokens upon image semantics. Conventional vision-language models (VLMs) invariably process visual tokens in a rigid raster-scan order (top-left to bottom-right) with fixed positional encoding when fed into LLMs. However, this contradicts human visual perception, which follows flexible yet semantically coherent scanning patterns driven by inherent logical structures. Particularly for images with complex layouts, human vision exhibits causally-informed sequential processing. Inspired by this cognitive mechanism, DeepEncoder V2 is designed to endow the encoder with causal reasoning capabilities, enabling it to intelligently reorder visual tokens prior to LLM-based content interpretation. This work explores a novel paradigm: whether 2D image understanding can be effectively achieved through two-cascaded 1D causal reasoning structures, thereby offering a new architectural approach with the potential to achieve genuine 2D reasoning. Codes and model weights are publicly accessible at http://github.com/deepseek-ai/DeepSeek-OCR-2.
解读
一句话总结
DeepSeek-OCR 2通过引入因果推理能力,实现了视觉语言模型中视觉编码器的动态重排序,从而提高了图像理解能力。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:传统视觉语言模型在处理视觉信息时,通常采用固定的顺序,这与人类视觉感知的灵活性不符。
- 现有方案不足:现有视觉语言模型在处理复杂布局的图像时,无法有效地捕捉图像中的因果逻辑。
- 研究目标:设计一种新的视觉编码器,能够根据图像语义动态重排序视觉标记,从而提高图像理解能力。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种名为DeepEncoder V2的编码器,它能够通过因果推理能力对视觉标记进行智能重排序。
- 方法改进:引入了可学习的查询(因果流标记),使得视觉标记能够获得重排序能力。
- 优势:与现有方法相比,DeepSeek-OCR 2在性能上有了显著提升,特别是在处理复杂布局的图像时。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在OmniDocBench v1.5数据集上进行了实验,DeepSeek-OCR 2实现了91.09%的性能,比DeepSeek-OCR提升了3.73%。
- 性能提升:DeepSeek-OCR 2在文本编辑距离(ED)和表格识别(TED)等指标上均有所提升。
- 对比结果:与基线方法相比,DeepSeek-OCR 2在多个文档类型上均取得了更好的性能。
问题4:这个研究的实际应用价值是什么?
- 应用场景:DeepSeek-OCR 2可以应用于在线OCR服务、PDF预处理、文档解析等领域。
- 实施建议:DeepSeek-OCR 2可以作为一个实用的工具,用于生成高质量的LLM预训练数据。
- 局限与展望:DeepSeek-OCR 2在处理某些特定类型的文档时可能存在局限性,未来可以进一步优化模型以适应更多场景。
来源
机器可读索引:llms.txt