[De|Re]constructing VLMs' Reasoning in Counting

Simone Alghisi, Gabriel Roccabruna, Massimo Rizzoli, Seyed Mahed Mousavi, Giuseppe Riccardi
10/22/2025
cs.CVcs.CL

No official code found. Best implementation: sislab-unitn/DeRe-VLM (2 stars, MIT, last commit 2025-10-26).

Abstract

Vision-Language Models (VLMs) have recently gained attention due to their competitive performance on multiple downstream tasks, achieved by following user-input instructions. However, VLMs still exhibit several limitations in visual reasoning, such as difficulties in identifying relations (e.g., spatial, temporal, and among objects), understanding temporal sequences (e.g., frames), and counting objects. In this work, we go beyond score-level benchmark evaluations of VLMs by investigating the underlying causes of their failures and proposing a targeted approach to improve their reasoning capabilities. We study the reasoning skills of seven state-of-the-art VLMs in the counting task under controlled experimental conditions. Our experiments show that VLMs are highly sensitive to the number and type of objects, their spatial arrangement, and the co-occurrence of distractors. A layer-wise analysis reveals that errors are due to incorrect mapping of the last-layer representation into the output space. Our targeted training shows that fine-tuning just the output layer improves accuracy by up to 21%. We corroborate these findings by achieving consistent improvements on real-world datasets.

View on arXivView PDF

Code Implementations(1)

MIT

Official repository for the paper "[De|Re]constructing VLMs' Reasoning in Counting" submitted @ IEEE/TPAMI

20Python, Jupyter NotebookOct 21, 202511 months agoMIT

Similar Papers

Cite this paper

@article{alghisi2025dereconstructing,
  title  = {[De|Re]constructing VLMs' Reasoning in Counting},
  author = {Simone Alghisi and Gabriel Roccabruna and Massimo Rizzoli and Seyed Mahed Mousavi and Giuseppe Riccardi},
  year   = {2025},
  eprint = {2510.19555},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.19555v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.19555.svg)](https://codeofpaper.com/paper/2510.19555)

Discussion