[De|Re]constructing VLMs' Reasoning in Counting
Simone Alghisi, Gabriel Roccabruna, Massimo Rizzoli, Seyed Mahed Mousavi, Giuseppe Riccardi
TL;DR
This work interrogates the counting abilities of seven state-of-the-art Vision-Language Models, moving beyond score-based benchmarks to diagnose the sources of counting errors. Through a CIVET-based framework, it uses balanced synthetic stimuli and layer-wise probing to show that the primary bottleneck lies in the final output mapping, not the encoder representations. A targeted approach that fine-tunes only the output layer yields substantial gains (up to 21% on synthetic data and notable transfer to real-world data), validating the method across both synthetic and real datasets. The study highlights persistent pretraining biases and offers a practical, scalable remedy, with implications for improving reasoning in VLMs and for designing more robust, unbiased evaluation protocols.
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.
