CDPM-Align: Multi-Scale Guidance-Aligned Diffusion Pretraining for Robust Few-Shot Anatomical Landmark Detection

Roberto Di Via, Irina Voiculescu, Francesca Odone, Vito Paolo PastorearXiv 2026

TL;DR

CDPM-align introduces a conditional diffusion pretraining strategy with a multi-scale guidance alignment loss to drastically improve few-shot anatomical landmark detection in medical images. By enforcing structural consistency in the classifier-free guidance signal across different noise levels, the model learns robust representations from small, highly mixed datasets. This approach significantly boosts both localization accuracy and uncertainty calibration when fine-tuned on as few as 10 to 25 annotated images.

What Problem Does This Paper Address?

In medical imaging, automatically locating anatomical landmarks (like specific points on a skull or chest X-ray) is critical for treatment planning and diagnostics. While modern deep learning models achieve high accuracy, clinical deployment demands reliability and robustness. A trustworthy model must not only output a coordinate but also provide a sharply focused probability heatmap, signaling low spatial uncertainty.

Acquiring expert annotations to train these models is incredibly expensive and time-consuming. However, training models in "few-shot" regimes (with very few annotated images) usually leads to poor generalization. Standard self-supervised learning (SSL) methods (like DINO or SimCLR) tend to fail when pretrained on small, heterogeneous datasets (e.g., a mix of chests, hands, and skulls) because they optimize for global image identity rather than fine-grained local geometry. Unconditional diffusion models help, but without explicit conditioning, they conflate different anatomical structures.

Methods

The authors propose CDPM-align, a two-stage framework consisting of conditional generative pretraining followed by downstream few-shot fine-tuning.

  1. Conditional Diffusion Probabilistic Model (CDPM): The backbone is a UNet trained with classifier-free guidance (CFG), where the dataset index (e.g., Chest vs. Hand vs. Skull) serves as the class label. This forces the model to learn dataset-specific structural representations.
  2. Multi-Scale Guidance Alignment: This is the core novelty. During the final 10% of pretraining iterations, the authors introduce an alignment loss. For any given image, they sample two different diffusion timesteps ($t_1, t_2$) and compute the guidance difference ($\Delta h = h_{cond} - h_{uncond}$) across four distinct layers of the UNet hierarchy. This $\Delta h$ isolates the dataset-specific anatomy. By forcing the direction of $\Delta h$ to be consistent across different noise levels using a cosine dissimilarity loss, the UNet encoder learns representations invariant to noise while preserving spatial fidelity.
Fig. 2. Overview of CDPM-align. Left: Two-phase multi-dataset pretraining. Standard conditional diffusion training is followed by an alignment phase (final 10% of iterations) enforcing directional consistency of the guidance signal across timesteps at four UNet scales. Right: End-to-end few-shot fine-tuning via pixel-wise classification.
  1. Downstream Landmark Detection: The pretrained UNet is fine-tuned end-to-end with a pixel-wise classification head using only 10 or 25 annotated images. During inference, the unconditional class token ($c=0$) is used, decoupling the model from its pretraining labels and allowing it to generalize safely.

Datasets

The authors evaluate their method using a pooled, unlabeled pretraining corpus of just 988 images spanning three highly heterogeneous public benchmarks:

  • Shenzhen: 279 anteroposterior chest radiographs (6 landmarks).
  • ISBI2015: 400 lateral cephalograms/skulls (19 landmarks).
  • Digital Hand Atlas (DHA): 910 hand radiographs (37 landmarks).

Key Insights and Ideas

  • Guidance as a Structural Prior: Instead of using raw diffusion features, CDPM-align specifically leverages the difference between the conditional and unconditional passes ($\Delta h$). This explicitly captures the underlying geometric structure of the anatomy.
  • Noise-Invariant Regularization: Forcing the structural descriptor ($\Delta h$) to point in the same direction at different noise levels prevents the model from losing fine-grained geometric features during the noisy diffusion process.
  • Defeating SSL Collapse: While discriminative SSL methods collapse when forced to learn from highly distinct anatomical regions simultaneously, generative diffusion pretraining maintains stable, localized structural awareness.
  • The Accuracy vs. Uncertainty Trade-off: Through ablation studies on the alignment weight ($\lambda$), the authors found that over-constraining the guidance ($\lambda=10$) minimizes uncertainty but restricts the flexibility needed for precise sub-millimetric localization. Setting $\lambda=5$ provides the optimal balance.

Key Results

CDPM-align consistently outperforms supervised, self-supervised, and state-of-the-art universal detection baselines across all datasets in 10-shot and 25-shot scenarios.

  • Superior Accuracy: On the DHA dataset (10-shot), CDPM-align improves the Mean Radial Error (MRE) by 42% over the next best baseline (2.51 mm vs. 4.34 mm). At 25-shot on ISBI2015, it reaches an MRE of 1.54 mm, safely crossing the 2 mm clinical success threshold.
  • Sharper Uncertainty Calibration: The model yields significantly lower Expected Radial Error (ERE). Visually, CDPM-align produces tight, unimodal heatmaps centered precisely on the landmarks, whereas baseline methods yield highly diffuse, uncertain blobs.
Fig. 1. Predicted heatmap overlays at 10-shot across datasets (rows) and selected meth- ods (columns). Our CDPM-align (rightmost) yields consistently lower uncertainty.
  • Data Efficiency: Remarkably, despite being pretrained on only 988 images, CDPM-align matches or outperforms a standard CDPM trained on the massive NIH ChestX-ray14 dataset (~112k images) when tested on out-of-domain tasks like DHA and ISBI2015, proving that targeted in-domain alignment compensates for a smaller data scale.

Limitations and Future Work

  • Dimension Constraints: The current evaluation is strictly limited to 2D X-ray images. Extending this framework to volumetric data (like 3D CT or MRI scans) remains an open challenge.
  • Computational Overhead: Computing four forward passes during the alignment phase increases computational costs. However, the authors mitigate this by only activating the alignment loss during the final 10% of training, keeping the overall overhead down to a manageable 1.3× compared to naive training. Future work will focus on further optimizing this efficiency.

Summary updated

BibTeX
@misc{via2026cdpm,
  author = {Roberto Di Via and Irina Voiculescu and Francesca Odone and Vito Paolo Pastore},
  title = {{CDPM-Align: Multi-Scale Guidance-Aligned Diffusion Pretraining for Robust Few-Shot Anatomical Landmark Detection}},
  year = {2026},
  eprint = {2606.04898},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.04898},
}
Figure