Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 May 1.
Published in final edited form as: Med Image Anal. 2024 Jan 28;94:103086. doi: 10.1016/j.media.2024.103086

Self-supervised Learning for Medical Image Analysis: Discriminative, Restorative, or Adversarial?

Fatemeh Haghighi a, Mohammad Reza Hosseinzadeh Taher a, Michael B Gotway b, Jianming Liang a,*
PMCID: PMC11044023  NIHMSID: NIHMS1980996  PMID: 38537414

Abstract

Discriminative, restorative, and adversarial learning have proven beneficial for self-supervised learning schemes in computer vision and medical imaging. Existing efforts, however, fail to capitalize on the potentially synergistic effects these methods may offer in a ternary setup, which, we envision can significantly benefit deep semantic representation learning. Towards this end, we developed DiRA, the first framework that unites discriminative, restorative, and adversarial learning in a unified manner to collaboratively glean complementary visual information from unlabeled medical images for fine-grained semantic representation learning. Our extensive experiments demonstrate that DiRA: (1) encourages collaborative learning among three learning ingredients, resulting in more generalizable representation across organs, diseases, and modalities; (2) outperforms fully supervised ImageNet models and increases robustness in small data regimes, reducing annotation cost across multiple medical imaging applications; (3) learns fine-grained semantic representation, facilitating accurate lesion localization with only image-level annotation; (4) improves reusability of low/mid-level features; and (5) enhances restorative self-supervised approaches, revealing that DiRA is a general framework for united representation learning. Code and pretrained models are available at https://github.com/JLiangLab/DiRA.

Keywords: Self-supervised Learning, Transfer Learning, Fine-grained Representation Learning

Graphical Abstract

graphic file with name nihms-1980996-f0001.jpg

1. Introduction

Self-supervised learning (SSL) aims to learn generalizable representations without relying on expert annotations. The mainstream self-supervised representation learning approaches can be categorized into three groups: (1) discriminative learning, which utilizes encoders to distinguish instances from different (pseudo) classes; (2) restorative learning, which employs encoder-decoder models to reconstruct original images from their distorted versions; and (3) adversarial learning, which leverages adversary models to enhance restorative learning. Despite the significant contributions of discriminative, restorative, and adversarial learning to the performance of SSL individually (Chen et al., 2020b; He et al., 2022; Zbontar et al., 2021; Grill et al., 2020) or in pairs (Haghighi et al., 2021; Tao et al., 2020; Zhou et al., 2021a; Hosseinzadeh Taher et al., 2022), the simultaneous exploitation of all three learning ingredients in a SSL schema remains unexploited. Therefore, we wished to determine if discriminative, restorative, and adversarial learning can be seamlessly integrated into a single framework to foster collaborative learning for deep semantic representation, yielding more powerful SSL models capable of excelling across a broad range of applications?

Achieving outstanding performance for medical vision tasks requires a higher level of feature granularity compared with computer vision tasks. This requirement stems from the marked disparities between photographic and medical images, leading to significant impacts on the effectiveness of discriminative, restorative, and adversarial learning techniques for photographic and for medical images. Photographic images, particularly those found in ImageNet, typically consist of large foreground objects with distinct discriminative parts that are set against varying backgrounds (e.g., images of dogs and elephants in Fig. 2). Thus, image recognition tasks in photographic images are primarily based on high-level features captured from discriminative regions. Therefore, for computer vision tasks, discriminative learning is preferred, as evidenced by the state-of-the-art performance of discriminative SSL methods, notably instance discrimination learning (Chen et al., 2020b; Chen and He, 2021; Zbontar et al., 2021; Grill et al., 2020; He et al., 2020; Chuang et al., 2022), which show superior performance compared with standard supervised ImageNet models for some computer vision benchmarks. Conversely, medical images acquired using specific imaging protocols exhibit consistent anatomical structures (e.g., chest anatomy in Fig. 2), with clinically relevant information dispersed over the entire image (Haghighi et al., 2021). Particularly, high-level structural information (i.e., anatomical structures and their relative spatial orientations) is essential for the identification of both normal anatomy and various disorders. Also, medical tasks demand heightened attention to fine-grained details within images, as the identification of diseases, organ delineation, and lesion isolation depend on subtle, local variations in texture (Hosseinzadeh Taher et al., 2021). Thus, medical imaging recognition tasks rely heavily on the integration of fine-grained discriminative features extracted from the entire image. As a result, for medical vision tasks, restorative-based learning is preferred, as evidenced by the superior performance of restorative SSL approaches (Zhou et al., 2021b; Chen et al., 2019; Haghighi et al., 2021; Tao et al., 2020; Zhou et al., 2021a; Haghighi et al., 2020; Hosseinzadeh Taher et al., 2022) compared with their discriminative counterparts (Azizi et al., 2021; Zhou et al., 2020; Kaku et al., 2021) for various medical vision benchmarks.

Fig. 2.

Fig. 2.

(a) Photographic images commonly contain large foreground objects with distinct discriminative parts (e.g., tusks of an elephant). In contrast, (b) medical images acquired from a particular imaging protocol often exhibit remarkable similarity in anatomy (e.g. lungs), with semantic information dispersed over the entire image. Consequently, recognition tasks in photographic images primarily require high-level features, whereas medical tasks demand holistic fine-grained discriminative features captured throughout images.

Accordingly, our systematic analysis has disclosed: (1) discriminative learning excels in capturing high-level (global) discriminative features; (2) restorative learning is optimal for conserving fine-grained details embedded in local image regions; and (3) adversarial learning consolidates restoration by conserving more fine-grained details. More importantly, we have acquired a new and intriguing insight into trio of discriminative, restorative, and adversarial learning to excavate effective features required for medical recognition tasks—both high-level anatomical representations and fine-grained discriminative cues embedded in the local parts of medical images.

Based on the insights above, we have designed a novel self-supervised learning framework, named DiRA, by uniting discriminative learning, restorative learning, and adversarial learning in a unified manner to glean complementary visual information from unlabeled medical images. Our extensive experiments demonstrate that (1) DiRA encourages collaborative learning among three learning components, resulting in more generalizable representation across distribution shifts, organs, diseases, and modalities (see Fig. 4); (2) DiRA outperforms fully-supervised baselines models and increases robustness in small data regimes, thereby reducing annotation costs in medical imaging (see Table 2 and 3); (3) DiRA learns finegrained representations, facilitating more accurate lesion localization with only image-level annotations (see Fig. 5 and 6); (4) DiRA provides highly reusable low/mid-level features, resulting in greater transferability to different medical tasks (see Table 4); and (5) DiRA enhances restorative-based approaches, showing that DiRA is a general framework for united representation learning (see Fig. 7, Table 5, Table 6, and Fig. 8).

Fig. 4.

Fig. 4.

Comparison with discriminative learning methods: we apply DiRA to three representative self-supervised methods with diverse discrimination objectives: MoCo-v2, Barlow Twins, and SimSiam. DiRA empowers these discriminative methods to retain more fine-grained representations, resulting in significant (p<0.05) performance boosts in six downstream tasks.

Table 2.

Fine-tuning the SSL pretrained models using different downstream label fractions: DiRA models combat overfitting in low data regimes and provide stronger representations for downstream tasks with limited annotated data. For each application, the average performance over multiple runs has been reported. The green numbers show the improvements of DiRA models compared with the underlying discriminative method in each data portion.

Method ChestX-ray14 [AUC (%)] CheXpert [AUC (%)] Montgomery [Dice (%)] ChestX-Det [IoU (%)]

Label fraction Label fraction Label fraction Label fraction
1% 5% 10% 25% 1% 5% 10% 25% 1% 5% 10% 25% 1% 5% 10% 25%
MoCo-v2 52.99 59.29 67.17 74.89 76.87 78.37 80.24 81.70 63.69 72.95 82.02 96.44 26.02 44.86 61.60 65.65
DiRAMoCo-v2 59.39 65.64 73.45 77.55 78.43 81.54 85.43 87.12 72.53 81.81 92.16 97.06 38.57 50.86 66.22 69.83
Performance boost (+6.40) (+6.35) (+6.28) (+2.66) (+1.56) (+3.17) (+5.19) (+5.42) (+8.84) (+8.86) (+10.14) (+0.62) (+12.55) (+6.00) (+4.62) (+4.18)

Barlow Twins 62.43 67.77 73.14 76.23 82.85 83.00 83.19 83.74 86.79 88.21 91.45 97.49 50.33 57.26 65.90 69.32
DiRABarlow Twins 62.51 68.36 73.30 77.18 83.12 83.30 83.52 84.20 87.25 90.20 94.50 97.62 50.48 57.79 66.12 69.62
Performance boost (+0.08) (+0.59) (+0.16) (+0.95) (+0.27) (+0.30) (+0.33) (+0.46) (+0.46) (+1.99) (+3.05) (+0.13) (+0.15) (+0.53) (+0.22) (+0.30)

SimSiam 51.07 58.28 67.03 73.05 65.39 71.39 79.15 80.05 48.20 55.62 81.12 94.86 35.92 47.40 60.07 66.09
DiRASimSiam 53.42 59.95 68.10 74.38 70.46 74.46 79.47 81.03 61.86 68.31 93.67 96.61 45.76 54.32 64.19 67.50
Performance boost (+2.35) (+1.67) (+1.07) (+1.33) (+5.07) (+3.07) (+0.32) (+0.98) (+13.66) (+12.69) (+12.55) (+1.75) (+9.84) (+6.92) (+4.12) (+1.41)

Table 3.

Comparison with fully-supervised baselines: DiRA models provide superior or on-par performance compared with fully-supervised pretrained models on ImageNet and ChestX-ray14 datasets in five downstream tasks. The best methods are bolded while the second best are underlined. and denote the statistically significant (p<0.05) improvement compared with the supervised ImageNet and ChestX-ray14 baselines, respectively, while and denote the statistically equivalent performances accordingly. For supervised ChestX-ray14 model, transfer learning to ChestX-ray14 is not applicable since pretraining and downstream tasks are the same, denoted by “N/A”. “Random Init.” denotes random initialization.

Method Pretraining Dataset Classification Segmentation

ChestX-ray14 CheXpert SIIM-ACR SCR-Heart Montgomery ChestX-Det
Random Init. - 80.31±0.10 86.62±0.15 67.54±0.60 88.87±5.36 97.55±0.36 71.22±1.87

Supervised ImageNet 81.70±0.15 87.17±0.22 67.93±1.45 93.58±1.03 98.19±0.13 73.07±0.69
Supervised ChestX-ray14 N/A 87.40±0.26 68.92±0.98 93.59±1.22 98.16±0.05 73.13±0.72

DiRAMoCo-v2 ChestX-ray14 81.12±0.17 87.59±0.28 69.24±0.41 94.17±1.01 98.24±0.09 72.84±1.13
DiRABarlow Twins ChestX-ray14 80.88±0.30 87.50±0.27 69.87±0.68 93.19±0.93 98.16±0.06 73.49±0.78
DiRASimSiam ChestX-ray14 80.44±0.29 86.04±0.43 68.76±0.69 93.75±0.98 98.17±0.11 72.10±1.36

Fig. 5.

Fig. 5.

Weakly-supervised pathology localization accuracy under six IoU thresholds (δ): DiRA models provide stronger representations for pathology localization with only image-level annotations. For each method, we report the average performance over ten runs. The white numbers show the improvement of DiRA models compared with the underlying discriminative method in each IoU threshold.

Fig. 6.

Fig. 6.

[Better viewed on-line, in color, and zoomed in for details] Visualization of Grad-CAM heatmaps for (a) MoCo-v2 vs. DiRAMoCo-v2, (b) Barlow Twins vs. DiRABarlow Twins, and (c) SimSiam vs. DiRASimSiam: Transfer learning from DiRA models leads to improvements in weakly-supervised disease localization. While both DiRA and the underlying original models correctly predict the disease label in the test images, DiRA models capture the diseased regions more accurately than the baselines which either highlight larger regions of the image (e.g., (c), second row) or provide inaccurate localization without overlap with the ground truth (e.g., (b), second row). The white boxes depict the ground truth bounding box annotations.

Table 4.

Comparison of feature reuse between DiRA and the original discriminative SSL methods: each row presents the CKA score for different model layers before and after fine-tuning in two downstream tasks, including classification (ChestX-ray14) and segmentation (Montgomery). DiRA models provide more reusable low/mid level features (layers 1–3) compared with the original discriminative approaches.

Method pretraining dataset ChestX-ray14 Montgomery

Layer 1 Layer 2 Layer 3 Layer 4 Layer 5 Layer 1 Layer 2 Layer 3 Layer 4 Layer 5
MoCo-v2 ChestX-ray14 0.995 0.622 0.625 0.500 0.409 0.995 0.618 0.695 0.546 0.339
DiRAMoCo-v2 ChestX-ray14 0.999 0.944 0.897 0.704 0.324 0.999 0.930 0.869 0.597 0.382

Barlow Twins ChestX-ray14 0.948 0.709 0.613 0.787 0.482 0.916 0.627 0.779 0.745 0.297
DiRABarlow Twins ChestX-ray14 0.996 0.922 0.718 0.794 0.450 0.992 0.914 0.874 0.704 0.395

SimSiam ChestX-ray14 0.977 0.629 0.677 0.683 0.480 0.978 0.527 0.577 0.532 0.402
DiRASimSiam ChestX-ray14 0.997 0.925 0.782 0.504 0.298 0.993 0.904 0.823 0.534 0.231

Fig. 7.

Fig. 7.

Comparison with restorative self-supervised learning: we apply DiRA to MAE, a representative of ViT-based masked image modeling self-supervised methods. DiRA empowers MAE to encode more comprehensive representations, leading to significant (p<0.05) performance boosts in five downstream tasks.

Table 5.

Comparison with ViT-based fully-supervised baselines: DiRA outperforms fully-supervised ViT models pretrained on ImageNet and ChestX-ray14 datasets in six downstream tasks. All models use the ViT-S/16 backbone. The best methods are bolded. and denote the statistically significant (p<0.05) improvement compared with the supervised ImageNet and ChestX-ray14 baselines, respectively. For the supervised ChestX-ray14 model, transfer learning to ChestX-ray14 is not applicable since pretraining and downstream tasks are the same, denoted by “N/A”.

