mlsanityData to 14 Oct 2026

Gramformer: Learning Crowd Counting via Graph-Modulated Transformer

arXiv 2401.03870 ↗First posted 8 Jan 2024cs.CVcited by 19

Not on the map. Why?

Abstract (arXiv)

Transformer has been popular in recent crowd counting work since it breaks the limited receptive field of traditional CNNs. However, since crowd images always contain a large number of similar patches, the self-attention mechanism in Transformer tends to find a homogenized solution where the attention maps of almost all patches are identical. In this paper, we address this problem by proposing Gramformer: a graph-modulated transformer to enhance the network by adjusting the attention and input node features respectively on the basis of two different types of graphs. Firstly, an attention graph is proposed to diverse attention maps to attend to complementary information. The graph is building upon the dissimilarities between patches, modulating the attention in an anti-similarity fashion. Secondly, a feature-based centrality encoding is proposed to discover the centrality positions or importance of nodes. We encode them with a proposed centrality indices scheme to modulate the node features and similarity relationships. Extensive experiments on four challenging crowd counting datasets have validated the competitiveness of the proposed method. Code is available at {https://github.com/LoraLinH/Gramformer}.

Key facts. Cited by 19 papers in the map (data through 14 Oct 2026). Builds on 35 of its 53 references that are in the map. First posted on arXiv 8 Jan 2024.

Builds on

35 of 53 references.

References · 35

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  5. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,639
  6. 2015You Only Look Once: Unified, Real-Time Object Detectioncited by 4,852
  7. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
  8. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
  9. 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
  10. 2021Transformer Trackingcited by 412
  11. 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 333
  12. 2018CSRNet: Dilated Convolutional Neural Networks for Understanding the Highly Congested Scenescited by 267
23 more
  1. 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 195
  2. 2018Composition Loss for Counting, Density Map Estimation and Localization in Dense Crowdscited by 186
  3. 2022Vision GNN: An Image is Worth Graph of Nodescited by 186
  4. 2023SCLIP: Rethinking Self-Attention for Dense Vision-Language Inferencecited by 170
  5. 2019Bayesian Loss for Crowd Count Estimation with Point Supervisioncited by 162
  6. 2021Rethinking Counting and Localization in Crowds:A Purely Point-Based Frameworkcited by 152
  7. 2020NWPU-Crowd: A Large-Scale Benchmark for Crowd Counting and Localizationcited by 151
  8. 2021GraphiT: Encoding Graph Structure in Transformerscited by 147
  9. 2020Distribution Matching for Crowd Countingcited by 143
  10. 2020JHU-CROWD++: Large-Scale Crowd Counting Dataset and A Benchmark Methodcited by 109
  11. 2022An End-to-End Transformer Model for Crowd Localizationcited by 74
  12. 2022Boosting Crowd Counting via Multifaceted Attentioncited by 73
  13. 2017Generating High-Quality Crowd Density Maps using Contextual Pyramid CNNscited by 55
  14. 2019Perspective-Guided Convolution Networks for Crowd Countingcited by 54
  15. 2018Revisiting Perspective Information for Efficient Crowd Countingcited by 49
  16. 2019Crowd Counting with Deep Structured Scale Integration Networkcited by 46
  17. 2023STEERER: Resolving Scale Variations for Counting and Localization via Selective Inheritance Learningcited by 41
  18. 2020Semi-Supervised Crowd Counting via Self-Training on Surrogate Taskscited by 35
  19. 2017Multi-scale Convolutional Neural Networks for Crowd Countingcited by 26
  20. 2018Crowd Counting using Deep Recurrent Spatial-Aware Networkcited by 21
  21. 2020Hybrid Graph Neural Networks for Crowd Countingcited by 21
  22. 2022Semi-supervised Crowd Counting via Density Agencycited by 18
  23. 2020Relevant Region Prediction for Crowd Countingcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 4; 2025: 10; 2026: 5.

19 papers.

Sort:

  1. 2024Multi-modal Crowd Counting via a Broker Modalitycited by 11
  2. 2025SoftHGNN: Soft Hypergraph Neural Networks for General Visual Recognitioncited by 4
  3. 2024Multi-modal Crowd Counting via Modal Emulationcited by 3
  4. 2025ZIP: Scalable Crowd Counting via Zero-Inflated Poisson Modelingcited by 2
  5. 2024Boosting Adverse Weather Crowd Counting via Multi-queue Contrastive Learningcited by 1
  6. 2024Efficient Masked AutoEncoder for Video Object Counting and A Large-Scale Benchmarkcited by 1
  7. 2025Depth-Assisted Network for Indiscernible Marine Object Counting with Adaptive Motion-Differentiated Feature Encodingcited by 1
  8. 2025L2HCount:Generalizing Crowd Counting from Low to High Crowd Density via Density Simulationcited by 1
  9. 2025Exploring Scale Shift in Crowd Localization under the Context of Domain Generalizationcited by 1
  10. 20252D Gaussians Spatial Transport for Point-supervised Density Regressioncited by 1
  11. 2026Generative Adversarial Perturbations with Cross-paradigm Transferability on Localized Crowd Countingcited by 1
  12. 2025FocalCount: Towards Class-Count Imbalance in Class-Agnostic Countingcited by 0
7 more
  1. 2025EHNet: An Efficient Hybrid Network for Crowd Counting and Localizationcited by 0
  2. 2025Local Information Matters: A Rethink of Crowd Countingcited by 0
  3. 2025A Dual-Modulation Framework for RGB-T Crowd Counting via Spatially Modulated Attention and Adaptive Fusioncited by 0
  4. 2026RepSFNet : A Single Fusion Network with Structural Reparameterization for Crowd Countingcited by 0
  5. 2026Beyond Strict Pairing: Arbitrarily Paired Training for High-Performance Infrared and Visible Image Fusioncited by 0
  6. 2026SynMVCrowd: A Large Synthetic Benchmark for Multi-view Crowd Counting and Localizationcited by 0
  7. 2026A Benchmark for Semi-supervised Multi-modal Crowd Countingcited by 0