Exemplar: Few-Shot Biomedical Segmentation That Refits Exactly in Seconds

arXiv:2609.03080 · cs.CV · Submitted 2026-09-02 · Read on arXiv

cs.CV

Submitted: 2026-09-02

Updated: 2026-10-18

Comments: 5 pages, 3 figures, 2 tables. Submitted to IEEE ISBI 2027. Code, configurations, and the score records behind every reported number: https://github.com/michalprusek/Exemplar

License: http://creativecommons.org/licenses/by/4.0/

The gist: Segmenting a new microscopy dataset usually means training a deep network on its annotations, and training again for every added image.

Abstract

Segmenting a new microscopy dataset usually means training a deep network on its annotations, and training again for every added image. Exemplar solves a segmentation readout in closed form and updates it exactly with each new mask in seconds, as accurately as networks trained for minutes. Its linear readout combines frozen DINOv3 features, read at a magnification chosen from the masks, with classical filter responses at native resolution. Its regularisation and its pixel weighting are chosen exactly by leaving out one annotated image at a time, so none is set aside for validation. On ten biomedical datasets from cells to vessels and filaments, Exemplar is more accurate than every few-shot method that only applies a pretrained model, and on average than nnU-Net trained on the same masks. A fine-tuned Cellpose-SAM, the strongest baseline, is as accurate on average, but each of its fits takes a median of 25 minutes against 8.5 seconds, and it cannot be updated exactly.

Related papers