Few-Shot Pattern Detection via Template Matching and Regression
Not on the map. Why?
Abstract (arXiv)
We address the problem of few-shot pattern detection, which aims to detect all instances of a given pattern, typically represented by a few exemplars, from an input image. Although similar problems have been studied in few-shot object counting and detection (FSCD), previous methods and their benchmarks have narrowed patterns of interest to object categories and often fail to localize non-object patterns. In this work, we propose a simple yet effective detector based on template matching and regression, dubbed TMR. While previous FSCD methods typically represent target exemplars as spatially collapsed prototypes and lose structural information, we revisit classic template matching and regression. It effectively preserves and leverages the spatial layout of exemplars through a minimalistic structure with a small number of learnable convolutional or projection layers on top of a frozen backbone We also introduce a new dataset, dubbed RPINE, which covers a wider range of patterns than existing object-centric datasets. Our method outperforms the state-of-the-art methods on the three benchmarks, RPINE, FSCD-147, and FSCD-LVIS, and demonstrates strong generalization in cross-dataset evaluation.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 35 of its 73 references that are in the map. First posted on arXiv 25 Aug 2025.
Builds on
35 of 73 references.
References · 35
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2023Segment Anythingcited by 8,234
- 2017Mask R-CNNcited by 7,277
- 2016Feature Pyramid Networks for Object Detectioncited by 5,036
- 2015You Only Look Once: Unified, Real-Time Object Detectioncited by 4,852
- 2017Prototypical Networks for Few-shot Learningcited by 3,015
- 2015Fast R-CNNcited by 2,933
- 2019FCOS: Fully Convolutional One-Stage Object Detectioncited by 1,577
- 2019Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regressioncited by 1,368
- 2019LVIS: A Dataset for Large Vocabulary Instance Segmentationcited by 1,217
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 724
23 more
- 2016Steerable CNNscited by 305
- 2020Frustratingly Simple Few-Shot Object Detectioncited by 282
- 2018Few-shot Object Detection via Feature Reweightingcited by 265
- 2019Few-Shot Object Detection with Attention-RPN and Multi-Relation Detectorcited by 206
- 2023Teaching CLIP to Count to Tencited by 198
- 2015Large-scale Classification of Fine-Art Paintings: Learning The Right Metric on The Right Featurecited by 182
- 2019Meta R-CNN : Towards General Solver for Instance-level Few-shot Learningcited by 182
- 2021FSCE: Few-Shot Object Detection via Contrastive Proposal Encodingcited by 168
- 2021Learning To Count Everythingcited by 150
- 2020Few-Shot Object Detection and Viewpoint Estimation for Objects in the Wildcited by 142
- 2021Generalized Few-Shot Object Detection without Forgettingcited by 88
- 2018Class-Agnostic Countingcited by 85
- 2022Few-Shot Object Detection with Fully Cross-Transformercited by 64
- 2021Meta Faster R-CNN: Towards Accurate Few-Shot Object Detection with Attentive Feature Alignmentcited by 57
- 2021Query Adaptive Few-Shot Object Detection with Heterogeneous Graph Convolutional Networkscited by 55
- 2022Few-shot Object Counting and Detectioncited by 55
- 2024DAVE -- A Detect-and-Verify Paradigm for Low-Shot Countingcited by 49
- 2023Point, Segment and Count: A Generalized Framework for Object Countingcited by 39
- 2018Adding New Tasks to a Single Network with Weight Transformations using Binary Maskscited by 21
- 2024A Novel Unified Architecture for Low-Shot Counting by Detection and Segmentationcited by 21
- 2023Can SAM Count Anything? An Empirical Study on SAM Countingcited by 18
- 2021Object Counting: You Only Need to Look at Onecited by 13
- 2023NIFF: Alleviating Forgetting in Generalized Few-Shot Object Detection via Neural Instance Feature Forgingcited by 10
Built on by
Citing papers per year: 2026: 1.
1 paper.