Thinking with Images as Continuous Actions: Numerical Visual Chain-of-Thought

Kesen Zhao, Beier Zhu, Junbao Zhou, Xingyu Zhu, Zhongqi Yue, Hanwang Zhang

TL;DR

Multimodal LLMs often "think with images" by spelling out bounding-box coordinates as text tokens so they can crop and zoom in on small details—a clumsy hack that forces a language model to do geometry with a dictionary. Numerical Visual Chain-of-Thought (NV-CoT) fixes this by adding lightweight continuous output heads directly to the LLM, letting it predict coordinates in native Euclidean space. By modeling these coordinates as probability distributions, NV-CoT plugs seamlessly into modern Reinforcement Learning (like GRPO), boosting visual accuracy, speeding up training, and letting a 7B model outperform a 32B giant.

What Problem Does This Paper Address?

Imagine trying to point at a tiny ketchup bottle across a crowded diner table, except you aren't allowed to use your finger—you have to spell out pixel coordinates letter-by-letter. That is how most Multimodal Large Language Models (MLLMs) currently perform visual chain-of-thought (zooming into relevant image regions before answering a query).

Figure 1: Comparison of different paradigms for thinking with images. (a) Text-based approaches represent localized regions as discrete coordinate tokens, leading to modality mismatch and frag- mented semantics. (b) Patch-based approaches reason directly over fine-grained visual tokens but are constrained by the fixed spatial granularity of the vision backbone. (c) Our NV-CoT predicts region coordinates in continuous space, enabling flexible and precise localization.

Existing paradigms fall into two traps:

  1. Text-based coordinates suffer from modality mismatch and semantic fragmentation. Under standard cross-entropy loss, predicting "3.2" when the target is "3.1" is penalized just as harshly as predicting "9.1", completely ignoring geometric closeness. Worse, tokenizerschop numbers into arbitrary sub-tokens, making spatial math brittle.
  2. Patch-based approaches skip text by selecting visual encoder patches directly. However, they are locked into the rigid, predefined grid of the vision backbone and require heavy architectural surgery.

How do we give MLLMs continuous, pinpoint spatial precision without rebuilding them from scratch—and while keeping them compatible with LLM Reinforcement Learning?

Methods

NV-CoT expands the MLLM's action space from discrete vocabulary tokens to continuous Euclidean space ($\mathbb{R}^4$) with minimal architectural fuss.

  • Five Lightweight Linear Heads: Alongside the standard vocabulary head, the authors attach five simple linear projections to the LLM's final hidden state: four predict the bounding box center/corners ($\mu = [x_1, y_1, x_2, y_2]$), and a fifth predicts a shared scale/uncertainty parameter ($\sigma$ or $\alpha$).
  • Supervised Fine-Tuning (SFT): When ground-truth boxes exist, text tokens use standard cross-entropy loss, while coordinate heads are trained directly with continuous regression ($\ell_2^2$ or $\ell_1$ loss).
  • Reinforcement Learning (GRPO): Standard Group Relative Policy Optimization (GRPO—the RL algorithm popularized by DeepSeek) requires stochastic sampling to explore actions and likelihood ratios to update the policy. Deterministic regression can't do that. NV-CoTcleverly treats the coordinate output as a Gaussian or Laplace policy. Using the reparameterization trick, the model samples slightly noisy bounding boxes during rollouts to explore the image, yielding clean, closed-form mathematical expressions for importance ratios and KL penalties. At inference, noise is turned off, and the model crops using the exact predicted mean $\mu$.

Datasets

No new benchmarks are introduced; for fair comparison, NV-CoT uses the exact training datasets of its baseline backbones: Vis-CoT-363K (for SFT) and DeepEyes-47K (for RL).

Evaluation spans four categories:

  • High-Resolution Visual Reasoning: $V^*$ Bench, HR-Bench 4K, and HR-Bench 8K.
  • General Multimodal Understanding: MMMU-Pro, ChartQA, and OCRBenchv2.
  • Grounding & Counting: RefCOCO/+/g, COCO detection, CountBenchQA, and TallyQA.
  • Pure-Text Reasoning: MMLU and GSM8K (to ensure language skills don't degrade).

Key Insights and Ideas

  • Laplace beats Gaussian for RL localization: Just as $\ell_1$ loss outperforms $\ell_2^2$ loss in classic object detection due to outlier robustness, parameterizing the RL policy as a Laplace distribution consistently beats a Gaussian policy across every benchmark.
  • Emergent Confidence Calibration: Nobody explicitly supervised the uncertainty head ($\alpha$) during RL—it was learned purely from final-answer rewards. Yet, failed trajectories naturally exhibit much higher $\alpha$ (wider search spread) than successful ones, showing the model knows when it is squinting in the dark.
  • One Uncertainty Head is Enough: Predicting four separate variance parameters per box coordinate offers virtually zero gain over a single shared scale parameter, keeping the head tiny.

Key Results

  • Beating Bigger Models: Built on a 7B backbone, NV-CoT (RL) reaches 89.0% on $V^*$ Bench (rising to 91.6% with multi-step zoom-ins), outperforming its text-based DeepEyes-7B counterpart (+2.6%), patch-based LVR-7B (+7.8%), and even the massive Qwen2.5-VL-32B (87.9%).
  • Sharper Boxes & Faster Learning: On the Vis-CoT validation set, continuous $\ell_1$ regression jumps bounding-box IoU from 47.3% to 59.5% while converging noticeably faster in both SFT and RL.
  • Broad Gains, Zero Text Tax: NV-CoT boosts COCO object detection from 22.8 to 27.4 mAP and ChartQA from 62.5% to 65.1%, while MMLU (71.07% vs. 70.88%) and GSM8K remain rock-solid.

Limitations and Future Work

The authors note that NV-CoT sharpens where the model looks, not what it understands. If the underlying base MLLM fundamentally misunderstands the visual scene or the user's question, drawing a mathematically pristine bounding box won't save the final answer. Future directions aren't explicitly mapped out, though applying continuous action policies to broader multimodal tool-use is a natural next step.

Summary updated

BibTeX
@inproceedings{zhao2026thinking,
  author = {Kesen Zhao and Beier Zhu and Junbao Zhou and Xingyu Zhu and Zhongqi Yue and Hanwang Zhang},
  title = {{Thinking with Images as Continuous Actions: Numerical Visual Chain-of-Thought}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=kqCpiR360C},
}
Figure