mlsanityData to 7 Oct 2026

Represent, Compare, and Learn: A Similarity-Aware Framework for Class-Agnostic Counting

arXiv 2203.08354 ↗First posted 16 Mar 2022cs.CVcited by 80

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  5. 2020End-to-End Object Detection with Transformerscited by 7,384
  6. 2017Squeeze-and-Excitation Networkscited by 4,763
  7. 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
  8. 2018CosFace: Large Margin Cosine Loss for Deep Face Recognitioncited by 968
  9. 2016Fully-Convolutional Siamese Networks for Object Trackingcited by 566
  10. 2021Transformer Trackingcited by 412
  11. 2020Circle Loss: A Unified Perspective of Pair Similarity Optimizationcited by 402
  12. 2020A Metric Learning Reality Checkcited by 317
12 more
  1. 2019Bayesian Loss for Crowd Count Estimation with Point Supervisioncited by 162
  2. 2017Drone-based Object Counting by Spatially Regularized Regional Proposal Networkcited by 155
  3. 2021Rethinking Counting and Localization in Crowds:A Purely Point-Based Frameworkcited by 152
  4. 2021Learning To Count Everythingcited by 149
  5. 2020Distribution Matching for Crowd Countingcited by 143
  6. 2019Indices Matter: Learning to Index for Deep Image Mattingcited by 93
  7. 2018Class-Agnostic Countingcited by 85
  8. 2020Localization in the Crowd with Topological Constraintscited by 68
  9. 2019From Open Set to Closed Set: Counting Objects by Spatial Divide-and-Conquercited by 48
  10. 2019Signal-to-Noise Ratio: A Robust Distance Metric for Deep Metric Learningcited by 32
  11. 2020Weighing Counts: Sequential Crowd Counting by Reinforcement Learningcited by 30
  12. 2019Neural Similarity Learningcited by 13

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 5; 2023: 20; 2024: 27; 2025: 19; 2026: 9.

80 papers.

Sort:

By area:

  1. 2024T-Rex2: Towards Generic Object Detection via Text-Visual Prompt Synergycited by 94
  2. 2024DINO-X: A Unified Vision Model for Open-World Object Detection and Understandingcited by 85
  3. 2023CLIP-Count: Towards Text-Guided Zero-Shot Object Countingcited by 82
  4. 2022CounTR: Transformer-based Generalised Visual Countingcited by 79
  5. 2025Detect Anything via Next Point Predictioncited by 66
  6. 2022A Low-Shot Object Counting Network With Iterative Prototype Adaptationcited by 65
  7. 2024CountGD: Multi-Modal Open-World Countingcited by 59
  8. 2023Zero-shot Object Countingcited by 57
  9. 2024DAVE -- A Detect-and-Verify Paradigm for Low-Shot Countingcited by 49
  10. 2023VLCounter: Text-aware Visual Representation for Zero-Shot Object Countingcited by 45
  11. 2022Learning to Count Anything: Reference-less Class-agnostic Counting with Weak Supervisioncited by 41
  12. 2023Open-world Text-specified Object Countingcited by 41
38 more
  1. 2023Point, Segment and Count: A Generalized Framework for Object Countingcited by 39
  2. 2023Training-free Object Counting with Promptscited by 34
  3. 2023Vision Transformer Off-the-Shelf: A Surprising Baseline for Few-Shot Class-Agnostic Countingcited by 25
  4. 2023Counting Guidance for High Fidelity Text-to-Image Synthesiscited by 24
  5. 2024Zero-shot Object Counting with Good Exemplarscited by 21
  6. 2024A Novel Unified Architecture for Low-Shot Counting by Detection and Segmentationcited by 21
  7. 2023T-Rex: Counting by Visual Promptingcited by 20
  8. 2024LVLM-COUNT: Enhancing the Counting Ability of Large Vision-Language Modelscited by 20
  9. 2025T2ICount: Enhancing Cross-modal Understanding for Zero-Shot Countingcited by 19
  10. 2023Can SAM Count Anything? An Empirical Study on SAM Countingcited by 18
  11. 2024OmniCount: Multi-label Object Counting with Semantic-Geometric Priorscited by 16
  12. 2023ABC Easy as 123: A Blind Counter for Exemplar-Free Multi-Class Class-agnostic Countingcited by 13
  13. 2024AFreeCA: Annotation-Free Counting for Allcited by 12
  14. 2025Open-World Object Counting in Videoscited by 11
  15. 2024A Fixed-Point Approach to Unified Prompt-Based Countingcited by 10
  16. 2024OVR: A Dataset for Open Vocabulary Temporal Repetition Counting in Videoscited by 10
  17. 2025Exploring Contextual Attribute Density in Referring Expression Countingcited by 10
  18. 2023Zero-Shot Object Counting with Language-Vision Modelscited by 9
  19. 2024CapeX: Category-Agnostic Pose Estimation from Textual Point Explanationcited by 9
  20. 2023Interactive Class-Agnostic Object Countingcited by 8
  21. 2024Every Shot Counts: Using Exemplars for Repetition Counting in Videoscited by 8
  22. 2024Counting Stacked Objectscited by 8
  23. 2025A Survey on Class-Agnostic Counting: Advancements from Reference-Based to Open-World Text-Guided Approachescited by 7
  24. 2025Can Current AI Models Count What We Mean, Not What They See? A Benchmark and Systematic Evaluationcited by 7
  25. 2023Semantic Generative Augmentations for Few-Shot Countingcited by 6
  26. 2025CountingDINO: A Training-free Pipeline for Class-Agnostic Counting using Unsupervised Backbonescited by 6
  27. 2025Single Domain Generalization for Few-Shot Counting via Universal Representation Matchingcited by 6
  28. 2023SimpSON: Simplifying Photo Cleanup with Single-Click Distracting Object Segmentation Networkcited by 5
  29. 2023SQLNet: Scale-Modulated Query and Localization Network for Few-Shot Class-Agnostic Countingcited by 5
  30. 2024Learning Spatial Similarity Distribution for Few-shot Object Countingcited by 5
  31. 2025Generalized-Scale Object Counting with Gradual Query Aggregationcited by 5
  32. 2023GCNet: Probing Self-Similarity Learning for Generalized Counting Networkcited by 4
  33. 2023Count What You Want: Exemplar Identification and Few-shot Counting of Human Actions in the Wildcited by 3
  34. 2024A Simple-but-effective Baseline for Training-free Class-Agnostic Countingcited by 3
  35. 2024CryoMAE: Few-Shot Cryo-EM Particle Picking with Masked Autoencoderscited by 3
  36. 2024TFCounter:Polishing Gems for Training-Free Object Countingcited by 2
  37. 2024Mutually-Aware Feature Learning for Few-Shot Object Countingcited by 2
  38. 2025SDVPT: Semantic-Driven Visual Prompt Tuning for Open-World Object Countingcited by 2

50 most cited of 80 All 80 (JSON)