Skip to content

SAMix: A Spectral Adversarial MixUp Method for Few-Shot Unsupervised Domain AdaptationSpectral Adversarial MixUp for Few-Shot Unsupervised Domain Adaptation

arXiv· arXiv:2309.01207· Jiajin Zhang, Hanqing Chao, Amit Dhurandhar, Pin-Yu Chen, Ali Tajer, Yangyang Xu, Pingkun YanDepartment of Biomedical Engineering and Center for Biotechnology and Interdisciplinary Studies, Rensselaer Polytechnic Institute; IBM Thomas J. Watson Research Center; Department of Electrical, Computer, and Systems Engineering, Rensselaer Polytechnic Institute; Department of Mathematical Sciences, Rensselaer Polytechnic InstituteIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

The authors propose the FSUDA data augmentation plugin SAMix, which they report outperforms existing FSUDA methods on 1-shot Fundus segmentation and Camelyon classification.

Questions
In clinical deployment, differing source-domain and target-domain distributions cause performance degradation, while in medical imaging there are very few unlabeled target-domain samples; existing UDA methods easily overfit under few-shot conditions, and FSUDA methods also have limitations.
Methods
Proposes a plug-in data augmentation method SAMix: first use the domain-distance-modulated spectral sensitivity map DoDiSS to locate the model's generalization weaknesses in the target domain, then mix the amplitude spectra of source and target images according to sensitivity and with mixing coefficients learned by maximizing the task loss, generating target-style samples to train UDA models.
Experiments and results
On two tasks, Fundus segmentation and Camelyon classification, under the 1-shot setting, SAMix as a plugin improved the performance of AdaptSeg, Advent, and DALN; the authors report that it outperforms the FSUDA methods ASM and SM-PPM (p<0.05), and they also conducted data efficiency and ablation experiments.
Limitations and future work
The paper does not specifically discuss limitations. Experimental coverage: two medical imaging tasks, mainly 1-shot (data efficiency experiments up to 10-shot), four UDA backbones, 10 repetitions; SRDC collapsed under few-shot conditions and was not included in the results.
Experimental setupAdaptSeg、Advent et al. · Fundus (REFUGE, RIM-One)、Camelyon · DSC、ASD et al.
Evaluated models
AdaptSegAdventSRDCDALN
Benchmarks
Fundus (REFUGE, RIM-One)Camelyon
Metrics
DSCASDAccAUC
AI summaryThe researchers propose SAMix, a few-shot unsupervised domain adaptation (FSUDA) method that generates target-domain-style images through spectral adversarial MixUp, suppressing model sensitivity to improve target-domain generalization. The method first uses spectral sensitivity maps to characterize the model's generalization weaknesses in the frequency domain, targeting clinical scenarios where training and test image distributions differ and only a small number of unlabeled target-domain samples are available, and has been rigorously evaluated on multiple tasks across several public datasets.

