Reconstruction Target Matters in Masked Image Modeling for Cross-Domain Few-Shot Learning
Ran Ma, Yixiong Zou, Yuhua Li, Ruixuan Li
TL;DR
The paper tackles Cross-Domain Few-Shot Learning (CDFSL), showing that pixel-based Masked Autoencoder (MAE) pretraining can underperform when transferring to target domains with large gaps $D^S$ vs $D^T$. It analyzes reconstruction targets, revealing MAE's propensity to learn low-level, domain-specific information and highlighting trade-offs when using higher-level features; token-based targets can mitigate but not universally fix transferability. To address this, the authors propose Domain-Agnostic Masked Image Modeling (DAMIM) with an Aggregated Feature Reconstruction (AFR) module and a Lightweight Decoder (LD) to balance domain-agnostic information with the image's global structure while reducing decoder reliance. Across four CDFSL datasets, DAMIM achieves state-of-the-art performance, supported by ablations, feature-importance analyses, and visualization, demonstrating improved cross-domain generalization and practical applicability to few-shot transfer scenarios.
Abstract
Cross-Domain Few-Shot Learning (CDFSL) requires the model to transfer knowledge from the data-abundant source domain to data-scarce target domains for fast adaptation, where the large domain gap makes CDFSL a challenging problem. Masked Autoencoder (MAE) excels in effectively using unlabeled data and learning image's global structures, enhancing model generalization and robustness. However, in the CDFSL task with significant domain shifts, we find MAE even shows lower performance than the baseline supervised models. In this paper, we first delve into this phenomenon for an interpretation. We find that MAE tends to focus on low-level domain information during reconstructing pixels while changing the reconstruction target to token features could mitigate this problem. However, not all features are beneficial, as we then find reconstructing high-level features can hardly improve the model's transferability, indicating a trade-off between filtering domain information and preserving the image's global structure. In all, the reconstruction target matters for the CDFSL task. Based on the above findings and interpretations, we further propose Domain-Agnostic Masked Image Modeling (DAMIM) for the CDFSL task. DAMIM includes an Aggregated Feature Reconstruction module to automatically aggregate features for reconstruction, with balanced learning of domain-agnostic information and images' global structure, and a Lightweight Decoder module to further benefit the encoder's generalizability. Experiments on four CDFSL datasets demonstrate that our method achieves state-of-the-art performance.
