Skip to content
AI.info

Research

Pancakes: Consistent Multi-Protocol Image Segmentation Across Biomedical Domains

Overview Research area: Biomedical image segmentation, medical computer vision, foundation models. Technical level: Advanced — the paper assumes familiarity with convolutional neural networks, distrib

arXiv
2512.13534
Published
2025-12-15
Authors
Marianne Rakic, Siyu Gai, Etienne Chollet, John V. Guttag, Adrian V. Dalca

AI summary

Overview

Research area: Biomedical image segmentation, medical computer vision, foundation models.

Technical level: Advanced — the paper assumes familiarity with convolutional neural networks, distribution modeling, and segmentation metrics, though the core idea is accessible.

Scope: This paper introduces Pancakes, a segmentation framework that automatically produces multiple plausible, semantically consistent label maps for biomedical images from previously unseen domains, without requiring users to specify or prompt a segmentation protocol.

What This Paper Is About

Biomedical images can be meaningfully divided into regions in many different ways — a brain MRI might be segmented by tissue type, by vascular territory, by anatomy, or by pathology — and each of these choices constitutes a different "protocol." Existing segmentation models either lock in a single protocol from training, or force the user to specify the desired regions manually through clicks, boxes, or example segmentations. Pancakes removes that burden: given an unseen image collection, it generates several complete, multi-label segmentations covering different plausible protocols, with each label meaning the same anatomical structure across every image in the collection.

Key Contributions

  1. A new problem formulation. The paper defines multi-protocol, set-consistent segmentation as a distinct task: producing several plausible whole-image partitions for a new domain, without any user-provided protocol specification and without prior knowledge of how many labels exist or what they represent.

  2. A distribution-and-sampling architecture. Pancakes predicts a per-pixel distribution over labels spanning protocols, then samples complete segmentation maps from that distribution using a protocol-index embedding inspired by sinusoidal positional encoding. This lets a single forward pass yield many diverse label maps cheaply.

  3. A set-consistency training loss. The loss penalizes only the best-matching predicted protocol and label for each ground-truth binary mask (a min-Dice formulation), which simultaneously encourages diversity across candidate protocols and semantic coherence of any given label across images in a set.

  4. Strong empirical results at low cost. On seven held-out biomedical datasets, Pancakes outperforms SAM, MedSAM, ScribblePrompt, and UnSAM, frequently by more than 20 Dice points, while using roughly 0.22M parameters versus SAM's 641M and running about 30 times faster.

Main Findings

  • Pancakes beats baselines on all seven held-out datasets. Evaluated with the Set Dice metric (the best-matching predicted label, averaged across subjects in a set), Pancakes outperforms every baseline on QUBIQ Prostate, SCD, WBC, BUID, LIDC-IDRI, DDTI, and STARE, often by more than 20 Dice points.

  • Accuracy alone is competitive; consistency is where it dominates. With set size S=1 (accuracy only, no consistency penalty), Pancakes performs similarly to SAM and outperforms the biomedical baselines. As set size grows, all baselines degrade because their labels stop referring to the same structure across images, while Pancakes holds steady.

  • Existing foundation models are semantically inconsistent across images. The paper shows that models like SAM and UnSAM can fully parcellate a new image, but the same anatomical structure receives different label indices in different images — making population and longitudinal analysis impractical without fragile post-hoc matching.

  • More protocols help; more labels refine. Increasing the number of sampled protocols M generally improves performance, because ambiguous regions that could belong to multiple labels need separate protocols to represent each interpretation. Increasing the maximum label count K tends to produce finer-grained structures.

  • Synthetic data provides a small but consistent boost. Training on both real Megamedical data and 120,000 synthetic Anatomix image-segmentation pairs yields a statistically significant improvement over real data alone at M=16 (p<0.05), though the gain is not significant at M=8.

  • Pancakes is dramatically more efficient. At S=1 it runs in 0.10 seconds versus 3.13 seconds for SAM and 0.54 seconds for UnSAM, with far fewer parameters than any baseline.

  • It serves as a strong initialization for interactive tools. When Pancakes predictions initialize ScribblePrompt, a single click improves results by about 5 Dice points, and the number of interactions needed to reach plateau drops from roughly 5–8 clicks to 3–4.

Methodology in Plain English

Pancakes splits the problem into two stages. First, a UNet-style network looks at an image and outputs a per-pixel set of distribution parameters — essentially, for every pixel, a description of which labels might plausibly apply across different protocols. Second, a small sampling network takes those parameters plus a randomly sampled "protocol ID" and produces a concrete multi-label segmentation map.

