arXiv:2608.23745eess.IVAug 2026

Manuscript Offprint

arXiv:2608.23745

Multi-Stage Prompt-Guided Feature Modulation for Generalizable Brain Tumor Segmentation

Mohammad Mahdi Danesh Pajouh, Sara Saeedi

Mohammad Mahdi Danesh Pajouh [0009-0009-7039-9233] Sara Saeedi

University of Calgary

Mohammadmahdi.danesh@ucalgary.ca

Abstract. Accurate brain tumor segmentation from magnetic resonance imaging (MRI) is essential for diagnosis, treatment planning, surgical guidance, and disease monitoring. However, developing automated segmentation models that generalize across diverse tumor characteristics, imaging protocols, acquisition sites, and patient populations remains challenging. Variations in tumor morphology and imaging distributions can substantially degrade performance outside the training domain. Consequently, improving the robustness and generalization of deep learning-based segmentation models has become a key objective in medical image analysis.

To improve segmentation robustness, we propose Multi-Stage Dynamic Prompt nnU-Net, a prompt-conditioned extension of nnU-Net. Three independent dynamic prompt modules are inserted into the deepest encoder stages. Each module contains a learnable bank of ten 256-dimensional prompt vectors and uses globally pooled encoder features to generate image-specific prompt representations. These representations are projected into feature-wise scaling ( γ\gamma) and shifting ( β\beta) parameters that modulate encoder feature maps through Feature-wise Linear Modulation (FiLM), enabling adaptive feature conditioning at multiple semantic levels.

Evaluation on the BraTS GOAT validation dataset demonstrated that the proposed Multi-Stage Dynamic Prompt nnU-Net outperformed the baseline nnU-Net across the majority of evaluated metrics and tumor subregions. The proposed model achieved average lesion-wise Dice scores of 76.16% (ET), 80.04% (TC), and 86.42% (WT), compared with 74.38%, 78.14% and 84.01% for the baseline model. The results demonstrate that multi-stage dynamic prompt conditioning improves segmentation accuracy and boundary delineation for brain tumor segmentation.

Keywords: Brain Tumor Segmentation, nnU-Net, Dynamic Prompting, Domain Generalization

1 Introduction

Accurate brain tumor segmentation from magnetic resonance imaging (MRI) is essential for diagnosis, treatment planning, surgical guidance, radiotherapy planning, and longitudinal disease monitoring. In recent years, deep learning methods, particularly U-Net-based architectures, have achieved remarkable performance in automated brain tumor segmentation. Among these approaches, nnU-Net has emerged as a widely adopted

M. M. D. Pajouh and S. Saeedi

baseline due to its self-configuring framework and strong performance across a broad range of medical image segmentation tasks.

Despite these advances, the deployment of segmentation models in real-world clinical scenarios remains challenging due to variations in tumor characteristics and imaging conditions. Brain tumors exhibit substantial differences in size, shape, anatomical location, and appearance, while MRI data can vary across institutions, scanners, acquisition protocols, and patient populations. These variations introduce domain shifts that may significantly reduce model performance when applied to data outside the training distribution. Therefore, developing segmentation models that can adapt to heterogeneous clinical environments remains a major challenge in medical image analysis.

The BraTS challenge has historically provided standardized benchmarks for brain tumor segmentation [1], expanding over time to include distinct tumor populations such as adult gliomas [2, 3], intracranial meningiomas [4], brain metastases [5], and pediatric tumors [6]. In BraTS 2026, these previously separate tumor-specific segmentation challenges are consolidated within the Generalizability Across Tumors (GOAT) task, placing greater emphasis on evaluating algorithmic generalization across diverse clinical domains [7]. GOAT incorporates multiple tumor populations, including adult gliomas, meningiomas, and brain metastases, while validation cohorts introduce additional variability through pediatric tumors and sub-Saharan African glioma populations [8]. This setting reflects realistic sources of distribution shift, including differences in lesion characteristics, demographics, imaging protocols, and the presence or absence of specific tumor subregions. Such evaluations mirror a clinical scenario where segmentation models may encounter previously unseen tumor populations with limited access to additional annotated data.

A potential strategy for addressing such heterogeneity is to enable segmentation networks to dynamically adapt their feature representations according to the characteristics of each input image. Instead of relying on a single fixed representation learned from the training data, adaptive conditioning mechanisms can allow models to adjust their internal responses based on image-specific information. Such approaches are particularly suitable for multi-domain medical imaging problems, where different tumor populations may exhibit distinct imaging patterns and anatomical characteristics.

In this work, we propose Multi-Stage Dynamic Prompt nnU-Net [9], a prompt-conditioned extension of nnU-Net designed to improve robustness across heterogeneous brain tumor segmentation scenarios. Three independent dynamic prompt modules are incorporated into the deepest encoder stages, where they generate image-specific feature modulation parameters through Feature-wise Linear Modulation (FiLM). By adaptively conditioning encoder representations at multiple semantic levels, the proposed framework enables the model to adjust its feature responses according to input-specific characteristics. Experimental evaluation on the BraTS 2026 GOAT validation dataset demonstrates improved performance over the nnU-Net baseline across lesion-wise Dice, Normalized Surface Dice (NSD), and Hausdorff Distance 95 (HD95) metrics for the majority of evaluated tumor subregions.

Figure

Fig. 1. Proposed 3D U-Net architecture. Four MRI modalities are processed through a standard downsampling encoder. Skip connections at the three deepest encoder stages (C = 256, 320, 320) are enhanced using Dynamic Prompt Modules (DPM) prior to concatenation in the upsampling decoder. A deep supervision mechanism computes intermediate losses across all decoder stages to refine multiscale feature learning. The final output delineates three distinct tumor subregions.