Brain-WM: Brain Glioblastoma World Model
June 11, 2026 ยท View on GitHub
This is the official repository for "Brain-WM: Brain Glioblastoma World Model".
๐ Overview
To bridge the gap between prognostic simulation and active clinical planning in glioblastoma (GBM) management, we present Brain-WM, a brain GBM world model that jointly enables next-step treatment planning and future MRI generation through three core innovations:
- Synergistic Feedback Loop: Establishes a dynamic interplay where simulated tumor evolution informs treatment formulation, while treatment intent constrains biologically plausible progression.
- Y-shaped MoT Architecture: Introduces a novel Y-shaped Mixture-of-Transformers (MoT) that structurally disentangles heterogeneous objectives, leveraging cross-task synergies while preventing feature collapse.
- Multi-timepoint Mask Alignment: Anchors latent representations to anatomically grounded tumor structures to ensure progression-aware semantics.
Validated across multi-centric cohorts, Brain-WM provides a robust clinical sandbox for optimizing decision-making and patient healthcare.
๐ Datasets
Brain-WM was systematically validated across multi-centric cohorts:
- Internal Cohort: Aggregated from three public datasets: LUMIERE, MU-Glioma Post, and UCSF-ALPTDG.
- External Validation Cohort: Evaluated on an independent validation cohort from the RHUH-GBM and UCSD-PTGBM datasets.
๐ Data Availability Note:
- Due to data privacy regulations, users must independently request access to these public raw MRI datasets via their respective institutional portals.
- The curated treatment labels organized for our experiments will be fully open-sourced upon the acceptance of this manuscript.
๐ Getting Started
Prerequisites
The codebase is built using Python, relying heavily on torch for deep learning modeling and monai for volumetric medical image array manipulations.
Clone the repository and set up the required environment:
git clone https://github.com/thibault-wch/Brain-GBM-world-model.git
cd Brain-GBM-world-model
# Create and activate a conda environment
conda create -n brainwm python=3.10.18
conda activate brainwm
# Install requirements
pip install -r requirements.txt
โ๏ธ Training Pipeline
Step 1: Configure Pre-trained Weights
- Download Weights: Obtain the pre-trained models for Show-o2 and Wan-VAE 2.1.
- Update Paths: Manually point to your local downloaded weights in the following files:
configs/showo2-1.5b_stage_2_a.yamltrain_stage_two.pyline 172.
- Adjust LoRA Parameters: Tune the LoRA settings (
rankandalpha) within the.yamlconfiguration file to match your specific computational resources and training requirements.
Step 2: Train the Model
Start the Brain-WM training process by executing the shell script below.
bash train_GBM.sh
๐ก Inference
Choose the appropriate script based on your target task.
- Treatment Plan Recommendation
python inference_mmu.py
- Future MRI Generation
python inference_t2i.py
๐ Important Architectural Notes:
The core architectural modifications for Brain-WM are implemented within
models/modeling_showo2_qwen2_5.py.The corresponding spatial segmentor code can be found in
models/segmentor.py.
๐ค Acknowledgments
This work is heavily based on taming-transformers, transformers, accelerate, diffusers, Show-o, and Show-o2. We extend our sincere thanks to all the authors for their outstanding open-source contributions.
If you find this code or our paper useful for your research, please star ๐ this repository and cite our work:
@article{wang2026brain,
title={{Brain-WM}: Brain Glioblastoma World Model},
author={Wang, Chenhui and Zheng, Boyun and Bao, Liuxin and Peng, Zhihao and Woo, Peter YM and Shan, Hongming and Yuan, Yixuan},
journal={arXiv:2603.07562},
year={2026}
}