The protocol ID is the key trick. It consists of two numbers: how many labels this protocol should use, and which protocol index it is. These numbers are converted into a vector using sinusoidal functions (the same idea behind positional encodings in transformers), then concatenated onto the per-pixel distribution parameters. Changing the sampled protocol ID changes the output map, so one forward pass through the first network can generate many different plausible segmentations.

Training uses a min-Dice loss. For each ground-truth binary mask available in a training dataset, the loss only penalizes whichever predicted protocol-and-label combination matches it best. This does two things at once: it pushes the model to produce at least one label that lines up with each ground truth (encouraging diversity), and because the Dice score is averaged across all images in a set before being minimized, it forces that label to refer to the same region in every image (encouraging consistency). A softmax across labels ensures the output partitions are complete and non-overlapping.

Training data comes from Megamedical, a large collection of diverse biomedical datasets spanning CT, MRI, X-ray, ultrasound, and fundus imaging, supplemented with synthetic images built by applying independent deformations to shared label maps. At inference, the user chooses how many protocols and labels to generate, and the number of images in the set determines the consistency scope.

Why This Matters

Impact on research. Population and longitudinal biomedical studies depend on extracting the same anatomical structures from hundreds or thousands of images, then comparing volumes or shapes. Existing automatic tools cannot guarantee that label 1 means the same thing in every scan, which silently corrupts downstream statistics. Pancakes makes set-consistent segmentation available for domains where no trained model or annotated data exists, potentially accelerating studies that currently stall at the annotation stage.

Real-world applications:

  • Rapid deployment for new protocols. When a research group needs a segmentation protocol with no existing tool, they can select whichever Pancakes output best matches their intended structures rather than training a model from scratch.
  • Exploratory population analysis. Clinical scientists can extract volumes for multiple candidate anatomical regions across a cohort, test correlations with outcomes or genetics, and identify promising regions before committing to a full annotation effort.
  • Annotation bootstrapping. Pancakes predictions reduce the number of interactive clicks needed to reach a target quality, making expert annotation pipelines for new datasets substantially cheaper.
  • Resource-constrained settings. The model's small size and fast inference make it practical on modest hardware, relevant for clinics and labs without large compute budgets.

Industry relevance. Medical imaging software vendors, clinical trial sponsors, and radiology AI companies all face the same bottleneck: each new segmentation task requires bespoke labeled data. A model that proposes multiple plausible protocols out of the box could serve as a general-purpose preprocessing layer, reducing the cost of standing up new analysis pipelines and shortening the path from raw scans to quantitative biomarkers.

Future Directions

  • Extending to modalities and anatomies outside the training distribution. The authors acknowledge that their training collection, while broad, likely does not cover every biomedical image type a user might encounter, and accuracy degrades when targets are far from what the model has seen.

  • Evaluating and mitigating societal bias. The paper explicitly states that the model has not been assessed for demographic or acquisition-related biases, which matters for any tool intended for eventual clinical use.

  • Moving beyond research use toward clinical validation. Pancakes is not intended to replace established clinically validated segmentation protocols; determining when and how its outputs are trustworthy enough for clinical decision-making is an open question.

  • Improving label interpretability and user interaction. Users must currently infer which anatomical structure a given label corresponds to by inspecting the output. Better ways to surface, name, or curate the generated protocols would make the framework more usable for non-specialists.

  • Sharpening the accuracy-consistency tradeoff. Pancakes matches SAM on single-image accuracy but does not exceed it. Closing that gap while retaining set consistency would strengthen the case for replacing existing tools outright.

Target Audience

This paper is most valuable to biomedical imaging researchers and machine learning practitioners working on segmentation, foundation models, or transfer learning to new medical domains. It will also interest clinical scientists running population or longitudinal studies who need consistent structure extraction across cohorts, and medical imaging engineers evaluating whether off-the-shelf foundation models can replace task-specific pipelines. Readers without a background in segmentation or neural network training will find the motivation clear but the methodological details dense.

Authors’ abstract

A single biomedical image can be meaningfully segmented in multiple ways, depending on the desired application. For instance, a brain MRI can be segmented according to tissue types, vascular territories, broad anatomical regions, fine-grained anatomy, or pathology, etc. Existing automatic segmentation models typically either (1) support only a single protocol, the one they were trained on, or (2) require labor-intensive manual prompting to specify the desired segmentation. We introduce Pancakes, a framework that, given a new image from a previously unseen domain, automatically generates multi-label segmentation maps for multiple plausible protocols, while maintaining semantic consistency across related images. Pancakes introduces a new problem formulation that is not currently attainable by existing foundation models. In a series of experiments on seven held-out datasets, we demonstrate that our model can significantly outperform existing foundation models in producing several plausible whole-image segmentations, that are semantically coherent across images.

Read the original paper