Reproduce “[De|Re]constructing VLMs' Reasoning in Counting” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Simone Alghisi, Gabriel Roccabruna, Massimo Rizzoli, Seyed Mahed Mousavi, Giuseppe Riccardi

This research systematically investigates the root causes of Vision-Language Model (VLM) failures in object counting, demonstrating that while VLMs internally encode sufficient visual information, the primary bottleneck occurs at the output layer. A targeted fine-tuning approach for this layer yielded substantial accuracy improvements on both synthetic and real-world datasets, proving computationally efficient.

Key insights

  • VLMs demonstrate limited counting skills even for simple objects, with performance highly sensitive to object class variations, distractors, and counterintuitively, often performing better on clustered rather than scattered objects.
  • Layer-wise probing revealed that VLM visual encoders and intermediate decoder layers often contain sufficient information for the counting task, but the core issue lies in the output layer's inability to correctly map this rich internal representation to the final answer.
  • Pre-training biases, such as inconsistent performance across different object counts, persist even after targeted fine-tuning, suggesting deeper embedding within earlier model layers.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.