Madeleine
Pathology slide encoder that pools patch embeddings with multi-head attention, pretrained by aligning stains.
Medical imaging · 64 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Medical imaging
- Parameters
- 5M
- Operations
- 64
- Framework
- PyTorch
- Recurrent
- No
- Published
- ECCV 2024
- Cited by
- 27 (as of 29 October 2026)
- Authors
- Guillaume Jaume, Anurag Vaidya, Andrew Zhang and others
- Source
- GitHub: mahmoodlab/MADELEINE
- License
- CC-BY-NC-ND-4.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18285
- Graph hash
- b321bbc3946a3f296b551552037eb4da6f13d20e3f5e00fa507677cfb8ee5622
- Skeleton hash
- a5c0737a30003d28f1b75c68de41f19decbe0980699f50f7436fcb0f85494821
- Architecture hash
- 114091f4d21d7e87f85e859dfd24498d4ab7f28f8bbdc4609c98eb5fa0d38d86
- Diagram SHA-256
- 606acac530f637859ab799347ee199f7ad5f60ed863c8582c20bf19918182674
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Madeleine is a slide encoder for pathology: a multi-head attention-based multiple instance learning (MIL) network that turns the patch embeddings of a whole-slide image into one slide embedding. The paper's premise is that slides of the same tissue stained with different markers, such as immunohistochemistry, can serve as different views for self-supervised pretraining.
Patches are first embedded with CONCH, the image encoder of a visual-language model pretrained on 1M histology image-caption pairs. The embeddings then pass through a pre-attention module, a multi-head attention module and a post-attention module to give the slide embedding. Madeleine uses four attention heads, which the paper reports gives a consistent gain over a single head. One network encodes every stain, with no stain-specific modules.
Training combines a global objective, a contrastive loss (infoNCE) that aligns the slide embeddings of all stains, with a local objective based on graph optimal transport that matches patch embeddings across stains. The published checkpoint was trained on Acrobat breast samples at 10x magnification. Acrobat is a multi-stain dataset of 4,211 WSIs from 1,153 primary breast cancer cases. The paper evaluates the slide embeddings on 21 downstream tasks using 7,299 WSIs from multiple medical centers.
Key idea. Madeleine pretrains a pathology slide encoder by treating differently stained slides of the same tissue as views and aligning them with a dual global-local cross-stain objective.
- Madeleine
- multistain pretraining
- slide representation learning
- whole-slide image
- computational pathology
- slide encoder
- immunohistochemistry
- cross-stain alignment
- multiple instance learning
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{jaume2024multistainpretrainingsliderepresentation,
title={Multistain Pretraining for Slide Representation Learning in Pathology},
author={Guillaume Jaume and Anurag Vaidya and Andrew Zhang and Andrew H. Song and Richard J. Chen and Sharifa Sahai and Dandan Mo and Emilio Madrigal and Long Phi Le and Faisal Mahmood},
year={2024},
eprint={2408.02859},
archivePrefix={arXiv},
primaryClass={eess.IV},
url={https://arxiv.org/abs/2408.02859},
}