atlas

Research map / Detection and segmentation / CNN features

PBECount: Prompt-Before-Extract Paradigm for Class-Agnostic Counting

AAAI 2025 · Detection and segmentation › CNN features · approach: Domain-specific segmentation and detection · 1 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 the prompt-before-extract paradigm and a pure CNN (ResNet34 U-Net) counter, PBECount, that conditions on exemplar probability maps and uses a dynamic threshold, peak-aware MSE loss, and loop optimization to count only exemplar-similar objects.

Problem

Class-agnostic counting in multi-class scenes: existing extract-then-match methods count all objects rather than only those similar to the exemplars, and the extract-and-match ViT paradigm overly relies on the ViT architecture.

Approach

Feed exemplar probability maps concatenated with the query image into a CNN backbone before feature extraction (prompt-before-extract), generalizing extract-and-match as a special case; add a score head that predicts a per-image dynamic threshold for NMS-filtered probability-map detections.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use prompt-before-extract PBECount instead of DAVEClass-agnostic counting · FSC-147 TestMAE: 8.66 -> 7.71; 10.97% reductionHelped
use PBECount instead of CACViTCross-dataset class-agnostic counting · CARPKMAE: 24.46% reductionHelped
add count result normalization (ablation)PBECount · FSC-147MAE: 9.55%Helped
add loop optimization (ablation)PBECount · FSC-147MAE: 9.23%Helped
add exemplar size normalization (ablation)PBECount · FSC-147MAE: 30.27%Helped
use peak-aware MSE loss instead of regular MSE loss (ablation)PBECount · FSC-147MAE: 13.84%Helped
use dynamic threshold instead of a fixed threshold (ablation)PBECount · FSC-147MAE: 16.31%Helped

Surprising findings

Limitations

Experimental setup

Datasets: FSC-147 CARPK

Benchmarks: FSC-147 FSC-147 Mul CARPK

Metrics: MAE RMSE

Baselines: FamNet BMNet+ SAFECount CounTR LOCA CACViT DAVE

Builds on: CACViT extract-and-match CounTR Tracking objects as points (probability map input) DAVE detect-and-verify

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