Manuscript Offprint

arXiv:2609.07460

Latent-to-Latent Flow for Volumetric Stochastic Segmentation

Omar Todd, Sooha Kim, Raghav Mehta, Katherine Mackay, David Bernstein, Alexandra Taylor, Fabio De Sousa Ribeiro, Ben Glocker

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

Omar Todd¹, Sooha Kim², Raghav Mehta¹, Katherine Mackay³, David Bernstein², Alexandra Taylor², Fabio De Sousa Ribeiro¹,†, and Ben Glocker¹,†

¹ Imperial College London, UK

² The Royal Marsden Hospital, London, UK

³ Imperial College Healthcare NHS Trust, London, UK

omar.todd16@imperial.ac.uk

Abstract. Uncertainty arising from inter-observer variability in medical image segmentation plays an important role in developing treatment plans. Research in this area is inhibited by the lack of multiple annotations for large-scale medical datasets, especially for volumetric data, which suffers from additional scaling and computational complexity challenges. Flow matching has emerged as a powerful framework for generative modelling and has also been demonstrated to maintain strong performance when working with latent representations of images. In this work, we introduce a latent-to-latent flow technique for stochastic segmentation of medical volumes via encoded representations of both the image and label space. We evaluate our method on two challenging applications covering delineation uncertainty for radiotherapy planning and multiple organ structure segmentation, improving efficiency up to 14× compared with full resolution models while maintaining clinically relevant performance. Code available at: https://github.com/biomedia-mira/L2L-Flow.

Keywords: Volumetric Segmentation · Uncertainty · Flow Matching

1 Introduction

Medical image segmentation aims to provide accurate contouring of anatomical structures to aid clinicians in developing treatment plans. Segmenting medical images is an inherently ambiguous task due to uncertainty in the exact positions of organ and tissue boundaries. Incorporating uncertainty into the planning process is important for improving patient outcomes [19,12]. Uncertainty in machine learning is broadly categorized into two classes: epistemic, which concerns the model, and aleatoric, which concerns the data [28]. Inter-observer variation (IOV) [20], arising from clinical experts contouring a structure differently, is an important source of aleatoric uncertainty that deterministic segmentation models, such as U-Net [23], are unable to accurately capture. This requires the use of stochastic segmentation models, which learn a probability distribution over the plausible segmentation maps to simulate clinically meaningful uncertainty.

† Joint senior authors.

Todd et al.

While large amounts of medical imaging data are represented as 3D volumes, much of the stochastic segmentation research and benchmarking is developed for 2D datasets [2,6]. Data and label scarcity is a prevalent issue due to the labour-intensive nature of collecting multiple expert annotations, which is exacerbated for 3D volumes. Additionally, probabilistic modelling of volumetric annotations comes with other challenges such as increased computational complexity. This can be an issue for time-sensitive applications such as adaptive radiotherapy planning. Recently, flow matching has emerged as an attractive framework for generative modelling on natural images [15,16,1]; however, its suitability for volumetric stochastic segmentation has not been explored and is the main focus of this work. Our primary contributions are as follows:

(i) We identify performance degradation of Flow-SSNs [7] on high-resolution volumetric medical data, and introduce a bespoke time-shifted noise schedule resulting in significantly improved stability and performance, setting a new benchmark for volumetric stochastic segmentation.

(ii) We introduce the Latent-to-Latent Flow (L2L-Flow), an efficient and scalable model alternative to our time-shifted Flow-SSN, allowing for a wider range of volumetric clinical applications. Notably, L2L-Flow provides a controllable efficiency/performance trade-off, demonstrating up to 14× faster inference compared to Flow-SSNs whilst retaining highly competitive performance.

(iii) We evaluate our flow models on two challenging medical datasets for radiotherapy planning and multi-organ segmentation, demonstrating clinically relevant uncertainty estimation capabilities, and highlighting the potential of generative approaches for volumetric segmentation under label ambiguity.

References (28)

  • Building normalizing flows with stochastic interpolants
  • The lung image database consortium (lidc) and image database resource initiative (idri): a completed reference database of lung nodules on ct scans
  • Phiseg: Capturing uncertainty in medical image segmentation
  • New target volume delineation and ptv strategies to further personalise radiotherapy
  • Neural ordinary differential equations
  • The cityscapes dataset for semantic urban scene understanding
  • Flow stochastic segmentation networks
  • Scaling rectified flow transformers for high-resolution image synthesis
  • Modeling multimodal aleatoric uncertainty in segmentation with mixture of stochastic experts
  • Denoising diffusion probabilistic models
  • nnu-net: a self-configuring method for deep learning-based biomedical image segmentation
  • Quantification of uncertainties in reference and relative dose measurements, dose calculations, and patient setup in modern external beam radiotherapy
  • A probabilistic u-net for segmentation of ambiguous images
  • Labs, B.F., Batifol, S., Blattmann, A., Boesel, F., Consul, S., Diagne, C., Dockhorn, T., English, J., English, Z., Esser, P., et al.: Flux. 1 kontext: Flow matching for in-context image generation and editing in latent space. arXiv preprint arXiv:2506.15742 (2025) (opens arXiv in a new tab)
  • Flow matching for generative modeling
  • Flow straight and fast: Learning to generate and transfer data with rectified flow
  • Cardiacflow: 3d+ t four-chamber cardiac shape completion and generation via flow matching
  • 1621 assessment of a novel approach for validating auto-contouring systems with an expert predicted acceptability range
  • A radiology-focused review of predictive uncertainty for ai interpretability in computer-assisted segmentation
  • Intra-and interobserver variability in ct measurements in oncology
  • Stochastic segmentation networks: Modelling spatially correlated aleatoric uncertainty
  • Calibration and uncertainty for multirater volume assessment in multiorgan segmentation (curvas) challenge results (opens arXiv in a new tab)
  • U-net: Convolutional networks for biomedical image segmentation
  • Denoising Diffusion Implicit Models
  • Delineation uncertainty from clinician ranges in cervical cancer radiotherapy planning
  • Diffusion models for implicit image segmentation ensembles
  • Stochastic segmentation with conditional categorical diffusion models
  • A review of uncertainty estimation and its application in medical imaging