Thinking with Visual Primitives

Ruijie Lu, Yiyang Ma, Xiaokang Chen, Lingxiao Luo, Zhiyu Wu, Zizheng Pan, Ting Chen, Gang ZengNeurIPS 2026

TL;DR

Try solving a complex paper maze or counting 30 scattered pennies without using your finger—just narrating it in your head. That’s essentially what today's Multimodal Large Language Models (MLLMs) are forced to do, and it's why they lose their place and hallucinate. This paper introduces Thinking with Visual Primitives, giving AI a "digital finger" (coordinate points and bounding boxes) interleaved directly into its Chain-of-Thought so it can point while it reasons, beating frontier models at a fraction of the visual token cost.

What Problem Does This Paper Address?

Recent multimodal models have gotten great at "seeing" fine details by chopping high-resolution images into tiles—closing what the authors call the Perception Gap. Yet, these models still stumble on dense counting, multi-step spatial logic, or tracing tangled lines.

Why? Because their Chain-of-Thought (CoT) reasoning happens almost entirely in plain text. Natural language is notoriously clumsy at acting as a precise pointer in continuous visual space ("the third guy from the left in the middle row... wait, which row?"). The authors call this the Reference Gap. When words fail to unambiguously anchor onto visual objects across multiple steps, the model loses track of what it already looked at, triggering cascading hallucinations. While prior works have used bounding boxes in CoT, they largely treated them as post-hoc receipts for perception rather than active building blocks for structural reasoning.

Methods

The model uses a standard LLaVA-style architecture: an arbitrary-resolution Vision Transformer (ViT) that applies a $3 \times 3$ spatial token compression before feeding visual tokens into an internal Mixture-of-Experts (MoE) LLM.

What’s novel is elevating spatial markers—<|point|> coordinates and <|box|> bounding boxes—into "minimal units of thought" woven directly into the text generation. To teach the model both skills without the two formats clashing, the authors use a "train-specialists-then-merge" post-training pipeline:

Figure 2: Model architecture and training pipeline. Developed upon an internal LLM, our model acquires basic visual primitive generation capabilities during the pretraining phase. This is followed by a post-training stage employing an expert-wise specialization and consolidation paradigm.
  1. Specialized SFT & RL: Starting from a pretrained base, they train two separate specialists—one for boxes (thinking with grounding) and one for points (thinking with pointing). Next, they apply Group Relative Policy Optimization (GRPO) using custom Reward Models checking syntax/redundancy, reasoning quality, and task-specific accuracy (e.g., smoothly decaying rewards for near-miss counts, or step-by-step wall-violation checks in mazes).
  2. Unified RFT (Rejection/Rollout Fine-Tuning): Both RL specialists generate reasoning rollouts on a broader data pool. Verified "normal-difficulty" trajectories (plus 5% easy ones to prevent forgetting) are combined to fine-tune a single unified model from the base checkpoint.
  3. On-Policy Distillation (OPD): Finally, two even stronger RL teachers are trained from the unified model, and their knowledge is consolidated back into a single student model by minimizing reverse KL divergence over the full vocabulary logits on the student's own generated trajectories.

Datasets

  • Cold-Start Training Data: The authors curated ~604,000 high-precision reasoning traces across four tasks:
  • Topological: Procedurally generated Maze Navigation (460k samples across rectangular, circular, and honeycomb grids, including subtly broken unsolvable mazes) and Path Tracing (125k samples of overlapping Bézier curves).
  • Counting & Spatial VQA: ~10k counting samples (aggregated from dense detection datasets for coarse batch-grounding, plus GQA scene graphs for fine-grained sequential scanning) and ~9k spatial VQA samples (from GQA and multi-hop synthetic CLEVR scenes, augmented with "faithful refusal" negative examples).
  • Evaluation Benchmarks: Tested on 7 public benchmarks (CountQA, Pixmo-Count, MIHBench, SpatialMQA, EmbSpatial, CV-Bench, OmniSpatial), 2 general capability benchmarks (MMMU, DocVQA), and 4 new in-house benchmarks: Finegrained_Counting (600 hard-negative cases), Spatial_Reasoning (2,000 CLEVR-based questions), Maze_Navigation (2,000 instances), and Path_Tracing (2,000 instances).

