Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Spatial Invariance of Convolutional Networks for Object Counting

Zhi-Qi Cheng, Qi Dai|arXiv (Cornell University)|Jun 10, 2022
Video Surveillance and Tracking MethodsComputer Science9 citations
TL;DR

This paper challenges the conventional wisdom that increased spatial invariance improves object counting, showing that overly strict pixel-level invariance causes models to overfit noise in density maps. It proposes Gaussian convolution with low-rank approximation to relax spatial invariance, enabling better learning of object positions and achieving state-of-the-art performance across 7 benchmarks in crowd, vehicle, and plant counting.

ABSTRACT

Previous work generally believes that improving the spatial invariance of convolutional networks is the key to object counting. However, after verifying several mainstream counting networks, we surprisingly found too strict pixel-level spatial invariance would cause overfit noise in the density map generation. In this paper, we try to use locally connected Gaussian kernels to replace the original convolution filter to estimate the spatial position in the density map. The purpose of this is to allow the feature extraction process to potentially stimulate the density map generation process to overcome the annotation noise. Inspired by previous work, we propose a low-rank approximation accompanied with translation invariance to favorably implement the approximation of massive Gaussian convolution. Our work points a new direction for follow-up research, which should investigate how to properly relax the overly strict pixel-level spatial invariance for object counting. We evaluate our methods on 4 mainstream object counting networks (i.e., MCNN, CSRNet, SANet, and ResNet-50). Extensive experiments were conducted on 7 popular benchmarks for 3 applications (i.e., crowd, vehicle, and plant counting). Experimental results show that our methods significantly outperform other state-of-the-art methods and achieve promising learning of the spatial position of objects.

Motivation & Objective

  • To investigate whether excessive spatial invariance in convolutional networks hinders object counting performance.
  • To analyze how noise in density maps—caused by annotation errors and kernel overlap—affects model generalization and prediction stability.
  • To propose a method that relaxes strict pixel-level spatial invariance to improve learning of true object positions and distributions.
  • To demonstrate that replacing standard convolution with Gaussian convolution enhances robustness to density map noise and improves counting accuracy.

Proposed method

  • Replace standard convolution filters with locally connected Gaussian kernels to model spatial position more flexibly during feature extraction.
  • Introduce a low-rank approximation to efficiently compute large-scale Gaussian convolutions, reducing computational cost while preserving spatial modeling capacity.
  • Integrate Gaussian convolution into existing networks (MCNN, CSRNet, SANet, ResNet-50) at key layers such as residual blocks and spatial pyramid pooling.
  • Apply the method end-to-end in a differentiable manner, allowing the network to learn spatial structure directly from the feature learning process rather than just in the final density map.
  • Use a multi-scale Gaussian kernel size (K) with adaptive values (e.g., K=4 in residual blocks, K=16 in spatial pyramid layers) to balance performance and overfitting.
  • Train using standard regression loss with learning rate decay, ensuring convergence stability despite the modified inductive bias.

Experimental results

Research questions

  • RQ1Does increasing pixel-level spatial invariance in CNNs actually improve object counting performance, or does it lead to overfitting on density map noise?
  • RQ2How does annotation error and kernel overlap in density map generation affect model prediction variance and generalization?
  • RQ3Can replacing standard convolution with Gaussian convolution improve the model's ability to learn true object positions and distributions?
  • RQ4What is the optimal trade-off between spatial invariance and spatial sensitivity in object counting networks?
  • RQ5Does relaxing spatial invariance through Gaussian convolution lead to consistent performance gains across diverse counting benchmarks?

Key findings

  • Excessive pixel-level spatial invariance leads to high prediction variance and overfitting to noise in density maps, even when model performance (e.g., spatial invariance) is increased.
  • The original baselines (MCNN, CSRNet, SANet, ResNet-50) exhibit significant prediction variance across 20 random training runs, with variance accounting for ~25% of total error, even in high- and low-density regions.
  • The proposed Gaussian convolution with low-rank approximation significantly reduces prediction variance compared to standard convolution, as shown in ablation studies on SHTech ParA, UCF-QNRF, and JHU-CROWD++.
  • On 7 mainstream benchmarks across crowd, vehicle, and plant counting, the method achieves state-of-the-art performance, outperforming existing SOTA methods in both MAE and MSE metrics.
  • The optimal kernel size (K) varies by network structure: K=4 in residual blocks, K=16 in spatial pyramid pooling, and K=2–32 in multi-column structures, indicating sensitivity to architectural design.
  • The method enables models to better learn actual object positions and distributions, as evidenced by improved localization accuracy and reduced overfitting to annotation noise.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.