Thinking with Visual Primitives: points and boxes as units of thought

Paper: Thinking with Visual Primitives (PDF)
Authors: DeepSeek-AI, Peking University, Tsinghua University

Why multimodal chain-of-thought collapses on spatial tasks

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:

  1. The Perception Gap, where the model literally cannot resolve the detail. Hi-res cropping (Thinking with Images) handles this one reasonably well.
  2. The Reference Gap, where the model can see fine but its linguistic chain-of-thought has no way to point at a specific thing it is looking at. Phrases like “the small green object next to the larger one” are ambiguous in a continuous visual space, and the ambiguity compounds across reasoning steps. The authors argue this is the real bottleneck.

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.

The fix: visual primitives as minimal units of thought

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.

Architecture: 7,056x compression end to end

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:

  1. ViT patches the image at 14x14. A 756x756 input gives 2,916 patch tokens.
  2. A 3x3 spatial token compression at the ViT output collapses every 9 adjacent patches into one along the channel dim. That drops to 324 visual tokens fed into the LLM.
  3. Compressed Sparse Attention inside the LLM further compresses the KV cache by 4x. Final KV footprint: 81 entries.

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).

Training pipeline

Five stages, with most of the visual-primitive capability baked in during pretraining and then specialized:

  1. Pretraining (foundational primitive generation)
  2. Specialized SFT
  3. Specialized RL
  4. Unified RFT
  5. On-policy distillation

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.

What is suggestive about this for non-2D modalities

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.

Open questions