Key Insights and Ideas

  • Deictic gestures for AI: Humans point at things to offload working memory. By turning coordinates into native tokens inside the reasoning stream, the model offloads spatial tracking from vague words onto exact numbers.
  • Adaptive "visual attention" speed: In path tracing, the model learns to drop sparse coordinate waypoints on straightaways and dense clusters of points at sharp curves or intersections—mirroring how human eyes slow down at visual tangles.
  • Reasoning beats raw resolution: Rather than flooding the LLM with thousands of high-res image patches, aggressive $3 \times 3$ token compression paired with precise coordinate referencing achieves superior reasoning at a fraction of the compute.

Key Results

Across the 7 selected public counting and spatial benchmarks, the model achieves an average score of 77.2%, outperforming Gemini-3-Flash (76.5%), GPT-5.4 (71.1%), Gemma-4-31B (69.7%), Qwen3-VL-235B (68.1%), and Claude-Sonnet-4.6 (65.3%).

Figure 1: (a) Token consumption across various models for an image of 800 × 800 resolution. (b) Average performance across 7 benchmarks, including counting and spatial reasoning, with in-house benchmarks excluded. We note that the reported scores cover only a subset of evaluation dimensions that are directly relevant to the research focus of this paper, and are therefore not indicative of the models’ overall capabilities. For an image of 800 × 800 resolution, our model retains only approximately 361 image tokens. Best viewed on screen.
  • Extreme Token Efficiency: For an $800 \times 800$ image, the model uses only ~361 image tokens, compared to ~740 for GPT-5.4, ~870 for Claude-Sonnet-4.6, and ~1,100 for Gemini-3-Flash.
  • Topological Leap: Frontier models struggle on topological tasks, hovering around ~50% on Maze_Navigation (essentially guessing solvability) and 24.5%–46.5% on Path_Tracing. The proposed model jumps to 66.9% on mazes and 56.7% on path tracing.
  • No General Capability Tax: General multimodal scores hold steady (and slightly improve) after training, finishing at 74.0 on MMMU and 94.8 on DocVQA.

Limitations and Future Work

The authors note that their benchmark suite intentionally targets counting, spatial, and topological reasoning, meaning the headline averages do not reflect overall general-purpose superiority across all multimodal domains. Additionally, in fair API comparisons, configurable frontier models (like GPT-5.4 and Gemini-3-Flash) were evaluated with their thinking budgets uniformly set to low, and the proposed model uses a mode-activation prefix. Even with visual primitives, topological scores (66.9% and 56.7%) show plenty of headroom remains. Overall, the paper points toward a compelling future direction: scaling System-2 multimodal intelligence not by feeding models ever more pixels, but by building sharper referential bridges between language and vision.

Summary updated

Abstract

Despite the remarkable progress in Multimodal Large Language Models (MLLMs), the prevailing Chain-of-Thought (CoT) paradigms remain predominantly confined to the linguistic space. While recent advancements have addressed the Perception Gap through high-resolution cropping (e.g., Thinking with Images), maintaining precise visual references throughout multi-step reasoning remains challenging. We refer to this challenge as the Reference Gap: natural-language descriptions can be ambiguous when referring to specific objects, locations, or trajectories in complex visual scenes. In this work, we introduce Thinking with Visual Primitives, a novel reasoning framework that elevates spatial markers (e.g. points and bounding boxes) to ''minimal units of thought''. By interleaving these visual primitives directly into the reasoning process, our model can ''point'' while it ''reasons'', anchoring its intermediate reasoning steps to image coordinates. With a relatively low image-token budget, our model achieves frontier-competitive performance on a focused suite of challenging visual QA tasks, matching or exceeding models such as GPT-5.4, Claude-Sonnet-4.6, and Gemini-3-Flash under the evaluated settings. This demonstrates a path toward more efficient and scalable System-2-like multimodal intelligence.
BibTeX
@inproceedings{lu2026thinking,
  author = {Ruijie Lu and Yiyang Ma and Xiaokang Chen and Lingxiao Luo and Zhiyu Wu and Zizheng Pan and Ting Chen and Gang Zeng},
  title = {{Thinking with Visual Primitives}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=CA9dsXjWGT},
}
Figure