Skip to content

Add MIL ablations and the MR report writer - #12

Merged
sezginerr merged 1 commit into
mainfrom
mrdino-ablations
Nov 26, 2026
Merged

sezginerr merged 1 commit into
mainfrom
mrdino-ablations

Conversation

@sezginerr

@sezginerr sezginerr commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

One commit with two parts.

MIL ablations (dino-pretraining/ABLATIONS.md)

  • Training-data size: --train-fraction, nested patient-level subsets (20/40/60/80 %), same validation set.
  • Cross-sequence attention: --fusion cross_sequence, tokens of all sequences at the same atlas position attend to each other before the MIL head (identity at initialisation).
  • Modalities as input channels: --input-channels modality DINO on T1/T2/FLAIR/SWI plus availability planes, mr_dino.export_release for MIL.

MR report writer (report-generation-fora/README.md)

  • Frozen 74-diagnosis MIL visual stream, train-only calibrated plan, evidence descriptions and focus tokens per planned finding.
  • Gemma-4-31B-it LoRA writer (FSDP2), SFT then offline DPO on rule-based pairs from Gemma sentence tags, generation, DFW launcher.

Tests: 42 passed (dino-pretraining), 6 passed (report-generation-fora). GPU end-to-end smoke of the writer passed on 4 x H200.

MIL ablations (dino-pretraining):
- dfw_mil: resumable multi-node online MIL with --train-fraction (nested patient-level
  subsets), --fusion cross_sequence (attention among sequences at each atlas token,
  identity at initialisation) and modality-channel backbones
- mr_dino: --input-channels modality (T1/T2/FLAIR/SWI + availability planes),
  multi-channel DINO dataset, export_release for inference releases
- DFW launchers, ABLATIONS.md, CPU tests

MR report writer (report-generation-fora):
- frozen 74-diagnosis MIL visual stream, train-only Platt/Youden plan tiers,
  evidence descriptions and focus tokens per planned finding
- Gemma-4-31B-it LoRA writer (FSDP2), SFT and offline DPO, Gemma sentence tagging
  and rule-based preference pairs, generation, DFW launcher, CPU tests
@sezginerr sezginerr changed the title MIL ablations: training-data size, cross-sequence attention, modality-channel DINO Add MIL ablations and the MR report writer Nov 26, 2026
@sezginerr
sezginerr merged commit 89c7568 into main Nov 26, 2026
4 checks passed
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@sezginerr
sezginerr deleted the mrdino-ablations branch November 26, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant