CVPR Findings2026
Pre-trained Models Can Count (Almost): Exploring Quantitative Structure in Visual Representations
Toshimichi Aota, Akinori Hashimoto, Naoto Sekizuka, Takayuki Okatani
Abstract
This paper investigates the unexpected effectiveness of internal representations in pre-trained vision models for approximate object counting. Instead of designing taskspecific networks or relying on spatial annotations, we directly regress object counts from intermediate features of frozen backbones such as ResNet and Vision Transformers. Using simple spatial aggregation and a lightweight MLP, these off-the-shelf features yield highly accurate counts-even matching or surpassing specialized models trained end-to-end. Through controlled synthetic experiments, we analyze factors including selective counting ability, robustness to spatial and background variations, the influence of feature layers and pooling, and differences among pre-training strategies. Evaluations on diverse real-world datasets further confirm that mid-level features-particularly those from the third block of ResNet-50-enable accurate counting without fine-tuning. Featurespace visualizations reveal that object count emerges as a monotonic structure within the representation space, while attribution maps demonstrate selective focus on target attributes. These findings show that pre-trained models inherently capture approximate numerical relationships without explicit supervision, offering new insight into the quantitative nature of visual representations.
Ask Lune
Know where this paper stands in minutes, not an afternoon.
Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.
Related papers
- Vision Transformer Off-the-Shelf: A Surprising Baseline for Few-Shot Class-Agnostic CountingZhicheng Wang, Liwen Xiao, Zhiguo Cao, Hao LuAAAI 2024 · 35 citations
- Training Object Detectors from Scratch: An Empirical Study in the Era of Vision TransformerWeixiang Hong, Jiangwei Lao, Wang Ren, Jian Wang et al.CVPR 2022 · 14 citations
- Understanding Counting Mechanisms in Large Language and Vision-Language ModelsHosein Hasani, Amirmohammad Izadi, Fatemeh Askari, Mobin Bagherian et al.CVPR 2026 · 5 citations
- Position Prediction as an Effective Pretraining StrategyShuangfei Zhai, Navdeep Jaitly, Jason Ramapuram, Dan Busbridge et al.ICML 2022 · 30 citations
- Pre-trained Large Language Models Use Fourier Features to Compute AdditionTianyi Zhou, Deqing Fu, Vatsal Sharan, Robin JiaNeurIPS 2024 · 48 citations
