Manuscript Offprint

arXiv:2609.03080

Exemplar: Classical Priors Complement Frozen Features for Few-Shot Microscopy Segmentation at Native Resolution

Michal Průšek, Adam Novozámský, Filip Šroubek

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Segmenting a new biomedical dataset usually means a domain-specific model trained on substantial annotation, or a foundation model steered at inference time. We present Exemplar, a few-shot segmenter that fuses a frozen DINOv3 backbone with a fixed bank of classical native-resolution filter responses in one lightweight head, fitted from the support masks alone. In the few-mask, native-resolution regime, classical priors and frozen self-supervised features are complementary: fused in one head, a single fixed configuration spans eleven biomedical imaging datasets. Under the same head, the classical bank alone reaches 0.693 on the eleven-dataset panel, scored by foreground intersection-over-union or centreline Dice, and the frozen features alone 0.672; the bank leads on seven of the eleven and the features on the rest, and fused they reach 0.782. Against five forward-pass few-shot methods, Exemplar leads in 54 of 55 method-dataset comparisons, 52 of them significant after Holm correction. From a single annotated mask it reaches 0.703 on the same panel, against 0.682 for a from-scratch nnU-Net trained on that same mask. At eight masks nnU-Net overtakes it on the panel mean, chiefly on centreline agreement, but takes 16–77× longer to fit.

Index Terms— few-shot segmentation, annotation efficiency, microscopy, frozen foundation features, classical filter banks

1. INTRODUCTION

A biologist segmenting structures in a new microscopy dataset faces a practical trade-off. Cellular specialists such as Cellpose [1, 2], StarDist [3], and micro-SAM [4] produce excellent instance masks for cell-like objects, increasingly robustly across acquisition settings, but their object representations do not extend to vessels, membranes, or filaments, and retargeting them means further annotation. Promptable foundation models such as the Segment Anything family [5] are more general, but they are steered at inference time rather than configured from a small labelled support set to capture a dataset-specific segmentation target. Interactive pixel classifiers such as ilastik [6] provide a complementary low-annotation workflow: they fit a random forest over hand-designed image features from a few painted labels, but those features carry none of the semantics learned by pretrained networks. Interactive microscopy tools now offer pretrained embeddings in place of, or interchangeably with, hand-designed banks as the feature source for a shallow classifier [7, 8]; concatenating the two is known to help [9]. Where the two families have been compared directly for microscopy pixel classification, the learned features have been reported to be the stronger of the two [10]. Those comparisons used sparse labels read by random forests and attentive probes; we

ask what the balance becomes when a small head is instead fitted at native resolution from a handful of dense masks.

Few-shot segmentation offers a middle path compatible with how microscopy datasets are often annotated. The user provides a small support set of annotated images, and the model segments the remaining, visually similar images from the same dataset. The task is personalisation to a dataset-specific target rather than generalisation to an unseen class, and is naturally measured by annotation efficiency. Existing approaches span feature correspondence [11], painting-based generalists [12], and universal medical few-shot networks [13, 14], recently extended across medical tasks [15], though the latter works on volumes and is evaluated only on radiology. Their reported evaluations do not establish a single few-shot segmenter across the morphologies considered here.

This paper introduces Exemplar, a few-shot biomedical segmenter built around one measurement. In the few-mask, native-resolution regime, classical priors and frozen self-supervised features are complementary: fused in one head, a single fixed configuration spans eleven biomedical imaging datasets. First, under one head fitted from dense masks the classical bank alone outscores the frozen DINOv3 features alone on seven of the eleven datasets, all seven significant, while the features lead significantly on two of the other four, reversing the balance those comparisons report [10]. Second, the 0.36M-parameter head fitted on a single mask outscores INSID3 [11], a training-free read-out of the same frozen DINOv3, given sixteen masks: 0.701 against 0.433 on the ten-dataset mean. Third, we train nnU-Net from scratch at a matched annotation budget, the baseline that few-shot comparisons rarely include, and report both where fitting wins and where it does not. The output is a semantic foreground map.

References (33)