Abstract
In clinical practice, medical imaging datasets often suffer from taxonomic inconsistency, where different institutions employ varying labeling protocols for similar biological structures. This creates a significant barrier for standard Unsupervised Domain Adaptation (UDA) methods, which typically assume a closed-set environment with identical categories across domains. This paper introduces a novel framework for Taxonomy Adaptive Cross-Domain Adaptation (TADA), utilizing Optimization Trajectory Distillation (OTD). By treating the network's optimization path as a signal to be distilled, the proposed method aligns domains and adapts to new categories with minimal supervision, ensuring robust generalization in complex clinical scenarios.
Introduction
Deep learning models in medical imaging often struggle when deployed in the "clinical wild." Two primary obstacles hinder their performance: domain shift (variations in scanners, lighting, or staining) and category gaps (mismatched label sets between hospitals). For instance, one dataset might categorize white blood cells broadly as "inflammatory," while another provides fine-grained labels like "neutrophils" and "lymphocytes."
Existing UDA techniques generally focus on aligning feature distributions or output probabilities. However, these approaches often fail when the source and target taxonomies do not perfectly overlap, leading to "feature collision" or poor performance on novel classes. To address this, we propose a shift in perspective: rather than aligning what the model sees or predicts, we align how the model learns.
Methodology: Optimization Trajectory Distillation
The core of the proposed framework is Optimization Trajectory Distillation (OTD), which regularizes the training process by guiding the model's gradient descent path. This is achieved through two primary mechanisms:
1. Cross-Domain and Cross-Class Distillation
The framework identifies "anchor classes"—categories present in both the source and target domains. It uses the gradients generated from the well-labeled source domain as a "teacher" signal. Because stochastic gradients are inherently low-rank, the method applies Singular Value Decomposition (SVD) to these gradients to identify a "reliable subspace."
By forcing the gradients of the target domain and the sparsely labeled new classes to remain within this subspace, the model filters out the noise associated with small-data learning. This ensures that the optimization of new categories is guided by the established knowledge of the anchor classes, preventing the model from deviating into suboptimal regions of the parameter space.
2. Historical Self-Distillation
To further enhance generalization, the model incorporates its own past optimization history. By regularizing current gradients against historical ones, the framework steers the model toward "flat minima" in the loss landscape. In deep learning theory, flat minima are associated with better robustness and generalization on unseen data, as small perturbations in the input or parameters do not lead to drastic changes in the loss.
Experimental Evaluation
The TADA-MI framework was evaluated across five diverse medical imaging tasks to demonstrate its versatility:
- Nuclei Segmentation & Recognition: Adapting from the PanNuke dataset to the Lizard dataset, involving overlapping but distinct cell categories.
- Cancer Tissue Phenotyping: Transitioning from a simple 2-class task (CRC-TP) to a complex 8-class task (Kather).
- Skin Lesion Diagnosis: Moving from coarse benign/malignant labels to fine-grained 7-class diagnosis using the HAM10000 dataset.
- Radiology & Fundus Analysis: Benchmarking on pneumonia screening and diabetic retinopathy detection.
Key Results and Insights
The proposed TADA-MI method significantly outperformed state-of-the-art UDA and supervised-only baselines:
- Superior Low-Shot Performance: In a "5-shot" scenario (only 5 labeled examples per new class), TADA-MI achieved a 27.14% mF1 score in nuclei recognition, substantially higher than the supervised-only baseline (21.46%) and standard UDA methods like DANN (16.52%).
- Improved Accuracy: In cancer phenotyping, the method improved classification accuracy on new classes by over 5% compared to the next best performing method.
- Robustness via Flat Minima: Visualization of the loss landscape confirmed that OTD successfully guides the model to flatter regions compared to standard multi-task learning, explaining its superior performance on novel images and categories.
Conclusion
Optimization Trajectory Distillation represents a significant advancement in addressing the taxonomy gap in medical AI. By leveraging the rich information contained within gradient statistics and focusing on the optimization path, TADA-MI provides a stable and effective way to adapt models to the diverse labeling schemes found in real-world clinical settings. Future work will focus on automating hyperparameter tuning and exploring the framework's efficacy in "open-world" scenarios where the number of new classes is not known a priori.
Summary updated