MedNeXt-B + Blob Loss (Kofler et al., IPMI 2023) — BraTS 2023 GLI (5-fold CV)
3D segmentation of brain tumor regions (NCR, edema, enhancing tumor) on multi-modal MRI
(T1, T1ce, T2, FLAIR), trained on the BraTS 2023 GLI challenge dataset using nnU-Net v2 with the
MedNeXt-B backbone (Roy et al., MICCAI 2023) and the blob loss of Kofler et al. (IPMI 2023,
arXiv:2205.08209) as an auxiliary instance-aware term. This is the arm studied for itself in
the paper "It Detects More, It Scores Less" (Paper 5, its own companion paper below), and it also
serves as the expert G of "The Gate Does Not Choose" (Paper 3), where its checkpoint
initialises the G branch of the MoE V3. Loss : L = L_seg(Dice+CE) + β·L_blob with β = 0.5
(read back from each fold's debug.json), applied at the full-resolution scale only, ε = 1.0.
This repository ships the 5 cross-validation folds (300 epochs each). Honest framing, exactly as published : alone, this is the weakest of the programme's four experts — and its value is what it contributes to combinations.
Per-fold validation Dice (best EMA, foreground-mean)
| Fold | Best EMA Dice | Trained epochs |
|---|---|---|
| fold 0 | 0.9348 | 300 |
| fold 1 | 0.9321 | 300 |
| fold 2 | 0.9368 | 300 |
| fold 3 | 0.9356 | 300 |
| fold 4 | 0.9331 | 300 |
Mean across folds : 0.9345.
Official BraTS-2023 results (lesion-wise, clean regime, n = 1 195 — 1 degenerate case excluded —, 5 disjoint folds)
Paired deltas in lesion-wise Dice against the shared baseline expert (B), published in Paper 3
v0.13 (data/v3_vs_consensus.json) and re-validated at 1e-12 by Paper 5 v1.1
(analysis/blobloss_stats.json), SESOI pre-declared at 0.003 :
- G alone : -0.0038 averaged over the 5 folds — 0/5 folds positive, none above the SESOI. Per-fold : -0.0022 · -0.0056 · -0.0042 · -0.0030 · -0.0038. The blob term does not improve the dense model on the official metric ; this repository publishes that negative result, not a hidden one.
- G as a deterministic veto : the ordered pair
cc_B_Ggains +0.0011 with 4/5 folds positive — the best two-expert veto of the 24 deterministic operators scored in the study, produced by the expert that is worst alone. - G hosted in the learned MoE V3 (its checkpoint initialises the G branch of the mixture) : +0.0057, 5/5 folds positive, above the SESOI on 4 of 5.
The pre-registered verdict (Paper 5 — this arm's own paper)
Paper 5 pre-registered H1 : the blob term should shift predictions toward PRECISION — missed lesions unchanged, false positives down (extrapolated from Kofler's MS cohort). H1 is refuted in both clauses, in opposite directions (official lesion counting, paired, Holm-corrected, raw regime) :
- It detects more : missed lesions 190 → 129 (3/3 regions significant) — the loss buys RECALL, the opposite of what the prediction announced.
- It scores less : false positives 1418 → 2029 (3/3 regions significant) — the precision clause is refuted.
- The official clean decode absorbs almost all of it : 93.2 % of the raw Dice delta and 96.2 % of the raw HD95 delta vanish under BraTS component cleaning (missed 310 → 306, FP 57 → 72). What remains for G alone : -0.0038 lesion-wise Dice, 95 % CI [-0.00648, -0.00103] excluding zero, 1.25× the SESOI in the wrong direction — H2 (neutral Dice) is refuted too.
- Its only positive delta : the ordered consensus veto
cc_B_G(baseline components vetoed by the blob arm), rank 1 of 12 two-expert vetoes (+0.0011, Holm p = 0.156) — below the SESOI, reported as such, never as a win. The veto is asymmetric : the reversed ordercc_G_Bfalls to rank 11 (-0.002306). What survives is the baseline's component corroborated by the blob arm : this model is worth more as a corroborator than as a segmenter.
Corpus : analysis/blobloss_stats.json of the Zenodo deposit (generated 2026-09-30), cross-checked against Paper 3's v3_vs_consensus.json at 1e-12 before this card is written.
Files
fold_{0..4}/model.safetensors— network weights (weights-only, no optimizer state)fold_{0..4}/metadata.json— trainer name, β = 0.5, best EMA Dice, mirroring axesfold_{0..4}/plans.json— nnU-Net architecture plan (patch size 128³, BS 2, MedNeXt-B)fold_{0..4}/dist_head.safetensors— auxiliary SDT head shipped for completeness. Honest note : this arm trains withλ_dist = 0.0, so the head is instantiated but never driven by the loss ; it is not needed for inference.
Usage
import torch
from safetensors.torch import load_file
from huggingface_hub import hf_hub_download
# Pick a fold (0–4), or load all 5 for ensembling
fold = 0
weights_path = hf_hub_download(repo_id="guillaume-cassez/mednext-blobloss-brats2023gli", filename=f"fold_{fold}/model.safetensors")
plans_path = hf_hub_download(repo_id="guillaume-cassez/mednext-blobloss-brats2023gli", filename=f"fold_{fold}/plans.json")
state_dict = load_file(weights_path)
# Build the MedNeXt model with nnU-Net v2 (see https://github.com/MIC-DKFZ/nnUNet)
# and load the state_dict :
# model.load_state_dict(state_dict)
For the full inference pipeline (preprocessing, sliding-window prediction, TTA) you need :
- nnU-Net v2 : https://github.com/MIC-DKFZ/nnUNet
- MedNeXt trainers : https://github.com/MIC-DKFZ/MedNeXt
- The patient should be preprocessed with the same
nnUNetPlans_96GB_mednextplan (plans.json).
At inference the blob term is not part of the network : it is a loss-time auxiliary, and
model.safetensors is a plain MedNeXt-B segmentation model (λ_dist = 0.0 in this arm — the
shipped SDT head is never trained and not used), so test-time cost is identical to the baseline.
Training details
- Backbone : MedNeXt-B (Roy et al., MICCAI 2023)
- Framework : nnU-Net v2, custom trainer
nnUNetTrainerMedNeXtBlobLoss - Auxiliary loss : blob loss (Kofler et al., IPMI 2023), β = 0.5, full-resolution scale only, ε = 1.0
- Input : 4-modality MRI (T1, T1ce, T2, FLAIR), patch 128³, BS 2, BF16
- Hardware : RTX PRO 6000 Blackwell (96 GB)
- Schedule : 300 epochs per fold
- Cross-validation : 5-fold stratified by patient ID over 1 196 patients
- Role in Paper 3 : initialises the G expert branch of the patch-wise MoE V3 (mednext-moe-v3-brats2023gli)
Companion artefacts
- 📄 Companion paper (v1.1, 2026-10-04) : It Detects More, It Scores Less: A Pre-Registered Blob Loss Refutes Its Own Precision Prediction and Pays Only as a Consensus Veto under the Official BraTS-2023 Metrics — Guillaume Cassez, Stanislas Larnier · CC-BY-4.0 · official BraTS-2023 lesion-wise metrics, 5-fold cross-validation, n = 1,195 patients. Concept DOI (always resolves to the latest version) : 10.5281/zenodo.23091253 Version DOI of v1.1 : 10.5281/zenodo.23142692
- 🌐 Paper page : https://guillaume-cassez.fr/imagerie-medicale/brats/blob-loss-kofler/ — blind pre-registration, official measured tables, pinned case figure; EN/FR manuscript PDFs served on the page
- 🏥 Medical imaging hub : https://guillaume-cassez.fr/imagerie-medicale/brats/
- 🧠 Interactive 3D viewer : https://guillaume-cassez.fr/imagerie-medicale/brats/2023-distance-map/viewer/ — 1 196 patients, four experts and the consensus operators side by side with ground truth (WebGL, nothing to install)
- 📊 Per-patient metrics : https://guillaume-cassez.fr/imagerie-medicale/brats/2023-distance-map/ranking/
- 💻 Code repository : https://github.com/guillaume-cassez/brats-blob-loss-kofler — the exact bundle deposited on Zenodo (paper EN+FR, code, result JSONs, figures, tables, dataset provenance), pushed as-is, md5 for md5
- 🤝 Sister models (same programme, same folds, same evaluation code path) :
Related publications (same research programme, BraTS 2023 GLI)
Open-access Zenodo preprints, all evaluated under the official BraTS-2023 lesion-wise metrics:
- Two Models That Agree Beat the Best of Them Alone: Parameter-Free Connected-Component Consensus That Beats the Baseline under the Official BraTS-2023 Metrics (v10) — 10.5281/zenodo.19695263 · code · paper page
- Precision Pays: A Fixed-Weight Boundary Loss Anchors the Precision End of a Recall–Precision Axis and Wins as the Consensus Veto under the Official BraTS-2023 Metrics (v2.6) — 10.5281/zenodo.22906446 · code · paper page
- The Gate Does Not Choose: An Expert-Initialised Mixture-of-Experts Outperforms Training-Free Consensus under the Official BraTS-2023 Metrics (v0.13) — 10.5281/zenodo.22776410 · code · paper page
- It Detects More, It Scores Less: A Pre-Registered Blob Loss Refutes Its Own Precision Prediction and Pays Only as a Consensus Veto under the Official BraTS-2023 Metrics (v1.1) — 10.5281/zenodo.23091253 · code · paper page
License
Weights: MIT. The companion paper is CC-BY-4.0.