BrainDiff / README.md
kkpatel25's picture
Upload folder using huggingface_hub
975cca0 verified
|
Raw History Blame Contribute Delete
1.68 kB
metadata
license: mit
tags:
  - medical-imaging
  - brain-mri
  - radiology-report-generation
  - longitudinal

BrainDiff

Weights for Longitudinal Report Generation for Multimodal Brain MRI: A Change-Focused Metric and Vision-Language System (arXiv:2609.00593). Code: github.com/jhuldr/BrainDiff.

Input a prior and current brain MRI study (T1w, T1ce, T2w, FLAIR) and the prior report, and the model produces a report describing what changed.

braindiff.pt holds 429 tensors, 114,939,904 parameters (fp32): Encoder blocks 10-12 and final norm (Stage 1-D, epoch 5), the perceiver connector, the modality embedding and the Qwen3-14B decoder LoRA (status-first Stage 2, epoch 20). The NeuroVFM backbone and the Qwen3-14B base are not included. They come from NeuroVFM's gated repositories. You must accept their terms first.

pip install -e braindiff                  # from the GitHub repository
huggingface-cli login
python braindiff/scripts/fetch_weights.py
torchrun --standalone --nproc_per_node=4 -m braindiff.eval.generate --ckpt <braindiff.pt> \
    --split test --repetition_penalty 1.1 --out out/gen_test.jsonl

Intended use

A research artifact. Not a medical device, not validated for clinical use, and not to be used to inform patient care.

Citation

@article{patel2026braindiff,
  title   = {Longitudinal Report Generation for Multimodal Brain MRI: A Change-Focused Metric and Vision-Language System},
  author  = {Patel, Krish and Liu, Peirong},
  journal = {arXiv preprint arXiv:2609.00593},
  year    = {2026},
  doi     = {10.48550/arXiv.2609.00593}
}