Downstream Task Supervised ChestX-ray14 Supervised ImageNet DiRAMAE
ChestX-ray14 N/A 79.88±0.06 81.05±0.04
CheXpert 85.36±0.21 86.82±0.41 87.72±0.32
SIIM-ACR 67.57±0.87 69.64±0.40 70.66±0.54
SCR-Heart 92.51±0.41 93.58±0.28 94.28±0.15
Montgomery 96.29±0.29 97.16±0.07 97.58±0.08
ChestX-Det 73.14±0.11 74.18±0.12 75.16±0.22

Table 6.

Comparison with restorative self-supervised learning method: we apply our DiRA to the TransVW as a representative of 3D restorative-based SSL methods. DiRA empowers TransVW to capture more fine-grained information, yielding performance boosts in four 3D downstream tasks. FPR denotes “false positive reduction”. The DiRATransVW performance is adopted from (Guo et al., 2022).

Method Segmentation [IoU (%)] Classification [AUC (%)]

Lung nodule Liver Brain tumor Lung nodule FPR PE FPR
Random 74.05±1.97 79.76±5.42 59.87±4.04 94.25±5.07 80.36±3.58

TransVW 77.33±0.52 86.53±1.30 68.82±0.38 98.46±0.30 87.07±2.83

DiRATransVW 77.51±1.36 (+0.18) 86.85±0.81 (+0.32) 69.57±1.13 (+0.75) 98.87±0.61 (+0.41) 86.91±3.27

Fig. 8.

Fig. 8.

DiRATransVW exhibits greater label efficiency in 3D downstream tasks, reducing annotation costs by 60%, 57%, and 57% in comparison with training from scratch, and 87%, 16%, and 26% compared with TransVW in lung nodule segmentation, PE FPR, and lung nodule FPR, respectively. The horizontal gray and purple lines demonstrate the performance achieved by training from scratch and TransVW, respectively, when using the entire training data. The gray and purple bars indicate the minimum required data for training from scratch and TransVW to achieve a performance comparable (based on t-test) to their performance when using the entire training dataset. The DiRATransVW performance is adopted from (Guo et al., 2022).

In summary, we make the following contributions:

  • The insights that we have gained into the synergy of discriminative, restorative, and adversarial learning in a ternary setup, realizing a new paradigm of collaborative learning for SSL.

  • The first self-supervised learning framework that seamlessly unites discriminative, restorative, and adversarial learning in a unified manner.

  • A thorough and insightful set of experiments that demonstrate not only DiRA’s generalizability but also its potential to take a fundamental step towards developing universal representations for medical imaging.

2. DiRA framework

DiRA is a general self-supervised learning framework that learns comprehensive information from unlabeled medical images. As illustrated in Fig. 3, DiRA consists of three key learning components: (1) Discrimination (Di) which learns high-level discriminative representations, (2) Restoration (R) which forces the model to conserve fine-grained information about the image by focusing on more localized visual patterns, and (3) Adversary (A) which further improves feature learning through the restoration component. By integrating these components into a unified framework, DiRA captures complementary information from images, resulting in more pronounced representations for various downstream tasks. In the following sections, we describe each component of DiRA by abstracting a common paradigm and then detail the joint training objective.

Fig. 3.

Fig. 3.

Our proposed self-supervised learning framework, DiRA, aims to learn generalizable image representations by uniting three learning components: discriminative, restorative, and adversary. Given two input patches x1 and x2 of the same class/instance, we apply random data augmentations 𝒯(.) on them, and give them as the input to the discriminative and restorative branches. The discriminative branch consists of twin encoders fθ and fξ, and projectors hθ and hξ, and encodes the input samples to high-level embeddings vectors. The discriminative branch is trained to maximize the agreement between the (high-level) embedding vectors of the samples from the same (pseudo) class. The restorative branch consists of an encoder fθ and decoder gθ, and restores the original input samples from their distorted ones. The restorative branch is trained to maximize the (pixel-level) agreement between original samples and their restored versions. The adversarial branch consists of a discriminator network Dϕ, and receives both the predictions of restorative branch and the original input samples as the input. The adversarial branch engages in a minimax game with the restorative branch; the adversarial branch attempts to distinguish between the original and restored samples, while the restorative branch attempts to confuse the adversarial discriminator by generating samples that are indistinguishable from real ones.

1). Discriminative learning—encoding high-level discriminative representations.

The discriminative learning component aims to model the similarities among instances of the same (pseudo) class in the embedding space. To do so, this component employs a discriminative objective function to learn global image representations that discriminate instances of different (pseudo) classes. As illustrated in Fig. 3, the discriminative learning branch is comprised of (1) two twin encoders fθ and fξ, and (2) two projection heads hθ and hξ. In this setting, fθ is a regular encoder updated by back-propagation, while fξ can share weights with fθ (Zbontar et al., 2021; Chen and He, 2021; Haghighi et al., 2021) or can be a momentum encoder (He et al., 2020; Grill et al., 2020) updated by an exponential moving average (EMA) of the parameters in fθ. Given two input patches x1 and x2, which represent samples of the same (pseudo) class, we first apply an augmentation function 𝒯(.) on them. The two augmented patches are fed to encoders fθ and fξ, producing their latent representations y1=fθ(𝒯(x1)) and y2=fξ(𝒯(x2)). The latent representations are then mapped by projection heads hθ and hξ onto the embeddings z1=hθy1 and z2=hξy2. The discriminative branch is trained by maximizing the similarity between the embedding vectors of two samples that belong to the same (pseudo) class:

dis=z1,z2 (1)

where z1,z2 is the similarity/distance function that measures the agreement between z1 and z2. Discriminative learning yields a pretrained encoder referred to as fDi. DiRA is a general framework that allows various choices of discrimination tasks without any constraint. Therefore, the definition of a class can vary from treating each individual image as a separate class (instance-wise discrimination) to clustering images based on a similarity metric (cluster-wise discrimination). Accordingly, x1 and x2 can be two views of the same image or two samples belonging to the same cluster. Depending on the choice of the discrimination task, the instantiation of dis can be cross-entropy (Haghighi et al., 2021; Gidaris et al., 2018; Noroozi and Favaro, 2016; Zhuang et al., 2019), contrastive (He et al., 2020; Chen et al., 2020b; Azizi et al., 2021; Caron et al., 2021a), information maximization (Zbontar et al., 2021; Ermolov et al., 2021), distillation (Chen and He, 2021), etc.

2). Restorative learning—conserving fine-grained visual details embedded in local image regions.

The restorative learning component aims to improve discriminative learning by capturing fine-grained anatomical information—–the subtle diversity of intensity, shape, boundary, and texture presented in different samples. To do so, this component employs a reconstruction objective function to capture local image representations. As illustrated in Fig. 3, the restorative learning branch is comprised of an encoder fθ and decoder gθ, with the encoder fθ being shared with the discrimination branch. Given an input sample x1 distorted by 𝒯, the fθ maps the input sample to a latent representation and gθ reconstructs the original sample from the latent representation, i.e., fθ, gθ:(x,𝒯)x. The restoration branch is trained by minimizing the pixel-wise distance between the original sample and its reconstructed counterpart:

res=Edist(x1,x1) (2)

where x1=gθfθ𝒯x1 denotes the reconstructed sample. dist(x1,x1) presents the distance function that measures similarity between x1 and x1 at a pixel-level, such as L1 or L2. The incremental addition of restorative learning to discriminative learning results in the pretrained encoder and decoder being referred to as fDi(Di+R) and g(Di+R), respectively.

3). Adversarial learning—consolidating restorative learning by conserving more fine-grained details.

The adversarial learning component aims to reinforce restorative learning by encouraging the reconstructed images to be indistinguishable from the original input images. To do so, this component exploits an adversarial objective function to capture more informative details from images so that the restorative branch can reproduce the original images more effectively. As illustrated in Fig. 3, we adapt the Generative Adversarial Network (GAN) paradigm (Cao et al., 2020; Parmar et al., 2021) in adversarial learning component by modeling the generator with the restorative component (i.e. fθ and decoder gθ) and introducing an adversarial discriminator Dϕ. The learning procedure involves a two-player minimax game where the adversarial discriminator Dϕ receives both the predictions of restorative branch and the original input samples, and attempts to distinguish between them. On the other hand, the restorative branch attempts to confuse the adversarial discriminator by generating samples that are indistinguishable from real ones. The restoration branch and the adversarial discriminator Dϕ are optimized jointly with an adversarial loss:

adv=ElogDϕx1+log1Dϕx1 (3)

where x1=gθfθ𝒯x1 denotes the reconstructed sample. The incremental addition of adversarial learning to discriminative and restorative learning results in the pretrained encoder fDi(Di+R)(Di+R+A) and decoder g(Di+R)(Di+R+A). The pretrained encoder and encoder-decoder, referred to as DiRA models, are used for downstream classification and segmentation tasks, respectively.

To enable end-to-end representation learning from multiple sources of information and yield more powerful models for diverse medical tasks, DiRA integrates discriminative, restorative, and adversarial learning and jointly trained them with one single objective function:

=λdisdis+λresres+λadvadv (4)

where λdis, λres, and λadv are coefficients that balance the weights of different loss terms. Our unified training scheme enables DiRA to learn representations that conserve fine-grained information from images while being discriminative among different (pseudo) classes. Specifically, dis encourages the model to capture high-level discriminative features. Moreover, res empowers discriminative learning by encoding finer and more discriminative information from the local context of images. Finally, adv elevates restorative learning through capturing more informative local features.

3. Experiments

3.1. Pretraining DiRA

DiRA is a general self-supervised learning framework that is compatible with existing self-supervised discriminative and restorative methods, regardless of their objective functions. To evaluate the effectiveness of our framework, we adapt recent 2D and 3D self-supervised approaches into DiRA, detailed in the following sections. The resulting pretrained models with DiRA are denoted as DiRA subscripted by the original method name. DiRA models are pretrained solely on unlabeled images. Nevertheless, to prevent any test-case leakage from pretext tasks to downstream tasks, we exclude any images that will be used for testing in downstream tasks from pretraining stage.

3.1.1. 2D pretraining settings

We apply DiRA to four popular convolutional neural network (ConvNet)- and vision-transformer-based SSL methods with diverse training objectives, including MoCo-v2 (Chen et al., 2020c), Barlow Twins (Zbontar et al., 2021), SimSiam (Chen and He, 2021), and MAE (He et al., 2022). We adapt discriminative SSL approaches, including MoCo-v2, Barlow Twins, and SimSiam, in DiRA by adding restorative and adversarial learning to their training schemes. For each of these three discrimination tasks (Chen et al., 2020c; Zbontar et al., 2021; Chen and He, 2021), we adhere to the original methods in the formulation of discriminative learning loss (dis), projection head architecture, and hyperparameter settings. We adopt mean square error (MSE) between the input and the reconstructed images as the restorative learning loss (res). For all discriminative methods, we employ a 2D U-Net (Ronneberger et al., 2015) with a standard ResNet-50 (He et al., 2016) backbone as the fθ and gθ, and optimize them following the setups in (Chen et al., 2020c; Zbontar et al., 2021; Chen and He, 2021). We adapt the restorative SSL approach (i.e. MAE) in DiRA by adding discriminative and adversarial learning to its training objective. Specifically, we use a ViT-S/16 encoder and follow (Xiao et al., 2023) in the restoration task settings, decoder architecture, and optimization parameters. We utilize contrastive loss (Chen et al., 2021c; Mishra et al., 2022) as the discriminative learning loss (dis). For both discriminative and restorative SSL methods, we use a light-weight network consisting of four convolutional layers with the kernel size of 3×3 (Pathak et al., 2016) as the discriminator network (Dϕ), and optimize it using the Adam optimizer with a learning rate of 2e-4 and (β1,β2)=(0.5,0.999). All DiRA models are pretrained from scratch on the training set of ChestX-ray14 (Wang et al., 2017) dataset. We use a batch size of 256 distributed across 4 Nvidia V100 GPUs. For discriminative SSL approaches, λres, λadv, λdis are empirically set to 10, 0.001, and 1, respectively. For the restorative SSL approach, λres, λadv, λdis are set to 0.67, 0.001, and 0.03, respectively. Input images are first randomly cropped and resized to 224×224. The image augmentation function (𝒯(.)) includes random horizontal flipping, color jittering, and Gaussian blurring. Additionally, we apply cutout (DeVries and Taylor, 2017; Pathak et al., 2016) and shuffling (Chen et al., 2019) to enrich the restoration task for the three discriminative SSL approaches. More details are provided in the Appendix B.

3.1.2. 3D pretraining settings

We apply DiRA to TransVW (Haghighi et al., 2021) as a representative method for 3D self-supervised learning in medical imaging. We adapt TransVW in DiRA by adding adversarial learning to its training scheme. To ensure fair comparisons, we follow the publicly available TransVW in the formulation of visual words discrimination and restoration tasks, as well as hyperparameter settings. In particular, we employ a 3D U-Net (Ellis and Aizenberg, 2021) as the encoder-decoder network, with a classification head appended at the end of the encoder. The adversarial discriminator Dϕ includes four convolutional blocks with the kernel size 3×3×3. λres, λadv, λdis are empirically set to 100, 1, and 1, respectively. Moreover, similar to TransVW, DiRA models are pretrained from scratch using 623 chest CT scans in the LUNA16 (Setio et al., 2017) dataset. fθ, gθ, and Dϕ are optimized for 200 epochs using Adam with a learning rate of 1e-3 and batch size of 8. More details are in the Appendix B.

3.2. Fine-tuning DiRA

3.2.1. Downstream tasks and datasets

We evaluate the effectiveness of DiRA’s representations in transfer learning to a diverse suite of 12 common but challenging medical imaging tasks on eleven public datasets. The downstream tasks include classification, segmentation, and weakly-supervised disease localization in 2D and 3D images. As summarized in Table 1 and detailed below, these downstream tasks encompass various label structures (multi-label classification, pixel-level disease/organ segmentation, and weakly-supervised disease localization), diseases (brain tumors and thoracic diseases, such as lung nodules, pulmonary embolism, and pneumothorax), organs (lung, liver, brain, and heart), and modalities (X-ray, CT, and MRI). Additionally, these tasks present several typical challenges encountered in medical imaging, such as class imbalance, limited data, and small scan areas for the pathology of interest. We adopt the official data splits of these datasets whenever available; otherwise, we randomly split the data into 80% for training and 20% for testing.

Table 1.

Downstream tasks for transfer learning: we evaluate the learned representations by our SSL framework in 12 medical imaging applications, including classification, segmentation, and weakly-supervised localization on 2D and 3D images. To assess the generalization ability of our DiRA, we select a diverse set of applications ranging from the tasks on the same dataset as pretraining to the tasks with substantial shifts in data distribution and the disease/organ of interest.

Dataset Downstream Task Object Modality
ChestX-Ray14 (Wang et al., 2017) Fourteen thoracic diseases classification Thoracic Diseases X-ray
CheXpert (Irvin et al., 2019) Five thoracic diseases classification Thoracic Diseases X-ray
SIIM-ACR (Zawacki et al., 2019) Pneumothorax segmentation Pneumothorax X-ray
NIH Montgomery (Jaeger et al., 2014) Lung segmentation Lung X-ray
SCR-Heart (van Ginneken et al., 2006) Heart segmentation Heart X-ray
ChestX-Det (Lian et al., 2021) Thoracic diseases segmentation Thoracic Diseases X-ray
ChestX-Ray14 (Wang et al., 2017) Weakly-supervised disease localization Thoracic Diseases X-ray
LUNA16 (Setio et al., 2017) Lung nodule false positive reduction Lung Nodule CT
LIDC-IDRI (Armato III et al., 2011) Lung nodule segmentation Lung Nodule CT
PE-CAD (Tajbakhsh et al., 2015) Pulmonary embolism (PE) false positive reduction Pulmonary Embolism CT
LiTS-2017 (Bilic et al., 2019) Liver segmentation Liver CT
BraTS2018 (Bakas et al., 2018) Brain tumor segmentation Brain Tumor MRI Flair

ChestX-ray14 (Wang et al., 2017) is a large-scale open source dataset of de-identified chest radiographs. The dataset includes 112K chest radiographs taken from 30K unique patients. The ground truth consists of a label space of 14 thorax diseases. We use the official patient-wise split released with the dataset, including 86K training images and 25K testing images. The models are trained to predict 14 pathologies in a multi-label classification setting. The mean AUC score over 14 diseases is used to evaluate the classification performance. In addition to image-level labels, ChestX-ray14 provides bounding box annotations for approximately 1,000 test images. Of this set of images, bounding box annotations are available for 8 out of 14 thorax diseases. During testing, we use bounding box annotations to assess the accuracy of pathology localization in a weakly-supervised setting. The mean accuracy over 8 diseases is used to evaluate the localization performance.

CheXpert (Irvin et al., 2019) is a hospital-scale publicly available dataset with 224K chest radiographs taken from 65K unique patients. We use the official data split released with the dataset, including 224K training and 234 test images. The ground truth for the training set includes 14 thoracic pathologies that were retrieved automatically from radiology reports. The testing set is labeled manually by board-certified radiologists for 5 selected thoracic pathologies— cardiomegaly, edema, consolidation, atelectasis, and pleural effusion. The models are trained to predict five pathologies in a multi-label classification setting. The mean AUC score over 5 diseases is used to evaluate the classification performance.

SIIM-ACR (Zawacki et al., 2019) dataset is provided by the Society for Imaging Informatics in Medicine (SIIM) and American College of Radiology, including 10K chest radiographs and pixel-wise segmentation mask for pneumothorax disease. We randomly divided the dataset into training (80%) and testing (20%). The models are trained to segment pneumothorax in images (if present). The mean Dice score is used to evaluate the segmentation performances.

NIH Montgomery (Jaeger et al., 2014) dataset is provided by the Montgomery County’s Tuberculosis screening program, including 138 chest radiographs. There are 80 normal cases and 58 cases with tuberculosis (TB) indications in this dataset. Ground truth segmentation masks for left and right lungs are provided. We randomly divided the dataset into a training set (80%) and a test set (20%). The models are trained to segment left and right lungs in chest scans. The mean Dice score is employed to evaluate the segmentation performances.

SCR-Heart (van Ginneken et al., 2006) dataset includes 247 chest radiographs from JSRT database (Shiraishi et al., 2000) along with segmentation masks for the heart. The data has been subdivided into two folds with 124 and 123 images. We follow the official split of the dataset, using fold1 for training (124 images) and fold2 for testing (123 images).The mean Dice score is used to evaluate the heart segmentation performances.

ChestX-Det (Lian et al., 2021) dataset consists of 3,578 images selected from ChestX-ray14 dataset along with segmentation masks for 13 thoracic diseases, including atelectasis, calcification, cardiomegaly, consolidation, diffuse nodule, effusion, emphysema, fibrosis, fracture, mass, nodule, pleural thickening, and pneumothorax. The image annotations are provided by 3 board-certified radiologists. The downstream task is pixel-wise segmentation of lesions in images. We adhere to the official dataset split, using 3,025 images for training and 553 images for testing. The mean IoU score is utilized to evaluate the segmentation performance.

LUNA16 (Setio et al., 2017) dataset consists of 888 lung CT scans with a slice thickness of less than 2.5mm. The data were divided into training (445 cases), validation (178 cases), and test (265 cases) sets. The dataset provides a set of 5M candidate locations for lung nodule, each is labeled as true positive or false positive. The models are trained to classify lung nodule candidates into true positives and false positives in a binary classification setting. The Area Under the Curve (AUC) score is used to evaluate the classification accuracy.

LIDC-IDRI (Armato III et al., 2011) dataset includes 1,018 chest CT scans with annotated lung nodules. The dataset is divided into training (510 cases), validation (100 cases), and test (408 cases) sets. We pre-processed the data by re-sampling the 3D volumes to 1–1-1 spacing and then extracting a 64×64×32 crop around each nodule. The models are trained to segment long nodules in these 3D crops. The Intersection over Union (IoU) metric is used to measure the segmentation accuracy.

PE-CAD (Tajbakhsh et al., 2015) dataset includes 121 computed tomography pulmonary angiography (CTPA) scans with a total of 326 pulmonary embolism (PE). The dataset provides a set of candidate locations for PE and is divided at the patient-level into training and test sets. Training set contains 434 true positive and 3,406 false positive PE candidates. Test set contains 253 true positive and 2,162 false positive PE candidates. We pre-processed the 3D scans as suggested in (Zhou et al., 2021b). The 3D models are trained to classify PE candidates into true positives and false positives in a binary classification setting. The Area Under the Curve (AUC) score at the candidate-level is used to evaluate the classification accuracy.

LiTS (Bilic et al., 2019) dataset is provided by MICCAI 2017 LiTS Challenge, including 130 CT scans with expert ground-truth segmentation masks for both liver and liver tumors. We divide dataset into training (100 patients), validation (15 patients), and test (15 patients) sets. The models are trained to segment liver in 3D scans. The Intersection over Union (IoU) metric is used to measure the segmentation accuracy.

BraTS (Bakas et al., 2018) dataset includes brain MRI scans of 285 patients (210 HGG and 75 LGG) and segmentation masks for necrotic and non-enhancing tumor core, peritumoral edema, GD-enhancing tumor, and background. For each patient, four different MR volumes are available: native T1-weighted (T1), post-contrast T1-weighted (T1Gd), T2-weighted (T2), and T2 fluid attenuated inversion recovery (FLAIR). We divide dataset at patient-level into training (190 patients) and testing (95 patients) sets. The models are trained to segment brain tumors (background as negatives class and tumor sub-regions as positive class). The mean Intersection over Union (IoU) metric is used to measure the segmentation accuracy.

3.2.2. Evaluations

For transfer learning to the classification tasks, we utilize the pretrained encoder of DiRA models (fθ) and append a task-specific classification head to them. For transferring ConvNet-based DiRA models to the segmentation tasks, we utilize the pretrained encoder and decoder of DiRA models (fθ and gθ) and replace the last layer of the decoder with a 1×1 and 1×1×1 convolutional layer for 2D and 3D, respectively. For transferring ViT-based DiRA model (i.e. DiRAMAE) to the segmentation tasks, we use the pretrained encoder and follow (Chen et al., 2021b) for the decoder architecture. We evaluate the generalization of DiRA’s representations by fine-tuning all parameters in downstream models. We use the AUC (area under the ROC curve), and the IoU (Intersection over Union) and Dice coefficient to evaluate the accuracy of classification and segmentation performances, respectively. We strive to optimize each downstream task with the best performing hyperparameters. For 2D downstream tasks, we resize the images to 224×224, and apply standard data augmentation techniques specific to each task. For classification tasks, we employ random cropping and resizing, horizontal flipping, and rotating. For segmentation tasks, we utilize random brightness contrast, random gamma, optical distortion, elastic transformation, and grid distortion. For 3D target tasks, we follow (Zhou et al., 2021b; Haghighi et al., 2021) in using random flipping, transposing, rotating, and adding Gaussian noise as data augmentations. In all 2D and 3D downstream tasks with ConvNet architecture, we use Adam optimizer with β1=0.9, β2=0.999. For downstream task with ViT architecture, following (Xiao et al., 2023; Chen et al., 2021b), we use AdamW optimizer for classification and SGD optimizer for segmentation tasks. We employ early-stop mechanism using the 10% of the training data as the validation set to avoid over-fitting. For 2D classification tasks with ConvNet backbone on ChestX-ray14 and CheXpert datasets, we use a learning rate 2e − 4 and ReduceLROnPlateau as the learning rate decay scheduler. For 2D classification tasks with ViT backbone, we closely follow (Xiao et al., 2023) in training settings. For 2D segmentation tasks on SCR-Heart, ChestX-Det, SIIM-ACR, and Montgomery, we use cosine learning rate decay scheduler. For 2D segmentation tasks with ConvNet backbone, we use a learning rate 1e − 3. For 2D segmentation tasks with ViT backbone, we use a learning rate 1e − 2 in SCR-Heart and Montgomery, and 1e − 3 in SIIM-ACR and ChestX-Det datasets. For all 3D downstream tasks, we use ReduceLROnPlateau as the learning rate decay scheduler. For downstream tasks on LUNA16, PE-CAD, LIDC, and LiTS, we use a learning rate 1e − 2, whereas we employ a learning rate of 1e − 3 for BraTS. We run each method 10 times on each downstream task and report the average, standard deviation, and statistical analysis based on an independent two-sample t-test.

4. Results

This section presents the cornerstones of our results, showcasing not only the properties of our self-supervised framework but also its generalizability across a myriad of downstream tasks. Through a series of experiments, we demonstrate that DiRA (1) fosters collaborative learning among three learning components, capturing more diverse visual representations that exhibit superior generalization capabilities across different tasks compared with both self-supervised and fully-supervised baselines (Sec. 4.1 and 4.4); (2) provides more robust models for downstream tasks with limited data, offering an annotation-efficient solution for medical imaging (Sec. 4.2); (3) learns fine-grained discriminative features, facilitating more precise disease localization with only image-level annotations (Sec. 4.3); (4) enhances the reusability of low/mid-level features, resulting in greater transferability to different medical tasks (Sec. 4.5); and (5) elevates restorative SSL approaches, demonstrating its versatility as a general framework for united representation learning (Sec. 4.6).

4.1. DiRA synergizes discriminative, restorative, and adversarial learning

Experimental setup.

We asses the flexibility and efficacy of our proposed self-supervised framework by applying it to three recent popular self-supervised methods with diverse discrimination formulations, including (1) MoCo-v2 (Chen et al., 2020c)—representative of contrastive learning SSL methods, (2) Barlow Twins (Zbontar et al., 2021)—representative of information maximization SSL methods, and (3) SimSiam (Chen and He, 2021)—representative of self-distillation SSL methods. To evaluate the quality of the learned representations by our DiRA and ascertain the generality of our findings, we fine-tune all models on a broad range of six downstream tasks, covering classification (ChestX-Ray14 and CheXpert) and segmentation (SCR-Heart, ChestX-Det, SIIM-ACR, and NIH Montgomery).

Results.

Fig. 4 showcases the enhancements achieved by integrating DiRA with MoCo-v2, Barlow Twins, and SimSiam across all downstream tasks, including (1) ChestX-ray14, (2) CheXpert, (3) SCR-Heart, (4) ChestX-Det, (5) SIIM-ACR, and (6) NIH Montgomery. Compared with the original methods, DiRAMoCo-v2 yields increased performance by 0.8%, 1.2%, 1.7%, 2.0%, 1.4%, and 0.2%, respectively. Similarly, DiRABarlow Twins yields increased performance by 0.4%, 0.6%, 1.3%, 1.7%, 0.2%, and 0.03%. Finally, DiRASimSiam yields increased performance by 0.8%, 2.2%, 1.5%, 1.6%, 1.2%, and 0.5%. These results suggest that DiRA provides a comprehensive representation learning framework that encourages existing self-supervised discriminative approaches to preserve more fine-grained information from images, thereby enriching their visual representations and enabling more effective generalization to diverse medical tasks.

4.2. DiRA improves robustness to small data regimes

Experimental setup.

We investigate the robustness of representations learned with DiRA in small data regimes to determine if the learned representation can serve as a proper foundation for fine-tuning in applications with a dearth of annotated data. We randomly sample different fractions (1%, 5%, 10%, and 25%) of training data from the ChestX-ray14, CheXpert, Montgomery, and ChestX-Det datasets, and fine-tune the self-supervised pretrained models on these training data subsets.

Results.

As seen in Table 2, DiRA models outperform their underlying original methods in all data subsets, i.e., 1%, 5%, 10%, and 25%, in ChestX-ray14, CheXpert, Montgomery, and ChestX-Det. In particular, the average of improvement for MoCo-v2 and SimSiam across all four downstream tasks in each underlying subset yielding: (1) 7.3% and 7.7% when using 1%, (2) 6.1% and 6.1% when using 5%, (3) 6.6% and 4.5% when using 10%, and (4) 3.2% and 1.4% when using 25%. Notably, in the 1% subset, DiRA models exhibit a substantial performance gain over MoCo-v2 and SimSiam, showcasing the potential of our framework in mitigating overfitting in extremely low data scenarios. While Barlow Twins exhibits greater resilience in low-data regimes compared with the two previous approaches, DiRA further enhances its performance by an average of 0.2%, 0.8%, 0.9%, and 0.5% across all four datasets when utilizing 1%, 5%, 10%, and 25% of the training data, respectively. In conclusion, our results in low-data regimes highlight the superiority of our framework in capturing more robust and transferable representations, paving the way for developing more accurate models for downstream tasks with limited labeled data and reducing annotation costs.

4.3. DiRA enhances weakly-supervised disease localization

Experimental setup.

We investigate the effectiveness of our DiRA framework in a weakly-supervised setting, comparing its applicability for localizing thoracic diseases to the underlying discriminative methods. To do so, we use the ChestX-ray14 dataset, which includes bounding box annotations for eight thoracic diseases in 983 images, as described in (Wang et al., 2017). Bounding box annotations are only employed during the inference phase as ground truth to evaluate the disease localization accuracy. During the training phase, we initialize downstream models with SSL-pretrained models and fine-tune them using only image-level disease labels from ChestX-ray14 dataset. We then employ GradCAM (Selvaraju et al., 2017) to generate heatmaps, which identify the spatial location of specific thoracic diseases. For quantitative analyses, we follow the common protocol (Wang et al., 2017; Choe et al., 2020; Selvaraju et al., 2017) and first normalize each heatmap using min-max normalization; then, following (Wang et al., 2017), we binarize the heatmaps and generate bounding boxes around the isolated regions. We compute the intersection over union (IoU) between the computed and ground truth bounding boxes to assess localization accuracy. Following (Wang et al., 2017; Choe et al., 2020), a localization is considered correct when the bounding box prediction overlaps with the ground truth bounding box with IoUδ, where δ represents an overlap threshold. To provide a more comprehensive assessment, we investigate the localization accuracy under various values of δ, ranging from 10% to 60%. For each value of δ, we run each method at least five times and report the average accuracy across all runs.

Quantitative results.

Fig. 5 depicts the mean localization accuracy over eight diseases for DiRA models and the underlying discriminative models. Our results demonstrate that DiRA models offer significant improvements in disease localization across all IoU thresholds compared with the original discriminative methods. Specifically, DiRAMoCo-v2, DiRABarlow Twins, and DiRASimSiam exhibit average improvements of 2.4%, 5.4%, and 9.4% in disease localization across all IoU thresholds.

Qualitative results.

Fig. 6 displays the visualization of GradCAMs for DiRA and the original discriminative methods. As seen, our framework learns more fine-grained representations, leading to more precise disease localization. Specifically, the heatmaps provided by MoCo-v2, Barlow Twins, and SimSiam models exhibit high variability, whereas DiRA models consistently demonstrate more robust and accurate disease localization results compared with each respective original method. More visualizations are provided in the Appendix A.

In conclusion, the quantitative and qualitative results indicate that our SSL framework yields a more fine-grained visual feature space, which captures essential cues for disease localization. Additionally, through the production of more interpretable activation maps, our DiRA framework demonstrates possible clinical potential for post-hoc interpretation by radiologists.

4.4. DiRA outperforms fully-supervised baselines

Experimental setup.

We evaluate the transferability of DiRA models, which have been only pretrained on unlabeled images from ChestX-ray14 dataset, against two competitive fully-supervised pretrained models: (1) the supervised ImageNet model, which is the common transfer learning approach in medical imaging (Azizi et al., 2021; Hosseinzadeh Taher et al., 2021), and (2) a supervised model that has been pretrained on ChestX-ray14, which serves as an upper-bound in-domain transfer learning baseline. Both supervised baselines use the same encoder (ResNet-50) as DiRA models. We fine-tune all pretrained models for six diverse applications, ranging from target tasks on the source dataset to tasks that involve substantial shifts in data distribution and the disease/object of interest.

Results.

As shown in Table 3, DiRA models, pretrained with zero annotated data, yield higher or comparable performance compared with fully-supervised ImageNet and ChestX-ray14 models that have been pretrained using 1.3M and 86K labeled images, respectively. Particularly, DiRAMoCo-v2 outperforms both supervised baselines in CheXpert, SCR-Heart, SIIM-ACR, and Montgomery. Also, DiRABarlow Twins shows superiority over supervised baselines in CheXpert, SIIM-ACR, and ChestX-Det. Finally, DiRASimSiam outperforms the supervised ImageNet model in SCR-Heart and SIIM-ACR, and the supervised ChestX-ray14 model in SCR-Heart and Montgomery. These results imply that our SSL framework can provide more versatile features than supervised pretraining, highlighting its potential for reducing future annotation costs in medical imaging.

4.5. DiRA provides more reusable low/mid-level features

Convolutional neural networks are widely recognized for their ability to construct feature hierarchies– lower layers of the network tend to learn more general, low/mid-level features, while higher layers are more likely to capture task-specific features (Neyshabur et al., 2020; Haghighi et al., 2021). The advantages of transfer learning are typically attributed to the reuse of pretrained low/mid-level features in downstream tasks (Asano et al., 2020; Zhao et al., 2021; Islam et al., 2021; Raghu et al., 2019). Higher feature reuse indicates that a self-supervised pretrained model captures more useful features, leading to higher performance in downstream tasks, especially those with limited annotated data (Kaku et al., 2021). Thereby, to further assess the quality of representations learned by our DiRA framework, we go beyond the transfer learning performance and conduct complementary feature reuse analyses.

Experimental setup.

We investigate how our SSL framework can improve feature reuse compared with the original discriminative methods by measuring the similarity of the features before and after fine-tuning on the downstream tasks. If a SSL pretrained model provides features that are similar to the fine-tuned model, it indicates that the SSL approach has learned more useful features. Following (Neyshabur et al., 2020), we employ the Centered Kernel Alignment (CKA) (Kornblith et al., 2019) metric to measure feature similarity. Following (Kaku et al., 2021), we conduct feature reuse evaluations in limited labeled data regimes on classification (10% labeled data of the ChestX-ray14) and segmentation (Montgomery) tasks. We extract features from conv1 and the end of four residual blocks of the ResNet-50 backbone, denoted as layers 1 to 5, and then pass them to a global average pooling layer to compute feature similarity. We fine-tune each SSL model at least five times and report the average CKA score on each downstream task.

Results.

Each row in Table 4 presents the per-layer feature similarity between a pretrained model and the corresponding fine-tuned model across two downstream tasks. Our results indicate that DiRA models consistently provide more reusable low/mid-level features (layers 1 to 3) compared with the original discriminative methods. Specifically, DiRAMoCo-v2, DiRABarlow Twins, and DiRASimSiam yield an average improvement of 20%, 12%, 14% across the initial three layers in the ChestX-ray14, and 16%, 15%, and 21% in the Montgomery. These results demonstrate DiRA’s capability in capturing more fine-grained details, resulting in more reusable features which allows improved generalization to downstream tasks with low-data regimes. Moreover, our analysis reveals that the initial layers (i.e., layers 1 to 3) of DiRA models yield more reusable features than the higher layers (i.e., layers 4 and 5). This observation, in line with previous studies (Asano et al., 2020; Zhao et al., 2021; Neyshabur et al., 2020) and in accordance with our transfer learning results (Fig. 4 and Table 2), highlights the significance of low/mid-level features in transfer learning.

4.6. DiRA elevates restorative self-supervised learning

Experimental setup.

We investigate the effectiveness of our framework in enhancing restorative representation learning in both 2D and 3D settings by applying DiRA to (1) MAE (He et al., 2022) as a representative of masked image modeling (MIM) SSL approaches that leverage a mask-and-reconstruct training mechanism with vision transformers; and (2) TransVW (Haghighi et al., 2021), as a representative of 3D restorative SSL methods for 3D medical imaging, demonstrating superior performance compared with other approaches, including discriminative (Zhuang et al., 2019; Taleb et al., 2020), restorative-only (Zhou et al., 2021b; Chen et al., 2019; Pathak et al., 2016), and restorative and adversarial methods (Tao et al., 2020). To evaluate the generalizability and transferability of the learned representations by our DiRA framework when applied to MAE, we fine-tune both the original MAE and our DiRA-MAE models on six 2D downstream tasks, covering classification (ChestX-ray14 and CheXpert) and segmentation (SIIM-ACR, SCR-Heart, NIH Montgomery, and ChestX-Det). Similarly, for TransVW, we fine-tune both the original TransVW and our DiRATransVW models on five 3D downstream tasks, including classification (lung nodule and pulmonary embolism false-positive reduction) and segmentation (lung nodule, liver, and brain tumor segmentation).

Results—MAE vs. DiRAMAE:

As seen in Fig. 7, DiRA consistently boosts the performance of MAE across downstream tasks. Specifically, DiRAMAE delivers significantly improved performance (p<0.05) compared with the original MAE in ChestX-ray14, CheXpert, ChestX-Det, SIIM-ACR, and SCR-Heart, and comparable performance in NIH Montgomery. These results suggest that by incorporating discriminative, restorative, and adversarial learning, DiRA empowers MAE to capture more comprehensive representations, facilitating better generalization across a diverse set of tasks.

Table 5 illustrates the comparison of our DiRAMAE with two fully-supervised baselines—pretrained on ImageNet (Touvron et al., 2021) and ChestX-ray14 datasets using the same backbone (ViT-S/16) as DiRAMAE, across six downstream tasks. Notably, DiRAMAE consistently exhibits significantly better performance (p<0.05) compared with both supervised baselines across all tasks. Specifically, DiRAMAE achieves performance increases of 2.4%, 3.1%, 1.8%, 1.3%, and 2.0% compared with the supervised ChestX-ray14 model in CheXpert, SIIM-ACR, SCR-Heart, Montgomery, and ChestX-Det, respectively. Similarly, DiRAMAE demonstrates performance increases of 1.2%, 0.9%, 1%, 0.7%, 0.4%, and 0.95% compared with the supervised ImageNet model in ChestX-ray14, CheXpert, SIIM-ACR, SCR-Heart, Montgomery, and ChestX-Det. These results suggest that our SSL framework yields more generalizable features compared with supervised pretraining, highlighting its potential for annotation efficiency in pretraining ViT models.

Results—TransVW vs. DiRATransVW:

Our results in Table 6 indicate that DiRA framework consistently enhances TransVW’s performance across four 3D target task. Specifically, DiRA improves TransVW in lung nodule false positive reduction, lung nodule segmentation, liver segmentation, and brain tumor segmentation, and yields comparable performance in PE false positive reduction task. These results imply that the integration of three learning components in DiRA can enhance self-supervision approaches by capturing more diverse and discriminative visual representations, leading to a greater generalization across different downstream tasks.

To further demonstrate the effectiveness of our DiRA framework in enhancing TransVW, we investigate their learned representations under limited labeled data regimes. To do so, we compared the performance of DiRATransVW against both TransVW and training from scratch (as the lower bound), using partially labeled data in three 3D downstream tasks: lung nodule segmentation, PE false positive reduction (PE FPR), and lung nodule false positive reduction (lung nodule FPR). For clarity, we identify the minimum required data for training from scratch and TransVW to achieve a performance comparable (based on t-test) to their performance when using the entire training dataset. Moreover, we determine the minimum required data for DiRATransVW to achieve the performance equivalent to that of training from scratch and TransVW. Our results, shown in Fig. 8, indicate that DiRATransVW exhibits greater label efficiency compared with both training from scratch and TransVW across tasks. For instance, in the lung nodule FPR, DiRATransVW with only 30% of training data yields equivalent performance to training from scratch with 70% of data. Consequently, DiRATransVW reduces 57% of the annotation cost in the lung nodule FPR task compared with training from scratch. Moreover, DiRATransVW with 70% of data achieves equal performance with TransVW using 95% of data, resulting in a noteworthy 26% reduction in annotation costs for the lung nodule FPR task compared with TransVW. Overall, DiRATransVW reduces the annotation cost by 60%, 57%, and 57% in comparison with training from scratch, and 87%, 16%, and 26% compared with TransVW in lung nodule segmentation, PE FPR, and lung nodule FPR, respectively. These results highlight the efficacy of DiRA in capturing more robust and generalizable representations for downstream tasks with a dearth of labeled data.

5. Ablation studies

This section presents the results of our ablation studies. We first investigate the impact of three key components in our SSL framework on transfer learning performance. Subsequently, we conduct complementary feature analysis experiments to gain deeper insights into the effect of fine-grained information on enhancing the discriminative power of features acquired through discriminative self-supervised learning methods. Following that, we conduct experiments to provide deeper insights into the impact of loss coefficients within the overall training objective of DiRA on representation learning. Finally, we examine the impact of pretraining data scale on the transfer performance of contrastive self-supervised learning.

5.1. DiRA realizes a new paradigm of collaborative learning

Experimental setup.

Our DiRA framework takes the advantages of three components in representation learning: discriminative, restorative, and adversarial learning. Therefore, we conduct a thorough ablation study to assess the impact of each component on downstream tasks’ performances. To do so, for each underlying self-supervised method, i.e. MoCo-v2, Barlow Twins, and SimSiam (referred to as the base), we start with the discriminative learning component and gradually incorporate restorative and the adversarial learning components. Once all three components are unified, they form the completed DiRA models. We pretrain all models on the training set of the ChestX-ray14 dataset and fine-tune them for six downstream tasks, including classification (ChestX-ray14 and CheXpert) and segmentation (SCR-Hear, ChestX-Det, SIIM-ACR, and Montgomery) tasks.

Results.

We draw the following observations from the results in Table 7. Firstly, our findings indicate that incorporating a restoration task consistently improves the performance of discriminative self-supervised methods. Specifically, adding res into training objectives of MoCo-v2, Barlow Twins, and SimSiam boosts the corresponding original methods in all downstream tasks with the exception of SimSiam in ChestXray14, which shows slight performance degradation. It should be noted that the performance gap observed in SimSiam for the ChestXray14 task is later compensated after adding adv, which highlights the collaborative learning between the restorative and adversary components within our framework. Secondly, our results demonstrate that incorporating an adversarial discriminator into the restoration component offers significant benefits, improving the performance of all methods across six different downstream tasks. Our observations suggest that unifying three SSL learning components in DiRA models significantly improves the original self-supervised methods through preserving more fine-grained contextual information from medical images.

Table 7.

Ablation study on different components of DiRA: we study the impact of each learning component of DiRA, including discrimination, restoration, and adversary, in four downstream tasks. Incremental addition of restorative learning (res) to discriminative learning leads to consistent performance improvements. Furthermore, equipping models with adversarial learning (adv) yields further performance boosts across all tasks.

Base Pretraining dataset dis res adv Classification Segmentation

