TL;DR
This paper tackles the challenge of adapting machine learning models to new, unlabeled datasets sequentially, a common scenario in fields like medical imaging where data privacy prevents storing old data. They introduce a novel "multi-scale feature alignment" approach that uses a generative model to create synthetic data for replay and a unified discriminator for both generation and domain adaptation, achieving state-of-the-art results in histopathology classification.
What Problem Does This Paper Address?
In many real-world applications, especially in healthcare, machine learning models trained on one dataset often perform poorly on new, unseen data due to domain shifts (e.g., different scanners, staining protocols). Unsupervised Domain Adaptation (UDA) aims to bridge this gap by adapting models to new domains using only unlabeled data. However, most UDA methods assume adaptation to a single target domain and require access to both source and target data simultaneously. This is problematic in scenarios where data from previous domains cannot be stored due to privacy regulations (like GDPR in healthcare), necessitating a "continual learning" approach. Furthermore, real-world applications often involve adapting to multiple target domains sequentially. This paper addresses "continual UDA" – adapting to a sequence of unlabeled domains without storing data from previous domains, while mitigating catastrophic forgetting (where the model forgets previously learned tasks).
Methods
The core of the proposed method is generative feature-driven image replay adapted for continual UDA. Instead of replaying raw images from previous domains (which is forbidden), they use a Generative Adversarial Network (GAN) to create synthetic "replay" images. A key innovation is the dual-purpose discriminator:
- GAN Training: The discriminator helps the generator produce realistic synthetic images.
- Domain Adaptation: The same discriminator is used to align features from the source and target domains, making them domain-invariant.
This unified discriminator is trained using multi-scale feature aggregation (MFA). Instead of using features from just one layer of the classifier's feature extractor, MFA combines features from multiple layers. This allows the discriminator to learn domain-invariant features that are general enough for replay while also being specific enough for classification.
To further combat forgetting and improve adaptation, the method also incorporates:
- Pseudo-labeling: Generating labels for target domain data.
- Classifier Distillation: Encouraging the current model to mimic the predictions of a frozen copy of the model trained on previous domains.
- Image Distillation: Encouraging the generator to produce consistent images across different training stages.
Datasets
The experiments were conducted on three datasets of H&E-stained histopathology whole-slide images (WSIs) from colorectal biopsies:
- K-19: 107,180 patches (224x224) from 9 classes.
- K-16: 5,000 patches (150x150) from 8 classes.
- CRC-TP: 280,000 patches (150x150) from 7 classes.
To ensure a fair comparison and address class heterogeneity, the datasets were aligned to a common set of 7 medically-relevant classes: tumor epithelium (TUM), stroma (STR), lymphocytes (LYM), debris (DEB), normal mucosal glands (NORM), adipose (ADI), and background (BACK). Two continual domain sequences were studied: K-19 → K-16 → CRC-TP and K-19 → CRC-TP → K-16.
Key Insights and Ideas
- Unified Discriminator for Dual Tasks: Using a single discriminator for both GAN training and domain adaptation is more effective than using separate discriminators, suggesting a synergistic relationship between these tasks.
- Multi-Scale Feature Aggregation is Crucial: Combining features from different layers of the classifier's feature extractor significantly improves performance, indicating that different levels of abstraction are important for both generating realistic images and aligning domains.
- Continual UDA Benefits Single-Step UDA: Surprisingly, even when the ultimate goal is adaptation to a single target domain, performing continual UDA over multiple domains can lead to better performance on that single target domain. This highlights the power of knowledge sharing across domains.
- Generative Replay for Continual UDA is Viable: The proposed method effectively uses synthetic data to overcome the lack of access to previous real data, a critical requirement for continual learning in privacy-sensitive domains.
Key Results
- State-of-the-Art Performance: The proposed method achieved state-of-the-art results on the histopathology tissue-type classification task across two different continual domain sequences.
- Significant Improvement: On the Do→D1→D2 sequence, the method outperformed the next best competitor (MCC) by 14.3 percentage points on D1 and 5.9 percentage points on D2, resulting in a 6.9pp improvement in mean overall F1 score (a 33% increase compared to MCC's improvement over the baseline).
- Strong Domain Alignment and Class Clustering: t-SNE visualizations and quantitative metrics (inverse Wasserstein distance and inverse Davies-Bouldin index) showed that the proposed method achieved superior domain alignment and class clustering compared to existing UDA methods.
- Effective Patch-Based Segmentation: The method was successfully extended to patch-based segmentation of large tissue images, producing visually accurate and consistent segmentation maps.
Limitations and Future Work
- Training Challenges: The authors acknowledge that adversarial UDA methods, in general, can face challenges in balancing the capacity of the feature extractor and the domain discriminator. They suggest that techniques like early stopping, R1 regularization, and other regularization methods can help mitigate this.
- Future Work: The paper suggests that the generic nature of their approach makes it applicable to continual UDA in other image modalities beyond histopathology, such as radiology and microscopy.
Summary updated