The researchers propose SAMix, a few-shot unsupervised domain adaptation (FSUDA) method that generates target-domain-style images through spectral adversarial MixUp, suppressing model sensitivity to improve target-domain generalization. The method first uses spectral sensitivity maps to characterize the model's generalization weaknesses in the frequency domain, targeting clinical scenarios where training and test image distributions differ and only a small number of unlabeled target-domain samples are available, and has been rigorously evaluated on multiple tasks across several public datasets.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Addressing few-shot unsupervised domain adaptation (FSUDA): how to adapt a model when there are only very few unlabeled target-domain samples.

    Core problem: how to adapt a model trained on the source domain to the target domain when there are only very few (e.g., 1) unlabeled target-domain samples (Few-Shot Unsupervised Domain Adaptation, FSUDA).

    • Problem setting: The authors state that in clinical deployment, data distribution differences across sites (different vendors or protocols) cause model performance to degrade at new sites; UDA methods require only unlabeled target-domain data, but most UDA methods need sufficient target samples, while patient data acquisition in medical imaging is limited.
    • Shortcomings of existing methods: The authors state that ASM requires additional style images for pretraining, which are scarce in clinical settings and have subtle style differences across sites; SM-PPM is designed specifically for segmentation and is not easily transferred to other tasks, and random feature interpolation performs poorly under few-shot conditions; directly applying existing UDA methods to FSUDA leads to severe overfitting due to few target samples (citing [22]).
    • Core observation: Prior studies have shown that transferring the amplitude spectrum of target-domain images to the source domain can convey image style information; spectral sensitivity maps can characterize the model's generalization weaknesses to amplitude perturbations, but existing sensitivity maps use only single-domain labeled data and cannot exploit target-domain information.
    • Proposed in the paper: the DoDiSS (Domain-Distance-modulated Spectral Sensitivity) sensitivity map and the SAMix (Sensitivity-guided Spectral Adversarial MixUp) data augmentation method, as a plugin that lets existing UDA methods adapt to FSUDA.
  2. What related research exists?

    Related work falls into three groups: FSUDA methods, general UDA methods, and spectral/amplitude-spectrum and sensitivity analysis.

    FSUDA methods

    • ASM (Luo et al., 2020)—uses a pretrained style transfer module to generate augmented images through an adversarial process; the paper notes that it requires additional style images for pretraining, which are scarce in clinical settings, and that style differences across sites are subtle, limiting its applicability to medical imaging.
    • SM-PPM (Wu et al., 2022)—trains a style mixing model for semantic segmentation, randomly interpolating source-domain features and target-domain features into a fictitious domain; the paper notes that it is designed specifically for segmentation, is not easily adapted to other tasks, and that random interpolation is ineffective at improving generalization under few-shot conditions.

    General UDA methods

    • AdaptSeg (Tsai et al., 2018), Advent (Vu et al., 2019)—adversarial UDA for segmentation tasks; SRDC (Tang et al., 2020), DALN (Chen et al., 2022)—UDA for classification tasks. The paper notes that directly applying these methods to FSUDA leads to severe overfitting due to limited target samples.

    Spectral and sensitivity analysis

    • FDA (Yang & Soatto, 2020) et al.—transfer the target-domain amplitude spectrum to the source domain to convey style and augment training data.
    • Yin et al. (2019), Zhang et al. (2023)—use spectral sensitivity analysis to quantify the model's weaknesses to amplitude perturbations; Zhang et al. use sensitivity maps to weight amplitude perturbations for data augmentation; the paper notes that existing sensitivity maps use only single-domain labeled data and cannot exploit target-domain information.
    • AugMax (Wang et al., 2021) et al.—mining hard-to-learn samples can improve data augmentation efficiency and generalization.

    Baselines and benchmarks: The comparison baselines are ASM and SM-PPM (FSUDA methods) as well as the UDA methods themselves without SAMix; the benchmarks are Fundus (REFUGE/RIM-One, optic disc/cup segmentation) and Camelyon (tumor tissue binary classification).

    The authors position this work as: extending sensitivity maps into the domain-distance-modulated DoDiSS and combining it with adversarial mixing to generate hard-to-learn target-style samples, as a plugin that lets multiple UDA methods adapt to FSUDA.

  3. How does the paper address this problem?

    SAMix uses a domain-distance-modulated sensitivity map as guidance and adversarially learns the mixing coefficients for spectral amplitude mixing, generating target-style augmented samples.

    Overall idea: as a plug-in for UDA methods, first use the DoDiSS sensitivity map to identify the model's generalization weaknesses in the target domain, then use SAMix to mix the amplitude spectra of source and target images according to sensitivity and with coefficients learned by maximizing the task loss, generating hard-to-learn target-style samples for training.

    Problem setting

    • A labeled source domain XS and an unlabeled K-shot target domain XT (K unlabeled images).
    • The method is embedded as a plug-in into the training pipeline of existing UDA methods.

    DoDiSS sensitivity map

    • Target domain augmentation: apply random cropping, rotation, flipping, JigSaw and other geometric transformations to a small number of target domain images (without changing pixel intensities, preserving target domain style) to expand target domain samples.
    • Domain distance map: apply FFT to source domain and augmented target domain images to obtain amplitude spectra, compute the 1-Wasserstein distance between the two amplitude distributions at each frequency (i,j), and obtain the domain distance map D_W(i,j).
    • Sensitivity computation: construct Fourier basis images U_i,j that are nonzero only at (i,j) and (−i,−j), add noise N_i,j = r·D_W(i,j)·U_i,j to source images (r randomly takes ±1), and define sensitivity as the model's prediction error rate over the entire source domain after perturbation: MS(i,j) = 1 − Acc(F(xs + r · DW(i,j) · Ui,j), ys). D_W makes the perturbation magnitude follow the real domain shift.

    SAMix spectral adversarial mixing

    • Amplitude mixing: Astλ∗ = λ∗ · MS · At + (1−λ∗) · (1−MS) · As, i.e., mix the amplitude spectra of target and source weighted by the sensitivity map; retain the source image phase to preserve semantics.
    • Adversarial learning of λ*: use projected gradient descent (T iterations, step size δ) to maximize the task loss L_T within [0,1], mining the hardest-to-learn mixture.
    • Training objective: Ltot = LT + μ · JS + LUDA, where J_S is the Jensen-Shannon divergence consistency regularization between predictions on source images and augmented images, and L_UDA is the loss of the original UDA method.

    Key parameters

    • In all experiments, μ = 0.01, T = 10, δ = 0.1.
    • Fundus: DeepLabV2-Res101 backbone, SGD, 80 epochs, Dice loss, initial learning rate 0.001 decayed by 0.1 every 20 epochs, batch 16.
    • Camelyon: ResNet-50, SGD, 20 epochs, binary cross-entropy, initial learning rate 0.0001 decayed by 0.1 every 5 epochs, batch 128.
  4. What experiments did the paper conduct?

    On 1-shot adaptation for Fundus segmentation and Camelyon classification, the SAMix plugin improves UDA methods and outperforms ASM and SM-PPM.

    Experimental setup

    • Datasets: Fundus (optic disc/cup segmentation): source domain is the REFUGE training set with 400 images, target domain 1 is the REFUGE validation set with 400 images, target domain 2 is RIM-One with 159 images; Camelyon (binary classification of tumor tissue, across 5 hospitals): source domain is 302,436 images from hospitals 1–3, target domain 1 is 34,904 images from hospital 4, target domain 2 is 85,054 images from hospital 5.
    • Protocol: the source domain is split 4:1 into training/validation; K-shot target domain images are randomly selected for training, and the remaining target domain images are used for testing; the main experiments are 1-shot, and results are averaged over 10 runs.
    • Backbones and baselines: SAMix is used as a plug-in for four UDA models—AdaptSeg and Advent on Fundus, SRDC and DALN on Camelyon; FSUDA baselines are ASM and SM-PPM; there is also Source Only (trained on source domain only).
    • Metrics: Fundus uses DSC (higher is better) and ASD (lower is better); Camelyon uses Acc and AUC.
    • Statistical tests: one-tailed paired t-test against Advent+SAMix (Fundus) or DALN+SAMix (Camelyon), with p<0.05 marked with an asterisk.

    Main results

    Fundus (1-shot, average of 10 runs, according to Table 1, mean DSC% / mean ASD):

    Swipe horizontally to read the table

    MethodTarget domain 1 DSCTarget domain 1 ASDTarget domain 2 DSCTarget domain 2 ASD
    Source Only63.8513.0357.2019.30
    AdaptSeg64.0312.6458.5919.21
    Advent64.4312.1858.5019.09
    ASM70.058.6459.8318.10
    SM-PPM76.095.8861.9013.37
    AdaptSeg+SAMix78.574.5563.9811.92
    Advent+SAMix78.484.4464.1911.41

    Camelyon (1-shot, average of 10 runs, according to Table 2, Acc% / AUC%):

    Swipe horizontally to read the table

    MethodTarget domain 1 AccTarget domain 1 AUCTarget domain 2 AccTarget domain 2 AUC
    Source Only75.4265.5571.6760.18
    DALN78.6374.7462.5756.44
    ASM83.6680.4377.7573.47
    SRDC+SAMix84.2880.0578.6474.62
    DALN+SAMix86.4182.5880.8475.90
    • The authors state that, compared with Source Only, UDA methods alone improve limitedly; adding SAMix yields significant improvements (p<0.05), and Advent+SAMix surpasses the two FSUDA methods (p<0.05).
    • Exceptions: on Camelyon target domain 1, ASM's AUC (80.43) is higher than SRDC+SAMix (80.05); SRDC collapses under few-shot and is not included in the table, and SM-PPM is not evaluated on Camelyon because it only performs segmentation.
    • Note that in Table 2, DALN used alone has lower Acc on target domain 2 (62.57) than Source Only (71.67).

    Sensitivity and feature analysis (Figure 2)

    • DoDiSS maps: compute DoDiSS maps for four models—AdaptSeg, ASM, SM-PPM, AdaptSeg+SAMix (Figure 2a); the authors state that the sensitivity of AdaptSeg+SAMix is suppressed.
    • Sensitivity-performance relationship: Figure 2(b) is a scatter plot of mean DSC against the mean ℓ1 norm of the DoDiSS map, with the horizontal axis approximately 0.08–0.18 and the vertical axis 60–80; the authors state that it shows a trend of lower DoDiSS corresponding to better performance.
    • t-SNE feature visualization: Figure 2(c) shows that before adaptation the source and target domain features are separated (c1), and after training AdaptSeg with SAMix augmented samples the two domain distributions merge (c2); the authors state that the augmented samples connect the two domains using only 1 target image.

    Data efficiency and qualitative results (Figures 3, 4)

    • Data efficiency: Figure 3 gives curves for 1–10 target samples on Fundus (target domain 1, DSC) and Camelyon (target domain 1, Acc), including a Full data AdaptSeg reference line; the authors state that SAMix consistently outperforms other baselines starting from 1-shot (the specific values at each point cannot be read in the converted text).
    • Qualitative results: Figure 4(a) shows that images generated by SAMix retain the retinal structure of the source image and have a style closer to the target image; in the segmentation cases in Figure 4(b), the authors state that SAMix has fewer prediction errors, especially in the optic cup region.

    Other ablations and analyses

    • Ablations (Figure 5, mean DSC of AdaptSeg+SAMix on Fundus target domain 1, AUC of DALN+SAMix on Camelyon target domain 2): replacing DoDiSS with the original sensitivity map of [27], replacing SAMix with FDA random spectrum exchange (β=0.01, 0.09), and removing L_UDA, SAMix, and J_S one by one all degrade performance (the specific values cannot be read in the converted text); the authors state that this shows each component is effective.
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations; the experiments are limited to two medical imaging tasks, mostly 1-shot, and four UDA backbones.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations, and there is no Limitations or Future Work section; the Discussion and Conclusion only summarize the method's effectiveness and do not list future directions.

    Scope of experiments

    • Tasks and data: The experiments cover two medical imaging tasks—Fundus optic disc/cup segmentation (400 source-domain images, two target domains with 400 and 159 images respectively) and Camelyon tumor binary classification (302,436 source-domain images, two target domains with 34,904 and 85,054 images respectively), all with 256×256 input.
    • Backbones and baselines: SAMix as a plugin was evaluated on four UDA methods (AdaptSeg, Advent, SRDC, DALN); the FSUDA baselines are ASM and SM-PPM, of which SM-PPM was not evaluated on Camelyon (the paper states it is designed specifically for segmentation), and SRDC collapsed in the few-shot setting and was not included in Table 2.
    • Sample size and repetitions: The main experiments are 1-shot, and the data efficiency experiments cover 1–10 target samples; results are averages over 10 runs, including one-tailed paired t-tests (p<0.05).
    • Hyperparameters: The paper reports μ=0.01, T=10, δ=0.1 fixed for all experiments, and does not report a sweep over these hyperparameters.
    • Backbone networks: Only one backbone is used per task (DeepLabV2-Res101 for Fundus, ResNet-50 for Camelyon).
  6. Summarize the main content of the paper

    SAMix is a plug-in spectral data augmentation method for FSUDA, outperforming existing FSUDA methods on 1-shot medical image segmentation and classification.

    A medical imaging domain adaptation paper addressing Few-Shot Unsupervised Domain Adaptation (FSUDA): adapting a source-domain model to a target domain when there are only very few unlabeled target-domain samples.

    • Problem: The authors state that existing UDA methods require more target samples and tend to overfit in the few-shot setting; the existing FSUDA method ASM relies on additional style-image pretraining, and SM-PPM is limited to segmentation tasks.
    • Method: They propose a plug-in data augmentation method, SAMix. First, a DoDiSS sensitivity map is obtained by modulating with domain distance (the 1-Wasserstein distance between amplitude distributions at each frequency), characterizing the model's generalization weaknesses in the target domain; then, using coefficients λ* learned by weighting according to the sensitivity map and maximizing the task loss via projected gradient descent, the amplitude spectra of source and target images are mixed (keeping the source phase) to generate hard-to-learn target-style samples, and a UDA model is trained with Jensen-Shannon consistency regularization.
    • Results (1-shot, average of 10 runs): On Fundus target domain 1, Advent+SAMix achieves an average DSC of 78.48%, higher than SM-PPM's 76.09% and ASM's 70.05% (Table 1); on Camelyon target domain 1, DALN+SAMix achieves an Acc of 86.41%, higher than ASM's 83.66% (Table 2); the authors report that the improvements over baselines are significant (p<0.05). Exception: on Camelyon target domain 1 AUC, ASM is slightly higher than SRDC+SAMix; SRDC collapses in the few-shot setting.
    • Analysis: The authors state that the lower the average norm of DoDiSS, the better the model performance (Figure 2b), and t-SNE shows that the augmented samples merge the feature distributions of the two domains (Figure 2c); ablations show that replacing the sensitivity map, switching to FDA, or removing each component all degrade performance (Figure 5).
    • Authors' conclusion: As a plug-in, SAMix enables a variety of UDA methods to adapt in few-shot settings, and its effectiveness and data efficiency are validated on multiple tasks.
Read originalarxiv.org