ChestX-ray14 CheXpert SIIM-ACR Montgomery SCR-Heart ChesX-Det
MoCo-v2 ChestX-ray14 80.36±0.26 86.42±0.42 67.89±1.14 98.03±0.22 92.45±0.92 70.83±1.30
80.72±0.29 86.86±0.37 68.16±1.07 98.19±0.08 93.88±0.58 70.99±1.27
81.12±0.17 87.59±0.28 69.24±0.41 98.24±0.09 94.17±1.01 72.84±1.13

Barlow Twins ChestX-ray14 80.45±0.29 86.90±0.62 69.71±0.34 98.13±0.13 91.87±1.88 71.80±1.18
80.86±0.16 87.44±0.33 69.83±0.29 98.15±0.14 92.15±1.35 73.21±1.24
80.88±0.30 87.50±0.27 69.87±0.68 98.16±0.06 93.19±0.93 73.49±0.78

SimSiam ChestX-ray14 79.62±0.34 83.82±0.94 67.58±1.89 97.72±0.27 92.26±1.72 70.49±1.07
79.41±0.42 84.45±0.46 68.35±1.16 98.02±0.21 93.56±0.61 70.60±1.64
80.44±0.29 86.04±0.43 68.76±0.69 98.17±0.11 93.75±0.98 72.10±1.36

5.2. Fine-grained self-supervised learning yields more discriminative features

Instance discrimination methods treat each image as a distinct class and aim to learn an optimal embedding space where all instances are well-separated. Effective separation in the embedding space indicates that the SSL method has learned more discriminative features, leading to better generalization to various downstream tasks. But, given the fundamental anatomical similarity of medical images, the global representations captured by standard instance discrimination methods may be insufficient to distinguish similar appearing medical images from one another. In fact, such coarse-grained representations may lead to a sub-optimal embedding space, which does not generalize well to different downstream tasks. We believe that exploiting the diversity in the local context of images can empower instance discrimination learning with more discriminative features, distinguishing individual images more effectively.

Experimental setup.

To demonstrate the impact of finegrained contextual information for enhancing instance discrimination, we integrate restorative learning with three instance discrimination methods, namely MoCo-v2, Barlow Twins, and SimSiam, and compare the distribution of distances between features learned by them with the original instance discrimination counterparts. To do so, we first utilize the pretrained models to extract features from images in the testing set of ChestX-ray14 dataset. We extract features from the last layer of the ResNet-50 backbone and apply global average pooling to obtain a feature vector for each image. Then, we normalize the features and compute all pairwise distances between features of individual images using the Euclidean distance metric. Finally, we visualize the distance distributions with Gaussian kernel density estimation (KDE). A SSL approach that captures more diverse and discriminative representations, yields an embedding space with greater feature distances.

Results.

As shown in Fig. 9, exploiting the diversity in the local context of images empowers the instance discrimination methods to provide substantially increased feature distances in comparison with the original methods. In particular, the mean distance of MoCo-v2, Barlow Twins, and SimSiam increased by 9%, 30%, and 11%, respectively. The enhanced separation of images in the embedding space implies that fine-grained SSL provides more discriminative features by adequately capturing finer contextual information from individual images.

Fig. 9.

Fig. 9.

Comparison of feature distance distributions: incorporating fine-grained representation learning into instance discrimination SSL methods leads to enlarged feature distances compared with the original methods.

5.3. Impact of loss coefficients

Experimental setup.

We perform a comprehensive ablation study to explore various scales for the discriminative, restorative, and adversarial loss coefficients (i.e. λdis, λres, and λadv) within the overall training objective of DiRA, aiming to provide deeper insights into the impact of these hyperparameters on representation learning. To do so, we train our DiRAMoCo-v2 model with different scales for each loss coefficient and monitor each model’s performance across various downstream tasks, including SIIM-ACR, SCR-Heart, ChestX-Det, and 10% of ChestX-ray14 datasets. In particular, we start by examining different scales (i.e. 0.1, 1, and 10) for λdis. After selecting the optimal λdis as per our ablation study, we evaluate different scales (i.e. 1, 10, and 100) for the λres. Finally, with λdis and λres set to their optimal values, we explore different scales (i.e. 0.0001, 0.001, and 0.01) for λadv. For a comprehensive analysis, we also include the results of the original MoCo-v2 as the performance lower-bound for each downstream task.

Results.

We draw the following observations from the results in Fig. 10. (1) As seen in Fig. 10-a, Fig. 10-b, and Fig. 10-c, using different values of λdis, λres, and λadv, DiRAMoCo-v2 models consistently outperform the original MoCo-v2 model in almost all cases. This finding underscores the robustness of our SSL framework to these hyperparameters, indicating that the integration of the three components consistently delivers top performance. (2) As seen in Fig. 10-a, reducing λdis to 0.1 can markedly decrease the downstream performance, particularly in the classification task (i.e. ChestX-ray14 dataset), compared with adhering to a coefficient value of 1. Conversely, increasing λdis from 1 to 10 does not consistently translate to improved performance in downstream tasks. In fact, the model with a higher discrimination loss coefficient exhibits statistically comparable or inferior performance to the model with the unscaled discrimination loss across various downstream tasks. These results suggest that setting λdis to 1 is a favorable choice for this hyperparameter. (3) As seen in Fig. 10-b, decreasing λres from 10 to 1 leads to a decrease in downstream performance, especially for segmentation tasks in SIIM-ACR and SCR-Heart datasets, compared with using a larger coefficient value of 10.

Fig. 10.

Fig. 10.

Ablation study on loss coefficient: we examine various scales for the (a) discriminative loss coefficient (λdis), (b) restorative loss coefficient (λres), and (c) adversarial loss coefficients (λadv) using our DiRAMoCo-v2 model. Using different values of λdis, λres, and λadv, DiRAMoCo-v2 models demonstrate superior performance compared with the original MoCo-v2 model (as indicated by the blue vertical lines) in nearly all cases, highlighting the robustness of our DiRA framework to these hyperparameters. Nevertheless, a judicious tuning of these coefficients could facilitate further performance improvement.

This trend may be attributed to the potential reduction in the model’s restoration learning capacity relative to its discrimination learning capacity when using a lower value for λres. Nevertheless, increasing λres from 10 to 100 reduces performance across tasks, with a more pronounced impact on the classification performance in ChestX-ray14 dataset. These results imply that an excessive submissiveness or dominance of the restoration loss over the discrimination loss may not be advantageous. Instead, maintaining a balance between them appears more suitable for different downstream tasks. (4) As seen in Fig. 10-c, decreasing λadv from 0.001 to 0.0001 enhances the average performance across downstream tasks, with no significant difference based on our statistical analysis. Conversely, we observed that increasing the value of λadv from 0.001 to 0.01 decreases downstream performance across all tasks, with a statistically significant decline in SCR-Heart and ChestX-ray14 datasets. These observations, in line with previous studies (Pathak et al., 2016; Tao et al., 2020), underscore the preference for lower adversarial loss coefficient values over the restoration loss coefficient in generative-adversarial learning settings. In summary, our ablation experiments imply that our DiRA framework exhibits robustness to variations in loss coefficient hyperparameters; nonetheless, a judicious selection of these coefficients has the potential to further optimize performance.

5.4. Impact of pretraining data scale on contrastive learning

The capability to harness large-scale data without relying on human annotations is a pivotal advantage of self-supervised learning. The efficacy of pretraining self-supervised models with massive photographic images, particularly using contrastive approaches, has been proved in various vision tasks (He et al., 2020; Goyal et al., 2021). However, given the marked differences between photographic and medical images, it remains unexplored to what extent contrastive SSL techniques benefit from large-scale pretraining datasets when applied to medical tasks. In contrast to photographic images, medical images (e.g. chest radiographs) display great similarities in global anatomy. We hypothesize that contrasting medical images against each other, even with a larger dataset, may not enable the model to capture more diverse representations. Consequently, contrastive learning may not fully realize the potential benefits of large-scale pretraining data in medical imaging. To test this hypothesis, we systematically study the scaling behaviors of contrastive learning for medical imaging through extensive experiments with pretraining data ranging from modest to large-scales.

Experimental setup:

We investigate the impact of pretraining data size on the transfer performance of contrastive self-supervised learning in medical imaging. To do so, we evaluate the transferability of MoCo-v2 models pretrained with varying amounts of unlabeled data, ranging from modest datasets (i.e., 86K samples) to considerably larger ones (i.e., 4.8M samples), across a diverse set of downstream tasks. Specifically, we assemble data from four public chest radiographic datasets—ChestX-ray14, PadChest (Bustos et al., 2020), CheXpert, and MIMIC-CXR (Johnson et al., 2019)—to gradually form larger-scale datasets for pretraining. As summarized in Table 8, we employ these datasets to pretrain MoCo-v2 with 86K, 246K, 469K, and 837K samples. Moreover, we examine the MoCo-v2 model pretrained on a collection of 4.8M images provided by Cho et al. (2023). All five pretrained models under the study employ the same backbone (i.e. ResNet-50), and are fine-tuned for five downstream tasks, encompassing classification tasks on ChestX-ray14 and CheXpert datasets, as well as segmentation tasks on SCR-Heart, ChestX-Det, and SIIM-ACR datasets.

Table 8.

We assess the impact of pretraining data scale on the performance of contrastive SSL in medical imaging by evaluating MoCo-v2 models pre-trained on varying number of unlabeled images collected from different data sources.

#Images Source
86K ChestX-ray14
246K ChestX-ray14, PadChest
469K ChestX-ray14, PadChest, CheXpert
837K ChestX-ray14, PadChest, CheXpert, MIMIC-CXR
4.8M Hospital-scale dataset (Cho et al., 2023)

Results.

Our results in Fig. 11 indicate that increasing the amount of pretraining data does not provide additional benefits to downstream performance. Specifically, for segmentation tasks, we observe that increasing the pretraining data from 86K to 4.8M does not result in statistically significant changes in performance. Notably, the model pretrained with 86K images yields comparable performance to the one pretrained with 4.8M images in SIIM-ACR, SCR-Heart, and ChestX-det applications. Similarly, for classification tasks, increasing the amount of pretraining data from 86K to 4.8M either fails to increase or even leads to slight decrease in performance. For instance, when comparing models pretrained with 86K and 4.8M images, the former demonstrates superior performance in ChestX-ray14 and equivalent performance in CheXpert. We surmise that contrastive methods might face challenges in effectively distinguishing medical images, which consist of similar global structures, from one another. Furthermore, scaling the number of images, which could introduce variations in data distribution, might exacerbate this challenge, potentially leading to a negative impact on the generalizability of features in models pretrained with larger datasets. In summary, our results suggest that scaling pretraining data standalone for contrastive learning may not translate to additional boosts in transfer performance; thereby, exploring more advanced techniques for optimizing contrastive learning, as well as designing pretext tasks that take into account the unique properties of medical images, holds the potential to fully unlock the benefits of self-supervised pretraining at scale for medical imaging.

Fig. 11.

Fig. 11.

Ablation study on the impact of pretraining data scale on the transfer performance of contrastive learning: we evaluate MoCo-v2 models pretrained with varying amounts of unlabeled data, ranging from 86K to 4.8M, across five downstream tasks. Increasing the volume of pretraining data may not necessarily yield additional benefits to downstream performance.

6. Related works

6.1. Discriminative self-supervised learning

Discriminative methods aim to train models that can distinguish samples of different (pseudo) classes. Discriminative methods can be divided into class-level and instance-level discrimination. Class-level discrimination methods generate target class labels based on relative positions of patch images (Doersch et al., 2015; Noroozi and Favaro, 2016), orientations of objects within images (Gidaris et al., 2018), or cluster assignments (Zhan et al., 2020; Caron et al., 2018, 2021a), and then train a model to predict the pseudo labels of the input images. On the other hand, instance-level discrimination has emerged as a prominent approach for learning more robust representations. The pivotal idea is to consider each image as a unique class and train a model to align the representations of the augmented views from the same image, enforcing invariance to image transformations. Instance-level discrimination methods exploit different strategies to prevent collapsing solutions. Contrastive methods (He et al., 2020; Chen et al., 2020b; Wu et al., 2018; Chen et al., 2020c; Chuang et al., 2022; Zhang et al., 2022a; Caron et al., 2021a; Ye et al., 2019; Li et al., 2021) employ samples from different images or different clusters as negative pairs to distinguish dissimilar samples from each other. Self-distillation methods (Chen and He, 2021; Grill et al., 2020; Caron et al., 2021b; Gidaris et al., 2021) train a student network to predict the representations of a teacher network, and the teacher network’s weights are not updated by back-propagation but instead are a moving average of the student network’s weights or shared with the student network. Information maximization methods (Zbontar et al., 2021; Ermolov et al., 2021; Bardes et al., 2022; Zhang et al., 2022b) maximize the information content of the representations while also preserving the similarity between different views of the same image in the embedding space. Additionally, recent works (Xie et al., 2021b; Caron et al., 2021b; Chen et al., 2021c) have explored instance discrimination for pretraining vision transformers. However, both class-level and instance-level discrimination approaches yield global image representations, which may limit their ability to generalize to the tasks that require finer-grained representations (Wang et al., 2021; Xie et al., 2021c,a). By contrast, our DiRA incorporates restorative and adversarial learning, which not only enhances discriminative learning but also captures fine-grained representations required for medical imaging tasks.

6.2. Restorative and adversarial self-supervised learning

Restorative methods seek to preserve the instance-level fidelity, ensuring the faithful reconstruction of individual data samples. These methods employ element-wise metrics to measure image similarity at pixel-level. A broad variety of restorative methods apply degradation, such as noise (Vincent et al., 2008), decolorization (Larsson et al., 2017), or masking (Pathak et al., 2016), to perturb or remove some parts of the images, and then train a model to reconstruct the original images or the missing parts. Additionally, Generative Adversarial Networks (GANs) (Goodfellow et al., 2014), initially designed for image generation, have shown promise in acquiring transferable knowledge (Chen et al., 2020a; Donahue and Simonyan, 2019; Dumoulin et al., 2017). Adversarial learning methods aim to preserve set-level fidelity, ensuring the reconstruction is faithful to the entire training dataset (Parmar et al., 2021). Indeed, adversarial learning measures the image similarity using higher-level and sufficiently invariant metrics compared with pixel-wise metrics used by restorative learning (Larsen et al., 2016). This is accomplished by learning a function capable of contrasting (classifying) the set of training images with the set of generated images, thereby encouraging the reconstructed images to align with the true data distribution. With the advent of large-scale vision transformers (Dosovitskiy et al., 2021), masked image modeling (MIM) has emerged as a promising self-supervised technique. MIM methods (Xie et al., 2022; He et al., 2022) are built upon the mask-and-reconstruct pretext task, drawing inspiration from the BERT (Devlin et al., 2019) in Natural Language Processing. Despite achieving impressive results, restorative methods primarily capture local spatial correlations within individual image samples, disregarding the relationships among different samples, which consequently leads to less discriminative representations (Zhou et al., 2022; Mishra et al., 2022). Our DiRA addresses this limitation by incorporating discriminative learning, which complements restorative and adversarial learning through explicitly modeling the relationship between all samples.

