Paper: Thinking with Visual Primitives (PDF)
Authors: DeepSeek-AI, Peking University, Tsinghua University
Multimodal LLMs have gotten good at “seeing” with high-resolution cropping and dynamic patching. Counting twenty stacked boxes, navigating a maze, picking the third occluded shape from the left, those still break in surprising ways. The paper splits this failure into two gaps:
Human reasoning leans on deictic pointers (gestures, taps, finger counting) to keep visual entities pinned while the mind manipulates them. Linguistic CoT throws this away.
Instead of using bounding boxes and points only as supervision targets or post-hoc verification, the paper makes them first-class tokens inside the reasoning trace. The model emits <box> and <point> markers interleaved with text, so it can literally point while it reasons.
Two primitives, with deliberate roles:
The framing “minimal units of thought” matters. These are not extra outputs to be evaluated, they are the substrate the reasoning runs on.
The base model is DeepSeek-V4-Flash, a 284B-A13B MoE (13B active params at inference). Visual encoder is DeepSeek-ViT, trained from scratch, taking arbitrary resolution inputs with a 14x14 patch size.
The compression stack:
Overall: 571,536 raw pixels to 81 KV entries, ~7,056x. For an 800x800 image the paper reports ~90 KV entries against ~870 for Claude-Sonnet-4.6 and ~1100 for Gemini-3-Flash, while matching or beating both on the selected spatial benchmarks (77.2% average).
Five stages, with most of the visual-primitive capability baked in during pretraining and then specialized:
The pretraining data is the load-bearing part. They scrape ~98k box-grounding datasets from Huggingface (Object Detection and Grounding tagged), then run a two-step filter: semantic review (kill gibberish labels, ungeneralizable private entities, ambiguous shorthand) and visual-geometric quality review (drop low-recall, mislocalized, and over-fragmented box sets). About 43k sources survive.
The asymmetry is intentional. Boxes scale because annotation has a deterministic ground truth, point annotations are inherently ambiguous (any pixel inside the object can be “the” point), so they let boxes carry the pretraining and inherit point capability from the box-as-two-points equivalence.
The 2D points-and-boxes vocabulary is the obvious starting set, but it is not the only one. Any modality with a structured spatial substrate could carry its own primitives interleaved into a reasoning trace:
The harder version of the question is whether the choice of primitive can itself be adaptive, picked per-step by the model based on what the current sub-problem actually needs.