BrainDiff
Brain MRI change report generation
2 min readupdated
A research multimodal model that compares previous and current brain MRI scans along with a past report, generating a text summary of what has changed. It is powered by the NeuroVFM visual backbone and the Qwen3-14B language decoder, augmented with trained encoder blocks, a connector, and a LoRA (a small lightweight add-on to the base model). The solution is designed for longitudinal medical image analysis tasks and will be useful for computer vision and medical AI analytics researchers.
Key features
- Accepts multimodal MRI data in T1w, T1ce, T2w, and FLAIR modalities across two time points, alongside the text of the previous report.
- The weights file
braindiff.ptcontains 429 tensors (114.9 million parameters in fp32 format): encoder blocks 10-12 with final normalization, a Perceiver connector, modality embeddings, and LoRA for Qwen3-14B. - The base NeuroVFM and Qwen3-14B models are not included in the repository and must be downloaded separately after accepting the access terms for the restricted NeuroVFM repositories.
What you can do
- Use it to automatically generate comparative descriptions of structural dynamics from paired brain MRI scans within research pipelines.
- Reproduce experiments and evaluate medical report generation quality on a test split using the scripts provided in the project repository.
Example
pip install -e braindiff
huggingface-cli login
python braindiff/scripts/fetch_weights.py
torchrun --standalone --nproc_per_node=4 -m braindiff.eval.generate --ckpt \
--split test --repetition_penalty 1.1 --out out/gen_test.jsonlRead more
DetailsTraining: encoder blocks from Stage 1-D (epoch 5) and decoder LoRA from Stage 2 in status-first mode (epoch 20).
Hardware: the example run utilizes distributed inference via
torchrun across 4 GPUs.Limitations: strictly a research artifact, not a medical device, and not intended for clinical diagnosis or patient treatment.










Comments