6.3. Self-supervised learning in medical image analysis

Self-supervised learning has gained considerable attention in medical vision, primarily due to its potential in mitigating the challenges posed by the limited availability of labeled data. Building upon the success of instance discrimination SSL in vision tasks, recent studies have delved into employing instance discrimination for medical tasks, including adjusting MoCo-based contrastive learning for chest X-ray classification (Zhou et al., 2020; Sowrirajan et al., 2021; Hosseinzadeh Taher et al., 2023; Cho et al., 2023), expanding SimCLR by using multiple scans of the same patients as positive pairs (Azizi et al., 2021), integrating local and global contrastive learning (Chaitanya et al., 2020), and incorporating intermediate features in contrastive learning (Kaku et al., 2021). Another line of research centers around restorative-based approaches, which can be divided into three primary categories: restorative-only methods (Zhou et al., 2021b; Chen et al., 2019; Chang et al., 2022; Xiao et al., 2023), restorative and adversarial methods (Tao et al., 2020), and discriminative and restorative methods (Hosseinzadeh Taher et al., 2022; Haghighi et al., 2021; Zhou et al., 2021a; Tang et al., 2022). Particularly, discriminative and restorative methods, such as TransVW (Haghighi et al., 2021), have demonstrated superiority over restorative-only and restorative and adversarial methods. DiRA distinguishes itself from previous works by (1) uniting discriminative, restorative, and adversarial learning simultaneously in a unified framework; and (2) offering a versatile representation learning framework that seamlessly aligns with existing discriminative, restorative, and adversarial methods, regardless of their objective functions.

6.4. Our previous work

Haghighi et al. (2022) first introduced the integration of discriminative, restorative, and adversarial learning into a unified framework, pioneering a new paradigm of collaborative learning for SSL. This paper substantially expands upon the preliminary version and incorporates the following notable enhancements:

  1. We have extended our transfer learning evaluations to 12 medical tasks, showcasing the superior generalizability of DiRA models compared with existing state-of-the-art SSL approaches across distribution shifts, diseases, organs, and modalities (see Sec. 4.1).

  2. We have conducted extensive experiments in more restricted data regimes and added disease segmentation task (ChestX-Det), demonstrating the label efficiency of DiRA models for medical image classification and segmentation tasks (see Sec. 4.2).

  3. We have provided quantitative evaluations for weakly-supervised disease localization, indicating the effectiveness of DiRA models in encoding essential cues for disease localization compared with existing SSL methods (see Sec. 4.3).

  4. We have expanded the comparison of DiRA models with fully-supervised baselines by adding two new downstream tasks, namely heart and thoracic diseases segmentation, highlighting the superiority of DiRA models over their fully-supervised counterparts (see Sec. 4.4).

  5. We have analyzed feature quality in terms of feature reuse, revealing that DiRA models capture highly reusable low/mid-level features for medical downstream tasks (see Sec. 4.5).

  6. We have conducted comprehensive ablation studies on the impact of each learning components in DiRA, demonstrating the synergy of three learning components for collaborative learning (see Sec. 5.1).

  7. We have investigated the impact of fine-grained contextual details on instance discrimination pretext tasks, demonstrating that the diversity of local information empowers instance discrimination methods to capture more discriminative features (see Sec. 5.2)

  8. We have adopted MAE, as a representative of ViT-based masked autoencoders, into our DiRA framework, demonstrating the efficiency of DiRA in enhancing MAE across diverse classification and segmentation downstream tasks (see Sec. 4.6).

  9. We have compared our DiRAMAE model with ViT backbone against two fully-supervised baseline counterparts—pretrained on ImageNet and ChestX-ray14 datasets with the same ViT backbone—showcasing superior performance of DiRAMAE over supervised baselines in six downstream tasks (see Sec. 4.6).

  10. We have investigated the efficacy of our DiRATransVW under limited labeled data regimes in 3D downstream tasks, revealing that DiRATransVW achieves greater label efficiency through a significant reduction in annotation costs compared with TransVW (see Sec. 4.6).

  11. We have conducted a comprehensive ablation study on the discriminative, restorative, and adversarial loss coefficients, providing deeper insights into the impact of these hyperparameters on the learning process (see Sec. 5.3).

  12. We have systematically investigated the impact of pretraining data scale on the transfer performance of contrastive self-supervised learning across various medical imaging tasks, revealing that increasing the amount of pretraining data may not yield additional benefits to downstream performance (see Sec. 5.4).

7. Conclusion

This paper introduces DiRA, the first self-supervised framework that unites discriminative, restorative, and adversarial learning in a unified manner. The core contribution of DiRA stems from the insights we have gained into the synergistic effects of these three SSL approaches in collaborative learning. Our extensive experiments on a diverse suite of medical tasks demonstrate that DiRA encourages collaborative learning among three learning ingredients, resulting in more generalizable representation for different medical tasks, superior performance over supervised and self-supervised baselines, and higher reusability of low/mid-level features. Given DiRA’s generalizability, we envision it will take a fundamental step towards developing universal representations for medical imaging. Our DiRA offers remarkable performance gains; nevertheless, in our experiments, we kept the restorative learning task fixed while exploring various formulations of discriminative learning. Future research into a broader range of restoration tasks and optimal collaborative learning strategies holds the potential to yield even stronger representations for medical imaging applications.

Fig. 1.

Fig. 1.

Despite the critical contributions of discriminative, restorative, and adversarial learning to SSL performance, both individually and in pairs, existing efforts have not exploited the simultaneous utilization of all three learning ingredients in an SSL schema. Our proposed DiRA, a novel SSL framework, unites discriminative, restorative, and adversarial learning in a unified manner to collaboratively glean complementary visual information from unlabeled data for fine-grained semantic representation learning.

Fig. 13.

Fig. 13.

Visualization of Grad-CAM heatmaps for Barlow Twins vs. DiRABarlow Twins

Highlights.

  • An analysis into the synergy of discriminative, restorative, and adversarial learning.

  • The first framework that unites discriminative, restorative, and adversarial learning.

  • Extensive experiments that demonstrate the generalizability of the proposed framework.

  • A set of feature evaluations that reveal insights into the representations’ quality.

Acknowledgments:

We thank Zuwei Guo for implementing DiRATransVW, evaluating its performance on lung nodule segmentation, liver segmentation, brain tumor segmentation, lung nodule FPR, and PE FPR downstream tasks, and evaluating its performance on limited data regimes in lung nodule segmentation, Lung nodule FPR, and PE FPR downstream tasks (Guo et al., 2022, 2024). This research has been supported in part by ASU and Mayo Clinic through a Seed Grant and an Innovation Grant, and in part by the NIH under Award Number R01HL128785. The content is solely the responsibility of the authors and does not necessarily represent the official views of the NIH. This work has utilized the GPUs provided in part by the ASU Research Computing and in part by the Bridges-2 at Pittsburgh Supercomputing Center through allocation BCS190015 and the Anvil at Purdue University through allocation MED220025 from the Advanced Cyberinfrastructure Coordination Ecosystem: Services & Support (ACCESS) program, which is supported by National Science Foundation grants #2138259, #2138286, #2138307, #2137603, and #2138296. The content of this paper is covered by patents pending.

Appendix

A. Additional qualitative results

Fig. 1214 present the visualizations of heatmaps generated by DiRA and the corresponding discriminative models for 8 thoracic pathologies in the ChestX-ray14 dataset. As seen, DiRA models provide more accurate pathology localization compared with the underlying discriminative methods. These results demonstrate the impact of restorative learning in providing fine-grained features that are useful for disease localization.

Fig. 12.

Fig. 12.

Visualization of Grad-CAM heatmaps for MoCo-v2 vs. DiRAMoCo-v2

Fig. 14.

Fig. 14.

Visualization of Grad-CAM heatmaps for SimSiam vs. DiRASimSiam

B. Implementation

B.1. Pretraining settings

We apply DiRA to five existing self-supervised methods (Chen et al., 2020c; Chen and He, 2021; Zbontar et al., 2021; He et al., 2022; Haghighi et al., 2021). To be self-contained, we’ll explain each method briefly here. Also, we provide additional pretraining details that supplements Sec. 3.1.

MoCo-v2 (Chen et al., 2020c):

We adopt MoCo-v2— a representative of contrastive learning methods, into our framework. MoCo leverages a momentum encoder to ensure the consistency of negative samples as they evolve during training. Moreover, a queue K=k1,k2,kN is utilized to store the representations of negative samples. The discrimination task is to contrast representations of positive and negative samples. As MoCo-v2 is adopted in DiRA, the encoder fθ and projection head hθ are updated by back-propagation, while fξ and hξ are updated by using an exponential moving average (EMA) of the parameters in fθ and hθ, respectively. The discrimination branch is trained using InfoNCE loss (van den Oord et al., 2019), which for a pair of positive samples x1 and x2 defined as follows:

dis=logexpz1z2/τn=0Nexpz1kn/τ (B.1)

where z1=hθfθx1 and z2=hξfξx2, τ is a temperature hyperparameter, and N is the queue size. Following (Chen et al., 2020c), fθ is a standard ResNet-50 and hθ is a two-layer MLP head (hidden layer 2048-d, with ReLU). Moreover, when adopting MoCo-v2 in DiRA, fθ, hθ, and gθ are optimized using SGD with an initial learning rate of 0.03, weight decay 0.0001, and the SGD momentum 0.9.

SimSiam (Chen and He, 2021):

We adopt SimSiam—a representative of self-distillation methods, into our framework. SimSiam trains the model without negative pairs and directly maximizes the similarity of two views from an image using a simple siamese network followed by a predictor head. To prevent collapsing solutions, a stop-gradient operation is utilized. As such, the model parameters are only updated using one distorted version of the input, while the representations from another distorted version are used as a fixed target. As SimSiam is adopted in DiRA, the encoder fθ and projection head hθ share weights with fξ and hξ, respectively. The model is trained to maximize the agreement between the representations of positive samples using negative cosine similarity, defined as follows:

𝒟z1,y2=z1z12y2y22 (B.2)

where z1=hθfθx1 and y2=fξx2. The discrimination branch is trained using a symmetrized loss as follows:

dis=12𝒟z1,stopgrady2+12𝒟z2,stopgrady1 (B.3)

where stopgrad means that y2 is treated as a constant in this term. Following (Chen and He, 2021), fθ is a standard ResNet-50 and hθ is a three-layer projection MLP head (hidden layer 2048-d), followed by a two-layer predictor MLP head. Moreover, when adopting SimSiam in DiRA, fθ, hθ, and gθ are optimized using SGD with a linear scaling learning rate (lr×BatchSize/256). The initial learning rate is 0.05, weight decay is 0.0001, and the SGD momentum is 0.9.

Barlow Twins (Zbontar et al., 2021):

We adopt Barlow Twins—a representative of information maximization methods, into our framework. Barlow Twins makes the cross-correlation matrix computed from two siamese branches close to the identity matrix. By equating the diagonal elements of the cross-correlation matrix to 1, the representation will be invariant to the distortions applied to the samples. By equating the off-diagonal elements of the cross-correlation matrix to 0, the different components of the representation will be decorrelated, so that the output units contain non-redundant information about the sample. The discrimination loss is defined as follows:

dis=i1Cii2+λiijCij2 (B.4)

where 𝒞 is the cross-correlation matrix computed between the outputs of the hθ and hξ networks along the batch dimension. λ is a coefficient that determines the importance of the invariance and redundancy reduction terms in the loss. Following (Zbontar et al., 2021), fθ is a ResNet-50 and hθ is a three-layer MLP head. Moreover, when adopting Barlow Twins in DiRA, fθ, hθ, and gθ are optimized using LARS optimizer with the learning rate schedule similar to (Zbontar et al., 2021).

MAE (He et al., 2022):

We adopt MAE—a representative of ViT-based masked image modeling methods, into our framework. MAE masks a substantial portion of random patches from input images and then reconstructs the missing patches at the pixel level. It utilizes an encoder-decoder architecture, where the encoder follows the ViT (Dosovitskiy et al., 2021) design, and the decoder is a lightweight vision transformer. The encoder-decoder adopts an asymmetric design: the encoder processes only the visible patches, while the decoder reconstructs the original images from the encoded visible patches and mask tokens. Our training settings for MAE closely follow (Xiao et al., 2023). The image is divided into non-overlapping grid patches, and these patches are randomly masked, with a masking ratio of 90%. Positional embeddings are added to both visible and masked patches to retain information about their original locations in the image. The encoder is then applied to the visible patches, mapping them to latent representations. Subsequently, the decoder processes both visible and masked image patches to restore the original images. For res, we compute Mean squared error (MSE) between the reconstructed and original images in the pixel space, averaged over masked patches. As we adopt MAE into DiRA, fθ is a standard ViT-small with patch size 16×16 and gθ is a vision transformer with depth 2 and embedding dimension 512. Following (Chen et al., 2021c), hθ is a three-layer MLP head (hidden layer 4096-d with ReLU and Batch normalization, output dimension 128). fθ and fξ share weights; similarly, hθ and hξ share weights. For dis, we use InfoNCE as detailed in (Chen et al., 2021c). During the pretraining, fθ, hθ, and gθ are optimized using AdamW optimizer with β1=0.9, β2=0.95, weight decay 0.05, and base learning rate 1.5e − 4. Learning rate is warmed up for 20 epochs, and then decayed following the cosine annealing strategy.

TransVW (Haghighi et al., 2021):

