HPR-SAM: Hierarchical Probabilistic Representation Learning for Prompt-free SAM-based Medical Image Segmentation

Yingzhen Hu, Yiheng Zhong, Keying Zhu, Zimu Zhang, Zihan Ye, Sifan Song, Jionglong Su, Xiaofeng LiuarXiv 2026

TL;DR

HPR-SAM is a novel framework that advances prompt-free medical image segmentation by replacing rigid, deterministic prompt tokens with a Hierarchical Probabilistic Representation (HPR). By jointly modeling global anatomical priors, intra-structure diversity, and local boundary reliability, it significantly improves the adaptation of the Segment Anything Model (SAM) to clinical images, achieving state-of-the-art performance even in highly challenging few-shot scenarios.

What Problem Does This Paper Address?

The Segment Anything Model (SAM) has revolutionized image segmentation, but its reliance on manual prompts (like point clicks or bounding boxes) makes it impractical for fully automated clinical workflows. To eliminate human intervention, recent "prompt-free" adaptation methods automatically generate prompts from image features.

However, the authors of this paper identify a fundamental bottleneck: existing methods focus heavily on the mechanics of prompt generation while relying on oversimplified, deterministic prototypes to represent anatomy. Medical images are inherently complex, featuring large patient-to-patient variations, irregular organ shapes, and low-contrast boundaries. Compressing this complex information into a single deterministic token fails to capture this uncertainty. As a result, even the most sophisticated prompt generator cannot recover missing anatomical details if the underlying representation is weak.

Fig. 1: Comparison of representative prompt-free SAM frame- works. (a) PGP-SAM employs prototype contextual modu- lation. (b) SurgicalSAM performs class-prototype matching. (c) DAP-SAM adopts prototype memory banks for domain adaptation. (d) HPR-SAM learns hierarchical probabilistic representations through DAR, MAR, and LRR, followed by HPF for adaptive prediction fusion.

Methods

Instead of directly optimizing prompt generation, the proposed Hierarchical Probabilistic Representation (HPR) framework focuses on learning an anatomically complete representation space. It introduces three complementary probabilistic modules to capture different aspects of medical anatomy:

  1. Distributional Anatomical Representation (DAR): Models the global prior of each anatomical target as a Gaussian distribution rather than a single point. This accounts for stable, patient-level semantic characteristics and uncertainty.
  2. Multi-component Anatomical Representation (MAR): Models intra-structure diversity using a Gaussian Mixture Model (GMM). This allows the network to explicitly capture multiple distinct sub-patterns or morphological variations within a single organ (e.g., the elongated shape of the pancreas).
  3. Local Reliability Representation (LRR): Evaluates local token reliability by measuring the mutual likelihood between predicted local token distributions and a running class-wise reference distribution. This dynamically down-weights ambiguous, low-contrast regions and highlights trustworthy local evidence.

Finally, a Hierarchical Prediction Fusion (HPF) module adaptively fuses the dense and sparse prompt predictions generated by these three branches, outputting a single, refined segmentation mask while remaining fully compatible with SAM’s original decoder.

Fig. 3: Overview of the proposed HPR-SAM framework. Given image tokens extracted by the SAM encoder, HPR consists of four modules: (a) Distributional Anatomical Representation (DAR) for global anatomical priors; (b) Multi-component Anatomical Representation (MAR) for intra-structure diversity; (c) Local Reliability Representation (LRR) for local structural reliability; and (d) Hierarchical Prediction Fusion (HPF) for adaptive prediction fusion.

Datasets

The authors evaluated HPR-SAM across three diverse medical image segmentation benchmarks:

  • Synapse CT Dataset: 30 contrast-enhanced abdominal CT scans annotated for 8 abdominal organs (aorta, gallbladder, spleen, left/right kidneys, liver, pancreas, and stomach). Evaluated under a fully supervised setting (18 train, 12 test).
  • Left Atrium (LA) Dataset: 100 gadolinium-enhanced cardiac MRI volumes. Evaluated under a strict few-shot setting using only 4 labeled scans for training.
  • PROMISE12 Dataset: A prostate MRI benchmark containing 50 annotated cases, evaluated under a few-shot setting using only 3 labeled scans for training.

Key Insights and Ideas

  • Shift from Generator to Representation: The core philosophical contribution is that prompt quality is fundamentally bounded by representation expressiveness. Shifting focus from designing complex prompt generators to learning richer, probabilistic representations yields better generalization.
  • The Power of Probabilistic Modeling: Representing anatomy as distributions (and mixtures of distributions) naturally handles the ambiguity of medical imaging. DAR provides stable localization, MAR ensures structural completeness, and LRR sharpens boundaries.
  • Synergy of Components: As shown in the paper's ablation studies, individual modules provide incremental gains, but combining all three leads to a massive performance leap (boosting Mean Dice from a baseline of 74.86% to 85.09% on Synapse).

Key Results

HPR-SAM demonstrated superior performance across both CT and MRI modalities:

  • Synapse Dataset: Achieved a state-of-the-art Mean Dice score of 85.09%, outperforming popular architectures like TransUnet (77.48%) and competing prompt-free SAM methods like H-SAM (84.65%) and PG-SAM (84.79%). It achieved top scores on highly challenging targets like the liver (95.58%) and pancreas (73.10%).
  • Few-Shot Generalization: On the LA dataset (4 training scans), it achieved 84.65% Mean Dice. On the PROMISE12 dataset (3 training scans), it reached 81.26% Mean Dice, significantly outperforming other foundation model adaptation techniques.
Fig. 4: Qualitative comparison of segmentation results produced by different methods on the Synapse dataset, with particular focus on the aorta and pancreas.

Limitations and Future Work

While HPR-SAM leads in region accuracy (Mean Dice), it does not achieve the absolute lowest 95th percentile Hausdorff Distance (HD95) on the Synapse dataset compared to some methods like H-SAM. The authors attribute this to the fact that competing methods often employ explicit, decoder-side boundary refinement techniques.

A promising direction for future work is to integrate explicit structural boundary enhancement mechanisms directly into HPR-SAM's probabilistic representation pipeline to further sharpen edge localization.

Summary updated

BibTeX
@misc{hu2026hpr,
  author = {Yingzhen Hu and Yiheng Zhong and Keying Zhu and Zimu Zhang and Zihan Ye and Sifan Song and Jionglong Su and Xiaofeng Liu},
  title = {{HPR-SAM: Hierarchical Probabilistic Representation Learning for Prompt-free SAM-based Medical Image Segmentation}},
  year = {2026},
  eprint = {2607.06972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.06972},
}
Figure