Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Counting
Not on the map. Why?
Abstract (arXiv)
Class-agnostic counting (CAC) aims to count all instances in a query image given few exemplars. A standard pipeline is to extract visual features from exemplars and match them with query images to infer object counts. Two essential components in this pipeline are feature representation and similarity metric. Existing methods either adopt a pretrained network to represent features or learn a new one, while applying a naive similarity metric with fixed inner product. We find this paradigm leads to noisy similarity matching and hence harms counting performance. In this work, we propose a similarity-aware CAC framework that jointly learns representation and similarity metric. We first instantiate our framework with a naive baseline called Bilinear Matching Network (BMNet), whose key component is a learnable bilinear similarity metric. To further embody the core of our framework, we extend BMNet to BMNet+ that models similarity from three aspects: 1) representing the instances via their self-similarity to enhance feature robustness against intra-class variations; 2) comparing the similarity dynamically to focus on the key patterns of each exemplar; 3) learning from a supervision signal to impose explicit constraints on matching results. Extensive experiments on a recent CAC dataset FSC147 show that our models significantly outperform state-of-the-art CAC approaches. In addition, we also validate the cross-dataset generality of BMNet and BMNet+ on a car counting dataset CARPK. Code is at tiny.one/BMNet
Key facts. Cited by 80 papers in the map (data through 7 Oct 2026). Builds on 24 of its 45 references that are in the map. First posted on arXiv 16 Mar 2022.
Builds on
24 of 45 references.
References · 24
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2017Squeeze-and-Excitation Networkscited by 4,763
- 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
- 2018CosFace: Large Margin Cosine Loss for Deep Face Recognitioncited by 968
- 2016Fully-Convolutional Siamese Networks for Object Trackingcited by 566
- 2021Transformer Trackingcited by 412
- 2020Circle Loss: A Unified Perspective of Pair Similarity Optimizationcited by 402
- 2020A Metric Learning Reality Checkcited by 317
12 more
- 2019Bayesian Loss for Crowd Count Estimation with Point Supervisioncited by 162
- 2017Drone-based Object Counting by Spatially Regularized Regional Proposal Networkcited by 155
- 2021Rethinking Counting and Localization in Crowds:A Purely Point-Based Frameworkcited by 152
- 2021Learning To Count Everythingcited by 149
- 2020Distribution Matching for Crowd Countingcited by 143
- 2019Indices Matter: Learning to Index for Deep Image Mattingcited by 93
- 2018Class-Agnostic Countingcited by 85
- 2020Localization in the Crowd with Topological Constraintscited by 68
- 2019From Open Set to Closed Set: Counting Objects by Spatial Divide-and-Conquercited by 48
- 2019Signal-to-Noise Ratio: A Robust Distance Metric for Deep Metric Learningcited by 32
- 2020Weighing Counts: Sequential Crowd Counting by Reinforcement Learningcited by 30
- 2019Neural Similarity Learningcited by 13
Built on by
Citing papers per year: 2022: 5; 2023: 20; 2024: 27; 2025: 19; 2026: 9.
80 papers.
Sort:
By area:
- 2024T-Rex2: Towards Generic Object Detection via Text-Visual Prompt Synergycited by 94
- 2024DINO-X: A Unified Vision Model for Open-World Object Detection and Understandingcited by 85
- 2023CLIP-Count: Towards Text-Guided Zero-Shot Object Countingcited by 82
- 2022CounTR: Transformer-based Generalised Visual Countingcited by 79
- 2025Detect Anything via Next Point Predictioncited by 66
- 2022A Low-Shot Object Counting Network With Iterative Prototype Adaptationcited by 65
- 2024CountGD: Multi-Modal Open-World Countingcited by 59
- 2023Zero-shot Object Countingcited by 57
- 2024DAVE -- A Detect-and-Verify Paradigm for Low-Shot Countingcited by 49
- 2023VLCounter: Text-aware Visual Representation for Zero-Shot Object Countingcited by 45
- 2022Learning to Count Anything: Reference-less Class-agnostic Counting with Weak Supervisioncited by 41
- 2023Open-world Text-specified Object Countingcited by 41
38 more
- 2023Point, Segment and Count: A Generalized Framework for Object Countingcited by 39
- 2023Training-free Object Counting with Promptscited by 34
- 2023Vision Transformer Off-the-Shelf: A Surprising Baseline for Few-Shot Class-Agnostic Countingcited by 25
- 2023Counting Guidance for High Fidelity Text-to-Image Synthesiscited by 24
- 2024Zero-shot Object Counting with Good Exemplarscited by 21
- 2024A Novel Unified Architecture for Low-Shot Counting by Detection and Segmentationcited by 21
- 2023T-Rex: Counting by Visual Promptingcited by 20
- 2024LVLM-COUNT: Enhancing the Counting Ability of Large Vision-Language Modelscited by 20
- 2025T2ICount: Enhancing Cross-modal Understanding for Zero-Shot Countingcited by 19
- 2023Can SAM Count Anything? An Empirical Study on SAM Countingcited by 18
- 2024OmniCount: Multi-label Object Counting with Semantic-Geometric Priorscited by 16
- 2023ABC Easy as 123: A Blind Counter for Exemplar-Free Multi-Class Class-agnostic Countingcited by 13
- 2024AFreeCA: Annotation-Free Counting for Allcited by 12
- 2025Open-World Object Counting in Videoscited by 11
- 2024A Fixed-Point Approach to Unified Prompt-Based Countingcited by 10
- 2024OVR: A Dataset for Open Vocabulary Temporal Repetition Counting in Videoscited by 10
- 2025Exploring Contextual Attribute Density in Referring Expression Countingcited by 10
- 2023Zero-Shot Object Counting with Language-Vision Modelscited by 9
- 2024CapeX: Category-Agnostic Pose Estimation from Textual Point Explanationcited by 9
- 2023Interactive Class-Agnostic Object Countingcited by 8
- 2024Every Shot Counts: Using Exemplars for Repetition Counting in Videoscited by 8
- 2024Counting Stacked Objectscited by 8
- 2025A Survey on Class-Agnostic Counting: Advancements from Reference-Based to Open-World Text-Guided Approachescited by 7
- 2025Can Current AI Models Count What We Mean, Not What They See? A Benchmark and Systematic Evaluationcited by 7
- 2023Semantic Generative Augmentations for Few-Shot Countingcited by 6
- 2025CountingDINO: A Training-free Pipeline for Class-Agnostic Counting using Unsupervised Backbonescited by 6
- 2025Single Domain Generalization for Few-Shot Counting via Universal Representation Matchingcited by 6
- 2023SimpSON: Simplifying Photo Cleanup with Single-Click Distracting Object Segmentation Networkcited by 5
- 2023SQLNet: Scale-Modulated Query and Localization Network for Few-Shot Class-Agnostic Countingcited by 5
- 2024Learning Spatial Similarity Distribution for Few-shot Object Countingcited by 5
- 2025Generalized-Scale Object Counting with Gradual Query Aggregationcited by 5
- 2023GCNet: Probing Self-Similarity Learning for Generalized Counting Networkcited by 4
- 2023Count What You Want: Exemplar Identification and Few-shot Counting of Human Actions in the Wildcited by 3
- 2024A Simple-but-effective Baseline for Training-free Class-Agnostic Countingcited by 3
- 2024CryoMAE: Few-Shot Cryo-EM Particle Picking with Masked Autoencoderscited by 3
- 2024TFCounter:Polishing Gems for Training-Free Object Countingcited by 2
- 2024Mutually-Aware Feature Learning for Few-Shot Object Countingcited by 2
- 2025SDVPT: Semantic-Driven Visual Prompt Tuning for Open-World Object Countingcited by 2
50 most cited of 80 All 80 (JSON)
- 2026AgriCountDINO: Parameter-Efficient Exemplar-Guided Counting and Localization in Agriculture24 Sep 2026
- 2026DualCount: Structurally Consistent Density and Point Modeling for Zero-Shot Object Counting14 Sep 2026
- 2026Object Counting Across Modalities: Taxonomies, Benchmarks, Applications, and Open Challenges24 Aug 2026
- 2026Count Anything at Any Granularity11 May 2026
- 2026Focus on Background: Exploring SAM's Potential in Few-shot Medical Image Segmentation with Background-centric Prompting22 Mar 2026
- 2026Plant Taxonomy Meets Plant Counting: A Fine-Grained, Taxonomic Dataset for Counting Hundreds of Plant Species22 Mar 2026
- 2026Automated Counting of Stacked Objects in Industrial Inspection16 Mar 2026
- 2026CountEx: Fine-Grained Counting via Exemplars and Exclusion23 Feb 2026
- 2026OCCAM: Class-Agnostic, Training-Free, Prior-Free and Multi-Class Object Counting20 Jan 2026
- 2025CoDi -- an exemplar-conditioned diffusion model for low-shot counting23 Dec 2025
- 2025CountZES: Counting via Zero-Shot Exemplar Selection18 Dec 2025
- 2025Counting Through Occlusion: Framework for Open World Amodal Counting16 Nov 2025
38 more
- 2025Generalized-Scale Object Counting with Gradual Query Aggregation11 Nov 2025
- 2025Detect Anything via Next Point Prediction14 Oct 2025
- 2025TasselNetV4: A vision foundation model for cross-scene, cross-scale, and cross-species plant counting25 Sep 2025
- 2025Can Current AI Models Count What We Mean, Not What They See? A Benchmark and Systematic Evaluation17 Sep 2025
- 2025Text-promptable Object Counting via Quantity Awareness Enhancement9 Jul 2025
- 2025SFOOD: A Multimodal Benchmark for Comprehensive Food Attribute Analysis Beyond RGB with Spectral Insights6 Jul 2025
- 2025Open-World Object Counting in Videos18 Jun 2025
- 2025Single Domain Generalization for Few-Shot Counting via Universal Representation Matching22 May 2025
- 2025Expanding Zero-Shot Object Counting with Rich Prompts21 May 2025
- 2025SDVPT: Semantic-Driven Visual Prompt Tuning for Open-World Object Counting24 Apr 2025
- 2025CountingDINO: A Training-free Pipeline for Class-Agnostic Counting using Unsupervised Backbones23 Apr 2025
- 2025Exploring Contextual Attribute Density in Referring Expression Counting16 Mar 2025
- 2025T2ICount: Enhancing Cross-modal Understanding for Zero-Shot Counting28 Feb 2025
- 2025FocalCount: Towards Class-Count Imbalance in Class-Agnostic Counting15 Feb 2025
- 2025A Survey on Class-Agnostic Counting: Advancements from Reference-Based to Open-World Text-Guided Approaches31 Jan 2025
- 2025Localization-Aware Multi-Scale Representation Learning for Repetitive Action Counting13 Jan 2025
- 2024LVLM-COUNT: Enhancing the Counting Ability of Large Vision-Language Models1 Dec 2024
- 2024Counting Stacked Objects28 Nov 2024
- 2024Edge Weight Prediction For Category-Agnostic Pose Estimation25 Nov 2024
- 2024DINO-X: A Unified Vision Model for Open-World Object Detection and Understanding21 Nov 2024
- 2024WARLearn: Weather-Adaptive Representation Learning21 Nov 2024
- 2024Text-guided Zero-Shot Object Localization18 Nov 2024
- 2024A Novel Unified Architecture for Low-Shot Counting by Detection and Segmentation27 Sep 2024
- 2024GCA-SUNet: A Gated Context-Aware Swin-UNet for Exemplar-Free Counting18 Sep 2024
- 2024AllWeatherNet:Unified Image Enhancement for Autonomous Driving under Adverse Weather and Lowlight-conditions3 Sep 2024
- 2024Mutually-Aware Feature Learning for Few-Shot Object Counting19 Aug 2024
- 2024OVR: A Dataset for Open Vocabulary Temporal Repetition Counting in Videos24 Jul 2024
- 2024Zero-shot Object Counting with Good Exemplars6 Jul 2024
- 2024CountGD: Multi-Modal Open-World Counting5 Jul 2024
- 2024CapeX: Category-Agnostic Pose Estimation from Textual Point Explanation1 Jun 2024
- 2024Learning Spatial Similarity Distribution for Few-shot Object Counting20 May 2024
- 2024DAVE -- A Detect-and-Verify Paradigm for Low-Shot Counting25 Apr 2024
- 2024CryoMAE: Few-Shot Cryo-EM Particle Picking with Masked Autoencoders15 Apr 2024
- 2024A Recipe for CAC: Mosaic-based Generalized Loss for Improved Class-Agnostic Counting15 Apr 2024
- 2024Counting Objects in a Robotic Hand9 Apr 2024
- 2024Every Shot Counts: Using Exemplars for Repetition Counting in Videos26 Mar 2024
- 2024T-Rex2: Towards Generic Object Detection via Text-Visual Prompt Synergy21 Mar 2024
- 2024A Fixed-Point Approach to Unified Prompt-Based Counting15 Mar 2024
50 newest of 80 All 80 (JSON)
- 2023CLIP-Count: Towards Text-Guided Zero-Shot Object Countingcited by 82
- 2024LVLM-COUNT: Enhancing the Counting Ability of Large Vision-Language Modelscited by 20
- 2025SDVPT: Semantic-Driven Visual Prompt Tuning for Open-World Object Countingcited by 2
- 2025Text-promptable Object Counting via Quantity Awareness Enhancementcited by 2
- 2026Count Anything at Any Granularitycited by 1
- 2026Count Anything at Any Granularity11 May 2026
- 2025Text-promptable Object Counting via Quantity Awareness Enhancement9 Jul 2025
- 2025SDVPT: Semantic-Driven Visual Prompt Tuning for Open-World Object Counting24 Apr 2025
- 2024LVLM-COUNT: Enhancing the Counting Ability of Large Vision-Language Models1 Dec 2024
- 2023CLIP-Count: Towards Text-Guided Zero-Shot Object Counting12 May 2023
- 2024T-Rex2: Towards Generic Object Detection via Text-Visual Prompt Synergycited by 94
- 2024DINO-X: A Unified Vision Model for Open-World Object Detection and Understandingcited by 85
- 2022CounTR: Transformer-based Generalised Visual Countingcited by 79
- 2025Detect Anything via Next Point Predictioncited by 66
- 2022A Low-Shot Object Counting Network With Iterative Prototype Adaptationcited by 65
- 2024CountGD: Multi-Modal Open-World Countingcited by 59
- 2023Zero-shot Object Countingcited by 57
- 2024DAVE -- A Detect-and-Verify Paradigm for Low-Shot Countingcited by 49
- 2023VLCounter: Text-aware Visual Representation for Zero-Shot Object Countingcited by 45
- 2022Learning to Count Anything: Reference-less Class-agnostic Counting with Weak Supervisioncited by 41
- 2023Open-world Text-specified Object Countingcited by 41
- 2023Point, Segment and Count: A Generalized Framework for Object Countingcited by 39
12 most cited of 72 All 72 (JSON)
- 2026AgriCountDINO: Parameter-Efficient Exemplar-Guided Counting and Localization in Agriculture24 Sep 2026
- 2026DualCount: Structurally Consistent Density and Point Modeling for Zero-Shot Object Counting14 Sep 2026
- 2026Object Counting Across Modalities: Taxonomies, Benchmarks, Applications, and Open Challenges24 Aug 2026
- 2026Focus on Background: Exploring SAM's Potential in Few-shot Medical Image Segmentation with Background-centric Prompting22 Mar 2026
- 2026Plant Taxonomy Meets Plant Counting: A Fine-Grained, Taxonomic Dataset for Counting Hundreds of Plant Species22 Mar 2026
- 2026Automated Counting of Stacked Objects in Industrial Inspection16 Mar 2026
- 2026CountEx: Fine-Grained Counting via Exemplars and Exclusion23 Feb 2026
- 2026OCCAM: Class-Agnostic, Training-Free, Prior-Free and Multi-Class Object Counting20 Jan 2026
- 2025CountZES: Counting via Zero-Shot Exemplar Selection18 Dec 2025
- 2025Counting Through Occlusion: Framework for Open World Amodal Counting16 Nov 2025
- 2025Generalized-Scale Object Counting with Gradual Query Aggregation11 Nov 2025
- 2025Detect Anything via Next Point Prediction14 Oct 2025
12 newest of 72 All 72 (JSON)