TransVW defines the similar anatomical patterns within medical images as anatomical visual words, and combines the discrimination and restoration of visual words in a single loss objective. As TransVW is adopted in DiRA, the encoder fθ and projection head hθ are identical to fξ and hξ, respectively. In particular, the discrimination branch is trained to classify instances of visual words according to their pseudo class labels using the standard cross-entropy loss:

dis=1Bb=1Bc=1C𝒴bclog𝒫bc (B.5)

where B denotes the batch size; C denotes the number of visual words classes; 𝒴 and 𝒫 represent the ground truth (one-hot pseudo label vector obtained from visual word classes) and the prediction of hθ, respectively. Following (Haghighi et al., 2021), we use 3D U-Net as the fθ and gθ. hθ includes a set of fully-connected layers followed by a classification head. fθ and gθ are trained with the same setting as (Haghighi et al., 2021).

Joint training process:

Following (Chaitanya et al., 2020; Chen et al., 2021a), we perform the overall pretraining with the discrimination, restoration, and adversarial losses in a gradual evolutionary manner. First, the encoder fθ along with projector hθ are optimized using the discrimination loss dis according to the learning schedule of the original discriminative methods (Chen et al., 2020c; Chen and He, 2021; Zbontar et al., 2021; Haghighi et al., 2021), empowering the model with an initial discrimination ability. Then, the restoration and adversarial losses are further fused into the training process incrementally. To stabilize the adversarial training process and reduce the noise from imperfect restoration at initial epochs (Chen et al., 2021a), we first warm up the fθ and gθ using the dis+res, and then add the adversarial loss adv to jointly train the whole framework; the optimization of the framework by incorporation of res and adv takes up to 800 epochs. Following (Zhou et al., 2021a), we use the early-stop technique on the validation set, and the checkpoints with the lowest validation loss are used for fine-tuning.

Footnotes

Publisher's Disclaimer: This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.

Declaration of interests

The authors declare the following financial interests/personal relationships which may be considered as potential competing interests:

Jianming Liang reports financial support was provided by National Institutes of Health. Jianming Liang has patent pending to Arizona State University. Jianming Liang is an associate editor of Medical Image Analysis

