DeepSeek-OCR 2: Visual Causal Flow
Quick Overview
DeepSeek OCR2 introduces the 'visual causal flow' architecture, replacing rigid raster scanning with a language model-based encoder that uses dual-stream attention to impose logical, story-like ordering on visual tokens, resulting in a 3.73% accuracy jump on Omnidocbench and significantly reduced reading order errors.
Key Points: DeepSeek OCR2 challenges conventional vision language models (VLMs) by arguing their rigid raster scan order is fundamentally broken for complex documents, comparing it to a flatbed scanner rather than human logic. The core innovation is the DeepSeek Encoder V2, which replaces traditional vision encoders like CLIP with a compact Large Language Model (LLM) architecture (LLaMA 2.5B) to leverage its predictive causal reasoning capabilities. The system employs a dual-stream attention mechanism: visual tokens receive bidirectional attention (a static map), while causal flow queries use causal attention to build a sequential, logical path, which is the only input the final decoder sees. The model achieved 91.09% accuracy on Omnidocbench, marking a 3.73% jump over their previous model, and drastically improved reading order edit distance error rate from 0.85 down to 0.57. DeepSeek OCR2 is highly efficient, using a maximum of 11,120 tokens via a smart multicrop strategy (one global view plus up to six local crops), matching the token budget of Gemini 1.5 Pro. The architecture struggles with extremely dense layouts like newspapers, suffering from token compression being too aggressive and a relative lack of specific training data for that format. The researchers propose this architecture points toward unified omnimodal encoding, suggesting the same LLM core could process text, audio, and video by treating all modalities as sequential tokens needing logical ordering.
Context: The AI Papers Podcast daily discussed the paper 'DeepSeek OCR2: Visual Causal Flow' from researchers at DeepSeek AI, which tackles the bottleneck of sequential processing in computer vision when analyzing documents. The discussion centered on why traditional methods that process images mechanically, like a flatbed scanner following a strict X/Y coordinate grid, fail when reading complex documents requiring genuine 2D reasoning, such as following columns or tables logically.