Manuscript Offprint

arXiv:2608.24364

B-MIM: Biased Masked Image Modeling for Generalizable Segmentation of Fine-Grained Anatomical Structures

Sebastián González, Karen Sanchez, José M. Saavedra, Marcelo Pizarro, Bernard Ghanem

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Sebastián González 1^{1}, Karen Sanchez 2^{2}, José M. Saavedra 3^{3}, Marcelo Pizarro 3^{3}, and Bernard Ghanem 2^{2}

1^{1} Universidad de Chile, Santiago, Chile

2^{2} King Abdullah University of Science and Technology (KAUST), Saudi Arabia

3^{3} Universidad de los Andes, Santiago, Chile

sebagonzalez@ug.uchile.cl

Abstract. 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.

Keywords: Self-supervised Learning · medical imaging · encoder · fine-grained · CT.

1 Introduction

Computerized Tomography (CT) scans are a critical, non-invasive diagnostic tool in modern medicine that combine multiple X-ray images to produce detailed, 3D views of internal structures. They are essential for rapidly diagnosing, staging, and monitoring diseases—particularly cancer, cardiovascular issues, and trauma—guiding treatment, and reducing the need for exploratory surgery [3]. In addition, machine learning is increasingly the preferred method for extracting and interpreting information from these kinds of images, as evidenced by a vast body of publications on machine learning for medical imaging [20].

The de facto standard for a machine learning model follows an encoder-decoder architecture. The encoder aims to extract relevant information from

S. González et al.

images, text, or any input modality, while the decoder uses those representations to accomplish a target task. It is now a common practice to use encoders trained under a self-supervised regimen because of their capability to learn from unlabeled data [5, 17, 1].

Learning transferable representations facilitates adaptation to diverse tasks, allowing the model to drastically reduce its number of learnable parameters, which is highly important in low-resource environments. That is why self-supervised learning strategies have become critical for making semantic encoders available. In this vein, models like MoCo [8], SimCLR [4] and BYOL [6] have contributed to the state of the art on image representation, which is dominated by the DINO encoder family [13, 17].

The medical imaging domain has benefited from advances in computer vision and machine learning. Thus, we are seeing encoders for X-ray images, such as RadDINO [14], RayDINO [12] and Google's CXR [10]. However, for the CT domain, there are still a few proposals. Here, VoCo [23, 24], a self-supervised strategy for 3D medical imaging using contrastive learning, showed improvements across diverse downstream tasks using CT or MRI.

However, existing pretrained models and encoders for medical imaging (e.g., Total Segmentator [21], Segment-Any-Muscle [22], UKBOB [2]) and encoders like VoCo [23, 24] focus mainly on coarse-grained tasks, such as macro-organ segmentation, with comparatively less emphasis on fine-grained anatomical structures, such as vessels or small tumors. Fine-grained structures play a critical role in disease prevention, early detection, disease monitoring, and treatment planning. For instance, liver vessel segmentation [16] is critical to plan liver resection, and the early detection of small tumors is crucial to cancer treatment.

Therefore, this work proposes a CT encoder designed to enhance representations of fine-grained anatomical structures, such as vessels and small tumors. We evaluate our encoder on liver vessel and small-tumor segmentation tasks, showing its potential for inter-dataset transfer. For instance, we observed up to a 18% gain in vessel segmentation when the proposal is applied to an out-of-distribution dataset. Thus, our contributions are summarized as follows:

– We curate a multi-institutional dataset from 17 public sources into a standardized cohort of 9,955 CT studies (1,993,194 2D slices) with consistent LPS orientation and anatomical cropping for 3D self-supervised learning.

– We introduce the Biased Masked Image Modeling (B-MIM) objective, which prioritizes local patch reconstruction over global semantic alignment. By leveraging the multi-scale nature of the 3D Swin Transformer, this strategy encourages the encoder to capture high-frequency morphological details, specifically addressing the topological continuity required for fine-grained structures.

– We demonstrate that our pre-trained backbone serves as a fixed-feature extractor, achieving competitive results on specialized tasks (e.g., vessel and tumor segmentation) with only 16k trainable parameters.

References (22)