References

  1. Armato SG III, McLennan G, Bidaut L, McNitt-Gray MF, Meyer CR, Reeves AP, Zhao B, Aberle DR, Henschke CI, Hoffman EA, et al. , 2011. The lung image database consortium (lidc) and image database resource initiative (idri): a completed reference database of lung nodules on ct scans. Medical physics 38, 915–931. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Asano YM, Rupprecht C, Vedaldi A, 2020. A critical analysis of self-supervision, or what we can learn from a single image. arXiv:1904.13132. [Google Scholar]
  3. Azizi S, Mustafa B, Ryan F, Beaver Z, Freyberg J, Deaton J, Loh A, Karthikesalingam A, Kornblith S, Chen T, Natarajan V, Norouzi M, 2021. Big self-supervised models advance medical image classification. arXiv:2101.05224. [Google Scholar]
  4. Bakas S, Reyes M, Jakab A, Bauer S, Rempfler M, Crimi A, Shinohara RT, Berger C, Ha SM, Rozycki M, et al. , 2018. Identifying the best machine learning algorithms for brain tumor segmentation, progression assessment, and overall survival prediction in the brats challenge. arXiv:1811.02629. [Google Scholar]
  5. Bardes A, Ponce J, LeCun Y, 2022. VICReg: Variance-invariance-covariance regularization for self-supervised learning, in: International Conference on Learning Representations. [Google Scholar]
  6. Bilic P, Christ PF, Vorontsov E, Chlebus G, Chen H, Dou Q, Fu CW, Han X, Heng PA, Hesser J, et al. , 2019. The liver tumor segmentation benchmark (lits). arXiv:1901.04056. [Google Scholar]
  7. Bustos A, Pertusa A, Salinas JM, de la Iglesia-Vayá M, 2020. Padchest: A large chest x-ray image dataset with multi-label annotated reports. Medical Image Analysis 66, 101797. doi: 10.1016/j.media.2020.101797. [DOI] [PubMed] [Google Scholar]
  8. Cao B, Zhang H, Wang N, Gao X, Shen D, 2020. Auto-gan: Self-supervised collaborative learning for medical image synthesis. Proceedings of the AAAI Conference on Artificial Intelligence 34, 10486–10493. URL: https://ojs.aaai.org/index.php/AAAI/article/view/6619, doi: 10.1609/aaai.v34i07.6619. [DOI] [Google Scholar]
  9. Caron M, Bojanowski P, Joulin A, Douze M, 2018. Deep clustering for unsupervised learning of visual features, in: Proceedings of the European Conference on Computer Vision, pp. 132–149. [Google Scholar]
  10. Caron M, Misra I, Mairal J, Goyal P, Bojanowski P, Joulin A, 2021a. Unsupervised learning of visual features by contrasting cluster assignments. arXiv:2006.09882. [Google Scholar]
  11. Caron M, Touvron H, Misra I, Jégou H, Mairal J, Bojanowski P, Joulin A, 2021b. Emerging properties in self-supervised vision transformers, in: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 9650–9660. [Google Scholar]
  12. Chaitanya K, Erdil E, Karani N, Konukoglu E, 2020. Contrastive learning of global and local features for medical image segmentation with limited annotations, in: Advances in Neural Information Processing Systems, Curran Associates, Inc.. pp. 12546–12558. URL: https://proceedings.neurips.cc/paper/2020/file/949686ecef4ee20a62d16b4a2d7ccca3-Paper.pdf. [Google Scholar]
  13. Chang F, Wu C, Wang Y, Zhang Y, Chen X, Tian Q, 2022. Boundary-enhanced self-supervised learning for brain structure segmentation, in: Wang L, Dou Q, Fletcher PT, Speidel S, Li S (Eds.), Medical Image Computing and Computer Assisted Intervention – MICCAI 2022, Springer Nature Switzerland, Cham. pp. 14–23. [Google Scholar]
  14. Chen H, Wang Y, Lagadec B, Dantcheva A, Bremond F, 2021a. Joint generative and contrastive learning for unsupervised person re-identification, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2004–2013. [Google Scholar]
  15. Chen J, Lu Y, Yu Q, Luo X, Adeli E, Wang Y, Lu L, Yuille AL, Zhou Y, 2021b. Transunet: Transformers make strong encoders for medical image segmentation. arXiv:2102.04306. [Google Scholar]
  16. Chen L, Bentley P, Mori K, Misawa K, Fujiwara M, Rueckert D, 2019. Self-supervised learning for medical image analysis using image context restoration. Medical image analysis 58, 101539. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Chen M, Radford A, Child R, Wu J, Jun H, Luan D, Sutskever I, 2020a. Generative pretraining from pixels, in: III, H.D., Singh A (Eds.), Proceedings of the 37th International Conference on Machine Learning, PMLR. pp. 1691–1703. URL: https://proceedings.mlr.press/v119/chen20s.html. [Google Scholar]
  18. Chen T, Kornblith S, Norouzi M, Hinton G, 2020b. A simple framework for contrastive learning of visual representations, in: III, H.D., Singh A (Eds.), Proceedings of the 37th International Conference on Machine Learning, PMLR. pp. 1597–1607. URL: https://proceedings.mlr.press/v119/chen20j.html. [Google Scholar]
  19. Chen X, Fan H, Girshick R, He K, 2020c. Improved baselines with momentum contrastive learning. arXiv:2003.04297. [Google Scholar]
  20. Chen X, He K, 2021. Exploring simple siamese representation learning, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 15750–15758. [Google Scholar]
  21. Chen X, Xie S, He K, 2021c. An empirical study of training self-supervised vision transformers, in: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 9640–9649. [Google Scholar]
  22. Cho K, Kim KD, Nam Y, Jeong J, Kim J, Choi C, Lee S, Lee JS, Woo S, Hong GS, Seo JB, Kim N, 2023. CheSS: Chest x-ray pretrained model via self-supervised contrastive learning. Journal of Digital Imaging doi: 10.1007/s10278-023-00782-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Choe J, Oh SJ, Lee S, Chun S, Akata Z, Shim H, 2020. Evaluating weakly supervised object localization methods right, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). [Google Scholar]
  24. Chuang CY, Hjelm RD, Wang X, Vineet V, Joshi N, Torralba A, Jegelka S, Song Y, 2022. Robust contrastive learning against noisy views, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 16670–16681. [Google Scholar]
  25. Devlin J, Chang MW, Lee K, Toutanova K, 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. ArXiv abs/1810.04805. [Google Scholar]
  26. DeVries T, Taylor GW, 2017. Improved regularization of convolutional neural networks with cutout. arXiv:1708.04552. [Google Scholar]
  27. Doersch C, Gupta A, Efros AA, 2015. Unsupervised visual representation learning by context prediction, in: Proceedings of the IEEE International Conference on Computer Vision, pp. 1422–1430. [Google Scholar]
  28. Donahue J, Simonyan K, 2019. Large scale adversarial representation learning, in: Wallach H, Larochelle H, Beygelzimer A, d'Alché-Buc F, Fox E, Garnett R (Eds.), Advances in Neural Information Processing Systems, Curran Associates, Inc. [Google Scholar]
  29. Dosovitskiy A, Beyer L, Kolesnikov A, Weissenborn D, Zhai X, Unterthiner T, Dehghani M, Minderer M, Heigold G, Gelly S, Uszkoreit J, Houlsby N, 2021. An image is worth 16x16 words: Transformers for image recognition at scale, in: International Conference on Learning Representations. [Google Scholar]
  30. Dumoulin V, Belghazi I, Poole B, Lamb A, Arjovsky M, Mastropietro O, Courville AC, 2017. Adversarially learned inference, in: 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24–26, 2017, Conference Track Proceedings, OpenReview.net. URL: https://openreview.net/forum?id=B1ElR4cgg. [Google Scholar]
  31. Ellis DG, Aizenberg MR, 2021. Trialing u-net training modifications for segmenting gliomas using open source deep learning framework, in: Crimi A, Bakas S (Eds.), Brainlesion: Glioma, Multiple Sclerosis, Stroke and Traumatic Brain Injuries, Springer International Publishing, Cham. pp. 40–49. [Google Scholar]
  32. Ermolov A, Siarohin A, Sangineto E, Sebe N, 2021. Whitening for self-supervised representation learning, in: Meila M, Zhang T (Eds.), Proceedings of the 38th International Conference on Machine Learning, PMLR. pp. 3015–3024. URL: https://proceedings.mlr.press/v139/ermolov21a.html. [Google Scholar]
  33. Gidaris S, Bursuc A, Puy G, Komodakis N, Cord M, Perez P, 2021. Obow: Online bag-of-visual-words generation for self-supervised learning, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6830–6840. [Google Scholar]
  34. Gidaris S, Singh P, Komodakis N, 2018. Unsupervised representation learning by predicting image rotations. arXiv:1803.07728. [Google Scholar]
  35. Goodfellow I, Pouget-Abadie J, Mirza M, Xu B, Warde-Farley D, Ozair S, Courville A, Bengio Y, 2014. Generative adversarial nets, in: Ghahramani Z, Welling M, Cortes C, Lawrence N, Weinberger KQ (Eds.), Advances in Neural Information Processing Systems, Curran Associates, Inc. URL: https://proceedings.neurips.cc/paper/2014/file/5ca3e9b122f61f8f06494c97b1afccf3-Paper.pdf. [Google Scholar]
  36. Goyal P, Caron M, Lefaudeux B, Xu M, Wang P, Pai V, Singh M, Liptchinsky V, Misra I, Joulin A, Bojanowski P, 2021. Self-supervised pretraining of visual features in the wild. CoRR abs/2103.01988. URL: https://arxiv.org/abs/2103.01988, arXiv:2103.01988. [Google Scholar]
  37. Grill JB, Strub F, Altché F, Tallec C, Richemond P, Buchatskaya E, Doersch C, Avila Pires B, Guo Z, Gheshlaghi Azar M, Piot B, kavukcuoglu k., Munos R, Valko M, 2020. Bootstrap your own latent - a new approach to self-supervised learning, in: Larochelle H, Ranzato M, Hadsell R, Balcan MF, Lin H (Eds.), Advances in Neural Information Processing Systems, Curran Associates, Inc.. pp. 21271–21284. URL: https://proceedings.neurips.cc/paper/2020/file/f3ada80d5c4ee70142b17b8192b2958e-Paper.pdf. [Google Scholar]
  38. Guo Z, Islam NU, Gotway MB, Liang J, 2022. Discriminative, restorative, and adversarial learning: Stepwise incremental pretraining, in: Domain Adaptation and Representation Transfer, Springer Nature Switzerland, Cham. pp. 66–76. [DOI] [PMC free article] [PubMed] [Google Scholar]
  39. Guo Z, Islam NU, Gotway MB, Liang J, 2024. Stepwise incremental pretraining for integrating discriminative, restorative, and adversarial learning. Medical image analysis. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Haghighi F, Hosseinzadeh Taher MR, Zhou Z, Gotway MB, Liang J, 2020. Learning semantics-enriched representation via self-discovery, self-classification, and self-restoration, in: Medical Image Computing and Computer Assisted Intervention – MICCAI 2020, Springer International Publishing, Cham. pp. 137–147. [DOI] [PMC free article] [PubMed] [Google Scholar]
  41. Haghighi F, Taher MRH, Gotway MB, Liang J, 2022. Dira: Discriminative, restorative, and adversarial learning for self-supervised medical image analysis, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 20824–20834. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Haghighi F, Taher MRH, Zhou Z, Gotway MB, Liang J, 2021. Transferable visual words: Exploiting the semantics of anatomical patterns for self-supervised learning. IEEE Transactions on Medical Imaging 40, 2857–2868. doi: 10.1109/TMI.2021.3060634. [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. He K, Chen X, Xie S, Li Y, Dollár P, Girshick R, 2022. Masked autoencoders are scalable vision learners, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 16000–16009. [Google Scholar]
  44. He K, Fan H, Wu Y, Xie S, Girshick R, 2020. Momentum contrast for unsupervised visual representation learning, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). [Google Scholar]
  45. He K, Zhang X, Ren S, Sun J, 2016. Deep residual learning for image recognition, in: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 770–778. [Google Scholar]
  46. Hosseinzadeh Taher MR, Gotway MB, Liang J, 2023. Towards foundation models learned from anatomy in medical imaging via self-supervision. arXiv:2309.15358 URL: https://arxiv.org/abs/2309.15358. [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Hosseinzadeh Taher MR, Haghighi F, Feng R, Gotway MB, Liang J, 2021. A systematic benchmarking analysis of transfer learning for medical image analysis, in: Domain Adaptation and Representation Transfer, and Affordable Healthcare and AI for Resource Diverse Global Health, Springer International Publishing, Cham. pp. 3–13. [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Hosseinzadeh Taher MR, Haghighi F, Gotway MB, Liang J, 2022. Caid: Context-aware instance discrimination for self-supervised learning in medical imaging, in: Konukoglu E, Menze B, Venkataraman A, Baumgartner C, Dou Q, Albarqouni S (Eds.), Proceedings of The 5th International Conference on Medical Imaging with Deep Learning, PMLR. pp. 535–551. [PMC free article] [PubMed] [Google Scholar]
  49. Irvin J, Rajpurkar P, Ko M, Yu Y, Ciurea-Ilcus S, Chute C, Marklund H, Haghgoo B, Ball R, Shpanskaya K, et al. , 2019. Chexpert: A large chest radiograph dataset with uncertainty labels and expert comparison. arXiv:1901.07031. [Google Scholar]
  50. Islam A, Chen CF, Panda R, Karlinsky L, Radke R, Feris R, 2021. A broad study on the transferability of visual representations with contrastive learning. arXiv:2103.13517. [Google Scholar]
  51. Jaeger S, Candemir S, Antani S, Wáng YXJ, Lu PX, Thoma G, 2014. Two public chest x-ray datasets for computer-aided screening of pulmonary diseases. Quantitative imaging in medicine and surgery 4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  52. Johnson AEW, Pollard TJ, Berkowitz SJ, Greenbaum NR, Lungren MP, Deng C.y., Mark RG, Horng S, 2019. Mimic-cxr, a de-identified publicly available database of chest radiographs with free-text reports. Scientific Data 6, 317. [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Kaku A, Upadhya S, Razavian N, 2021. Intermediate layers matter in momentum contrastive self supervised learning, in: Ranzato M, Beygelzimer A, Dauphin Y, Liang P, Vaughan JW (Eds.), Advances in Neural Information Processing Systems, Curran Associates, Inc.. pp. 24063–24074. URL: https://proceedings.neurips.cc/paper/2021/file/c9f06258da6455f5bf50c5b9260efeff-Paper.pdf. [Google Scholar]
  54. Kornblith S, Norouzi M, Lee H, Hinton G, 2019. Similarity of neural network representations revisited, in: Chaudhuri K, Salakhutdinov R (Eds.), Proceedings of the 36th International Conference on Machine Learning, PMLR. pp. 3519–3529. URL: https://proceedings.mlr.press/v97/kornblith19a.html. [Google Scholar]
  55. Larsen ABL, Sønderby SK, Larochelle H, Winther O, 2016. Autoencoding beyond pixels using a learned similarity metric, in: Proceedings of The 33rd International Conference on Machine Learning, PMLR, New York, New York, USA. pp. 1558–1566. [Google Scholar]
  56. Larsson G, Maire M, Shakhnarovich G, 2017. Colorization as a proxy task for visual understanding, in: CVPR. [Google Scholar]
  57. Li J, Zhou P, Xiong C, Hoi SCH, 2021. Prototypical contrastive learning of unsupervised representations. arXiv:2005.04966. [Google Scholar]
  58. Lian J, Liu J, Zhang S, Gao K, Liu X, Zhang D, Yu Y, 2021. A structure-aware relation network for thoracic diseases detection and segmentation. IEEE Transactions on Medical Imaging 40, 2042–2052. doi: 10.1109/TMI.2021.3070847. [DOI] [PubMed] [Google Scholar]
  59. Mishra S, Robinson J, Chang H, Jacobs D, Sarna A, Maschinot A, Krishnan D, 2022. A simple, efficient and scalable contrastive masked autoencoder for learning visual representations. arXiv:2210.16870. [Google Scholar]
  60. Neyshabur B, Sedghi H, Zhang C, 2020. What is being transferred in transfer learning?, in: Larochelle H, Ranzato M, Hadsell R, Balcan MF, Lin H (Eds.), Advances in Neural Information Processing Systems, Curran Associates, Inc.. pp. 512–523. URL: https://proceedings.neurips.cc/paper/2020/file/0607f4c705595b911a4f3e7a127b44e0-Paper.pdf. [Google Scholar]
  61. Noroozi M, Favaro P, 2016. Unsupervised learning of visual representations by solving jigsaw puzzles, in: European Conference on Computer Vision, Springer. pp. 69–84. [Google Scholar]
  62. van den Oord A, Li Y, Vinyals O, 2019. Representation learning with contrastive predictive coding. arXiv:1807.03748. [Google Scholar]
  63. Parmar G, Li D, Lee K, Tu Z, 2021. Dual contradistinctive generative autoencoder, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 823–832. [Google Scholar]
  64. Pathak D, Krahenbuhl P, Donahue J, Darrell T, Efros AA, 2016. Context encoders: Feature learning by inpainting, in: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2536–2544. [Google Scholar]
  65. Raghu M, Zhang C, Kleinberg J, Bengio S, 2019. Transfusion: Understanding transfer learning with applications to medical imaging. arXiv:1902.07208. [Google Scholar]
  66. Ronneberger O, Fischer P, Brox T, 2015. U-net: Convolutional networks for biomedical image segmentation, in: Navab N, Hornegger J, Wells WM, Frangi AF (Eds.), Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, Springer International Publishing, Cham. pp. 234–241. [Google Scholar]
  67. Selvaraju RR, Cogswell M, Das A, Vedantam R, Parikh D, Batra D, 2017. Grad-cam: Visual explanations from deep networks via gradient-based localization, in: Proceedings of the IEEE International Conference on Computer Vision (ICCV). [Google Scholar]
  68. Setio AAA, Traverso A, De Bel T, Berens MS, van den Bogaard C, Cerello P, Chen H, Dou Q, Fantacci ME, Geurts B, et al. , 2017. Validation, comparison, and combination of algorithms for automatic detection of pulmonary nodules in computed tomography images: the luna16 challenge. Medical image analysis 42, 1–13. [DOI] [PubMed] [Google Scholar]
  69. Shiraishi J, Katsuragawa S, Ikezoe J, Matsumoto T, Kobayashi T, Komatsu K.i., Matsui M, Fujita H, Kodera Y, Doi K, 2000. Development of a digital image database for chest radiographs with and without a lung nodule. American Journal of Roentgenology 174, 71–74. [DOI] [PubMed] [Google Scholar]
  70. Sowrirajan H, Yang J, Ng AY, Rajpurkar P, 2021. Moco pretraining improves representation and transferability of chest x-ray models, in: Heinrich M, Dou Q, de Bruijne M, Lellmann J, Schläfer A, Ernst F (Eds.), Proceedings of the Fourth Conference on Medical Imaging with Deep Learning, PMLR. pp. 728–744. [Google Scholar]
  71. Tajbakhsh N, Gotway MB, Liang J, 2015. Computer-aided pulmonary embolism detection using a novel vessel-aligned multi-planar image representation and convolutional neural networks, in: International Conference on Medical Image Computing and Computer-Assisted Intervention, Springer. pp. 62–69. [Google Scholar]
  72. Taleb A, Loetzsch W, Danz N, Severin J, Gaertner T, Bergner B, Lippert C, 2020. 3d self-supervised methods for medical imaging, in: Larochelle H, Ranzato M, Hadsell R, Balcan MF, Lin H (Eds.), Advances in Neural Information Processing Systems, Curran Associates, Inc.. pp. 18158–18172. URL: https://proceedings.neurips.cc/paper/2020/file/d2dc6368837861b42020ee72b0896182-Paper.pdf. [Google Scholar]
  73. Tang Y, Yang D, Li W, Roth HR, Landman B, Xu D, Nath V, Hatamizadeh A, 2022. Self-supervised pre-training of swin transformers for 3d medical image analysis, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 20730–20740. [Google Scholar]
  74. Tao X, Li Y, Zhou W, Ma K, Zheng Y, 2020. Revisiting rubik’s cube: Self-supervised learning with volume-wise transformation for 3d medical image segmentation, in: Martel AL, Abolmaesumi P, Stoyanov D, Mateus D, Zuluaga MA, Zhou SK, Racoceanu D, Joskowicz L (Eds.), Medical Image Computing and Computer Assisted Intervention – MICCAI 2020, Springer International Publishing, Cham. pp. 238–248. [Google Scholar]
  75. Touvron H, Cord M, Douze M, Massa F, Sablayrolles A, Jegou H, 2021. Training data-efficient image transformers & distillation through attention, in: Meila M, Zhang T (Eds.), Proceedings of the 38th International Conference on Machine Learning, PMLR. pp. 10347–10357. URL: https://proceedings.mlr.press/v139/touvron21a.html. [Google Scholar]
  76. van Ginneken B, Stegmann MB, Loog M, 2006. Segmentation of anatomical structures in chest radiographs using supervised methods: a comparative study on a public database. Medical Image Analysis 10, 19–40. [DOI] [PubMed] [Google Scholar]
  77. Vincent P, Larochelle H, Bengio Y, Manzagol PA, 2008. Extracting and composing robust features with denoising autoencoders, in: Proceedings of the 25th International Conference on Machine Learning, Association for Computing Machinery. p. 1096–1103. doi: 10.1145/1390156.1390294. [DOI] [Google Scholar]
  78. Wang X, Peng Y, Lu L, Lu Z, Bagheri M, Summers RM, 2017. Chestx-ray8: Hospital-scale chest x-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases, in: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2097–2106. [Google Scholar]
  79. Wang X, Zhang R, Shen C, Kong T, Li L, 2021. Dense contrastive learning for self-supervised visual pre-training, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3024–3033. [Google Scholar]
  80. Wu Z, Xiong Y, Yu SX, Lin D, 2018. Unsupervised feature learning via non-parametric instance discrimination, in: Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3733–3742. [Google Scholar]
  81. Xiao J, Bai Y, Yuille A, Zhou Z, 2023. Delving into masked autoencoders for multi-label thorax disease classification, in: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 3588–3600. [Google Scholar]
  82. Xie E, Ding J, Wang W, Zhan X, Xu H, Sun P, Li Z, Luo P, 2021a. Detco: Unsupervised contrastive learning for object detection, in: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 8392–8401. [Google Scholar]
  83. Xie Z, Lin Y, Yao Z, Zhang Z, Dai Q, Cao Y, Hu H, 2021b. Self-supervised learning with swin transformers. arXiv:2105.04553. [Google Scholar]
  84. Xie Z, Lin Y, Zhang Z, Cao Y, Lin S, Hu H, 2021c. Propagate yourself: Exploring pixel-level consistency for unsupervised visual representation learning, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 16684–16693. [Google Scholar]
  85. Xie Z, Zhang Z, Cao Y, Lin Y, Bao J, Yao Z, Dai Q, Hu H, 2022. Simmim: A simple framework for masked image modeling, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9653–9663. [Google Scholar]
  86. Ye M, Zhang X, Yuen PC, Chang SF, 2019. Unsupervised embedding learning via invariant and spreading instance feature, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). [Google Scholar]
  87. Zawacki A, Wu C, Shih G, Elliott J, Fomitchev M, Hussain M, ParasLakhani, Culliton P, Bao S, 2019. Siim-acr pneumothorax segmentation. URL: https://kaggle.com/competitions/siim-acr-pneumothorax-segmentation. [Google Scholar]
  88. Zbontar J, Jing L, Misra I, LeCun Y, Deny S, 2021. Barlow twins: Self-supervised learning via redundancy reduction. arXiv:2103.03230. [Google Scholar]
  89. Zhan X, Xie J, Liu Z, Ong YS, Loy CC, 2020. Online deep clustering for unsupervised representation learning, in: Proceedings of IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). [Google Scholar]
  90. Zhang C, Zhang K, Pham TX, Niu A, Qiao Z, Yoo CD, Kweon IS, 2022a. Dual temperature helps contrastive learning without many negative samples: Towards understanding and simplifying moco, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14441–14450. [Google Scholar]
  91. Zhang S, Zhu F, Yan J, Zhao R, Yang X, 2022b. Zero-CL: Instance and feature decorrelation for negative-free symmetric contrastive learning, in: International Conference on Learning Representations. [Google Scholar]
  92. Zhao N, Wu Z, Lau RWH, Lin S, 2021. What makes instance discrimination good for transfer learning? arXiv: 2006.06606. [Google Scholar]
  93. Zhou HY, Lu C, Yang S, Han X, Yu Y, 2021a. Preservational learning improves self-supervised medical image models by reconstructing diverse contexts, in: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 3499–3509. [Google Scholar]
  94. Zhou HY, Yu S, Bian C, Hu Y, Ma K, Zheng Y, 2020. Comparing to learn: Surpassing imagenet pretraining on radiographs by comparing image representations, in: Martel AL, Abolmaesumi P, Stoyanov D, Mateus D, Zuluaga MA, Zhou SK, Racoceanu D, Joskowicz L (Eds.), Medical Image Computing and Computer Assisted Intervention – MICCAI 2020, Springer International Publishing, Cham. pp. 398–407. [Google Scholar]
  95. Zhou Q, Yu C, Luo H, Wang Z, Li H, 2022. Mimco: Masked image modeling pre-training with contrastive teacher, in: Proceedings of the 30th ACM International Conference on Multimedia, Association for Computing Machinery, New York, NY, USA. p. 4487–4495. URL: 10.1145/3503161.3548173, doi: 10.1145/3503161.3548173. [DOI] [Google Scholar]
  96. Zhou Z, Sodha V, Pang J, Gotway MB, Liang J, 2021b. Models genesis. Medical Image Analysis 67, 101840. [DOI] [PMC free article] [PubMed] [Google Scholar]
  97. Zhuang X, Li Y, Hu Y, Ma K, Yang Y, Zheng Y, 2019. Self-supervised feature learning for 3d medical images by playing a rubik’s cube, in: Shen D, Liu T, Peters TM, Staib LH, Essert C, Zhou S, Yap PT, Khan A (Eds.), Medical Image Computing and Computer Assisted Intervention – MICCAI 2019, Springer International Publishing, Cham. pp. 420–428. [Google Scholar]

RESOURCES