[Paper Review] Boosting Crowd Counting via Multifaceted Attention
This paper proposes the Multifaceted Attention Network (MAN) to improve crowd counting in highly variable scenes by introducing learnable local attention, local attention regularization, and instance-level attention supervision. MAN achieves state-of-the-art performance on four benchmark datasets, reducing MAE by up to 15.1% and MSE by 12.9% over baseline methods.
This paper focuses on the challenging crowd counting task. As large-scale variations often exist within crowd images, neither fixed-size convolution kernel of CNN nor fixed-size attention of recent vision transformers can well handle this kind of variation. To address this problem, we propose a Multifaceted Attention Network (MAN) to improve transformer models in local spatial relation encoding. MAN incorporates global attention from a vanilla transformer, learnable local attention, and instance attention into a counting model. Firstly, the local Learnable Region Attention (LRA) is proposed to assign attention exclusively for each feature location dynamically. Secondly, we design the Local Attention Regularization to supervise the training of LRA by minimizing the deviation among the attention for different feature locations. Finally, we provide an Instance Attention mechanism to focus on the most important instances dynamically during training. Extensive experiments on four challenging crowd counting datasets namely ShanghaiTech, UCF-QNRF, JHU++, and NWPU have validated the proposed method. Codes: https://github.com/LoraLinH/Boosting-Crowd-Counting-via-Multifaceted-Attention.
Motivation & Objective
- Address the challenge of large-scale variations in crowd images, which degrade performance of fixed-receptive-field CNNs and fixed-size attention in vision transformers.
- Improve local spatial encoding in vision transformers by replacing rigid patch-based attention with dynamic, learnable region attention per feature location.
- Balance attention allocation across feature locations using a novel Local Attention Regularization (LAR) that minimizes inter-location attention deviation.
- Reduce the negative impact of noisy or sparse point annotations in crowd counting by introducing dynamic instance attention that focuses on the most reliable instances during training.
- Achieve state-of-the-art performance on multiple standard crowd counting benchmarks with minimal computational overhead.
Proposed method
- Propose Learnable Region Attention (LRA), a dynamic local attention mechanism that learns a unique receptive field for each feature location, replacing fixed-size patches in standard vision transformers.
- Introduce Local Attention Regularization (LAR), a training loss that penalizes deviation in attention weights across different feature locations to promote balanced and efficient attention allocation.
- Design Instance Attention Loss (IAL), which dynamically suppresses low-quality or noisy point annotations during training by focusing only on the most consistent predictions.
- Integrate LRA, LAR, and IAL into a unified transformer-based counting framework, combining global self-attention with adaptive local and instance-level attention.
- Use a CNN backbone to extract features, followed by a transformer encoder with LRA, and a regression head to predict density maps.
- Optimize the full model end-to-end with a combination of standard regression loss and the proposed IAL and LAR losses.
Experimental results
Research questions
- RQ1Can a learnable, dynamic local attention mechanism improve local context encoding in vision transformers for crowd counting?
- RQ2Does regularizing attention distribution across feature locations via LAR lead to more robust and balanced attention allocation?
- RQ3Can dynamic instance-level attention improve model robustness to noisy or sparse point annotations in crowd counting?
- RQ4Does combining global, local, and instance-level attention mechanisms yield consistent performance gains across diverse crowd counting benchmarks?
- RQ5How does the proposed MAN compare in efficiency and accuracy to existing CNN and vision transformer-based crowd counting models?
Key findings
- MAN achieves state-of-the-art performance on four major crowd counting benchmarks: ShanghaiTech, UCF-QNRF, JHU++, and NWPU.
- The proposed method reduces MAE by 15.1% and MSE by 12.9% compared to the baseline BL method on the UCF-QNRF dataset.
- Adding LRA alone improves performance by 2.7% in MAE and 3.5% in MSE over the baseline, with further gains when combined with IAL.
- The Local Attention Regularization (LAR) significantly stabilizes training and improves attention distribution, with optimal performance at δ=0.9 in the Instance Attention Loss.
- The model maintains low computational cost, with only a marginal increase in FLOPs (58.2 GFLOPs) and inference time (11.3s/100 images) compared to ViT-B and VGG19+Trans.
- Visualizations confirm that LRA adaptively narrows attention regions for smaller crowds, mimicking human-like attention efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.