CVAIAug 25, 2025

Few-Shot Pattern Detection via Template Matching and Regression

arXiv:2508.17636v11 citationsh-index: 9
Originality Incremental advance
AI Analysis

This addresses the challenge of detecting non-object patterns in few-shot scenarios, which is incremental as it builds on existing few-shot object detection methods.

The paper tackles the problem of few-shot pattern detection, which localizes patterns from images using few exemplars, by proposing a detector based on template matching and regression that outperforms state-of-the-art methods on benchmarks like RPINE, FSCD-147, and FSCD-LVIS.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes