Self-supervised pretraining enables transferable representations for medical imaging, yet most CT encoders remain biased toward coarse semantic understanding, limiting their sensitivity to fine-grained anatomical structures such as vessels or small tumors. In this paper, we introduce Biased Masked Image Modeling (B-MIM), a modification of the iBOT objective that stochastically reduces global semantic alignment to prioritize local patch reconstruction. This bias encourages the encoder to capture high-frequency morphological details and structural continuity.
We curate a multi-institutional CT abdominal dataset of 9,955 filtered studies from 17 public sources and pretrain a 3D Swin Transformer backbone using B-MIM. Across inter-dataset experiments on liver vessel segmentation, the proposed encoder improves topological fidelity (clDice) and achieves competitive Dice scores in tumor segmentation, compared to fully fine-tuned baselines, despite updating only a fraction of the parameters. Our results suggest that reducing global semantic pressure during pretraining enhances generalization to intricate anatomical structures.
Self-supervised encoders have transformed medical imaging, but the ones available for CT (VoCo, or the backbones of tools such as TotalSegmentator) are trained to understand organs. They capture coarse, global semantics and lose the high-frequency detail of thin vessels and small tumours.
Those details are exactly what clinicians need: the liver's vascular tree defines how a resection is planned, and a small lesion found early changes a cancer treatment. B-MIM is a CT encoder designed for them, and evaluated the hard way: trained on one dataset and tested on hospitals it never saw.
B-MIM starts from iBOT, a teacher–student self-distillation framework with two losses: a global loss that aligns the [CLS] tokens of two views of a scan, and a masked-image loss (MIM) that asks the student to reconstruct the features of masked patches.
Our change is small and deliberate. At each training step the global loss is kept only with probability p:L = 𝟙p · LCLS + LMIM, 𝟙p ~ Bernoulli(p)
With p = 0.3, global supervision disappears in most batches and the encoder must rely on local reconstruction. Unlike simply down-weighting the loss, removing it intermittently breaks the co-adaptation between global and local objectives, and the encoder learns the continuity of thin, tubular structures.
We gathered 13,784 abdominal CTs from 17 public sources (DICOM and NIfTI) and filtered them with one protocol: adult patients only, no localizers or inconsistent orientations, at least 20 slices after cropping, and liver plus at least one kidney present. Every volume was reoriented to LPS and cropped automatically from the top of the liver to L4 or the kidneys. TotalSegmentator is used only to find that region; no vessel or tumour label is ever seen during pretraining.
| Stream | Studies | 2D slices | Largest sources |
|---|---|---|---|
| DICOM | 5,613 | 1,529,954 | RSNA 2023 Abdominal (3,147), CT Colonography (831), TCGA-KIRC (362) |
| NIfTI | 4,342 | 463,240 | AMOS (2,338), AbdomenCT-1K (1,061), KiTS23 (480) |
| Total | 9,955 | 1,993,194 | 17 public sources |
Downstream models are trained only on CRLM (197 studies, 5-fold cross-validation) and tested, without any retraining, on IRCAD (20 studies) and MSD (303 studies), which differ in scanners, protocols and anatomy. We compare three ways of plugging the encoder into the decoder:
Vessels benefit most. Under the shift from CRLM to IRCAD, B-MIM-C raises clDice, the metric that rewards connected vessel trees, from 0.491 to 0.582 (+0.091, +18.5% relative), a much larger gain than in Dice. The lightest variant, B-MIM-A, matches the fully trained baseline while updating 16k parameters.

| Model | Vessels CRLM Dice | clDice | IRCAD Dice | clDice | MSD Dice | clDice | Tumours CRLM | IRCAD | MSD |
|---|---|---|---|---|---|---|---|---|---|
| Swin-nnUNet | 0.746 | 0.780 | 0.400 | 0.491 | 0.598 | 0.624 | 0.646 | 0.572 | 0.374 |
| VoCo-SSL | 0.616 | 0.645 | 0.382 | 0.437 | 0.488 | 0.480 | 0.650 | 0.369 | 0.288 |
| VoComni | 0.632 | 0.662 | 0.455 | 0.494 | 0.572 | 0.588 | 0.666 | 0.500 | 0.423 |
| B-MIM-A | 0.744 | 0.777 | 0.413 | 0.500 | 0.611 | 0.631 | 0.631 | 0.497 | 0.357 |
| B-MIM-B | 0.745 | 0.780 | 0.401 | 0.490 | 0.604 | 0.630 | 0.651 | 0.578 | 0.395 |
| B-MIM-C | 0.746 | 0.779 | 0.492 | 0.582 | 0.567 | 0.595 | 0.637 | 0.506 | 0.269 |
Tumours are harder: their size, shape and contrast vary far more between patients than the tubular geometry of vessels. Full fine-tuning (B-MIM-B) gives the best tumour Dice on IRCAD.
@inproceedings{gonzalez2026bmim,
title = {{B-MIM}: Biased Masked Image Modeling for Generalizable Segmentation of Fine-Grained Anatomical Structures},
author = {Gonz{\'a}lez, Sebasti{\'a}n and S{\'a}nchez, Karen and Saavedra, Jose M. and Pizarro, Marcelo and Ghanem, Bernard},
booktitle = {MICCAI 2026 Workshop on Medical Artificial General Intelligence (MedAGI)},
year = {2026},
eprint = {2608.24364},
archivePrefix = {arXiv}
}