atlas

Research map / Graph learning / Graph self-supervised learning

Gramformer: Learning Crowd Counting via Graph-Modulated Transformer

AAAI 2024 · Graph learning › Graph self-supervised learning · approach: Semi-supervised node representation learning · 45 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Gramformer, a graph-modulated transformer for crowd counting that diversifies attention via an anti-similarity attention graph and modulates node features with feature-based centrality encoding, reaching state-of-the-art MAE on UCF-QNRF, JHU++ and NWPU.

Problem

Transformers used for crowd counting produce homogenized self-attention maps because crowd images contain many similar patches, which limits counting accuracy.

Approach

Build an attention graph from dissimilarities between patches (via an Edge Weight Regression network with a horizontal-line regularizer) to modulate attention in an anti-similarity fashion, and a feature-based kNN graph whose node in-degree (centrality index) selects learnable embeddings that bias node features in each layer.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Gramformer instead of the strongest listed baselineCrowd counting models · ShanghaiTech A testMAE: 52.7 -> 54.7Hurt
Use Gramformer instead of the strongest listed baselineCrowd counting models · UCF-QNRF testMAE: 76.7 -> 76.7No clear effect
Use Gramformer instead of the strongest listed baselineCrowd counting models · JHU-Crowd++ testMAE: 53.4 -> 53.1Helped
Use Gramformer instead of the strongest listed baselineCrowd counting models · NWPU-CROWD testMAE: 76.5 -> 72.5Helped
Add EWR to the VGG+IAL baseline (ablation)Gramformer · UCF-QNRFMAE: 84.7 -> 79.3Helped
Add Centrality Indices to the VGG+IAL baseline (ablation)Gramformer · UCF-QNRFMAE: 84.7 -> 79.8Helped
Add Edge Regularization to the model with EWR and Centrality Indices (ablation)Gramformer · UCF-QNRFMAE: 77.9 -> 76.7Helped
Replace graph-guided attention with Graphormer attention (ablation)Gramformer · UCF-QNRFMAE: 76.7 -> 80.9Hurt
Change centrality bank size from 18 to 36 or 12 (ablation)Gramformer · UCF-QNRFMAE: 76.7 -> 80.2Hurt
Change centrality bank size from 18 to 24 (ablation)Gramformer · UCF-QNRFMAE: 76.7 -> 78.4Hurt
Change nearest-neighbor percentage from 0.3 to 0.06, 0.08, 0.1, 0.2, or 0.4 (ablation)Gramformer · UCF-QNRFMAE: 76.7 -> 81.6; 78.3; 78.8; 77.9; 78.2Hurt
Set regularization weight λ to 0.001, 0.01, or 0.1 rather than 0 (ablation)Gramformer · UCF-QNRFMAE: 77.9 -> 77.2; 76.8; 76.7Helped

Surprising findings

Limitations

Experimental setup

Datasets: ShanghaiTech A UCF-QNRF NWPU-CROWD JHU-CROWD++

Benchmarks: ShanghaiTech A UCF-QNRF JHU-CROWD++ NWPU-CROWD

Metrics: MAE MSE NAE

Baselines: MCNN CSRNet SANet CAN BL DM-Count UOT GL S3 ChfL MAN CLTR

Builds on: Graphormer MAN Instance Attention Loss

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy