Bridging the Domain Shift in Few Shot Learning

714 concepts480 papers5 proposals

Standard few-shot learning (FSL) operates under a comforting assumption: while the classes at test time are novel, they are drawn from the same underlying visual distribution as the training data. For instance, a model trained on common animals might be asked to recognize a rare breed of dog from a single example.

However, real-world deployment frequently shatters this assumption. In Cross-Domain Few-Shot Learning (CD-FSL), a model trained on everyday natural images (like ImageNet) is suddenly tasked with classifying or segmenting images from an entirely different domain—such as satellite photography, medical X-rays, or underwater scans. As noted by Catalano, standard few-shot models experience a severe performance drop under these distribution shifts.

To solve this problem, researchers have had to rethink how deep networks represent visual information and how they adapt to new data on the fly.

Why Does Cross-Domain Few-Shot Learning Fail?

To understand the solution, we must first understand the failure mode. Deep convolutional networks and vision transformers are highly sensitive to low-level visual statistics like texture, lighting, and color distributions. Tong et al. point out that when a model is trained extensively on a source domain, its internal feature extractors overfit to these specific visual characteristics.

When the model is transferred to a target domain that lacks these familiar textures—such as a grayscale medical scan—the learned feature representations lose their discriminative power. The features that were highly useful for distinguishing a cat from a dog become meaningless noise when trying to distinguish a tumor from healthy tissue.

Historically, the few-shot community relied heavily on episodic meta-learning ("learning to learn") to build generalizable models. However, a seminal benchmark study by Guo et al. delivered a surprising reality check: when the visual gap between the source and target domains is large, sophisticated meta-learning algorithms are consistently outperformed by simple fine-tuning. Meta-learning algorithms over-optimize their parameters to the source domain's distribution, making them brittle.

To bridge the cross-domain gap, recent research focuses on three core strategies: designing domain-agnostic spaces, adapting models at test time, and leveraging multi-expert co-learning.

Strategy 1: Designing Domain-Agnostic Spaces

If the source domain's visual statistics bias the feature space, one solution is to strip away that bias, forcing the model to rely on structural or relational properties that transcend domains.

Stripping Source Statistics via Normalization

One of the simplest yet most effective ways to decouple a model from its source domain is to modify how features are normalized. Yazdanpanah et al. discovered that the learnable affine parameters ($\gamma$ and $\beta$) in standard Batch Normalization layers tightly couple internal feature transformations to the source domain's statistics. By simply removing these learnable parameters—a method they call Feature Normalization—the model is prevented from locking into source-specific styles, resulting in significantly better generalization to distant target domains.

Operating in Logit Space

Instead of computing distances in a raw feature space heavily distorted by domain shifts, Cai et al. (DAMSL) proposed using classification scores (logits) as inputs to a Graph Neural Network. Because logits represent class probabilities rather than raw visual textures, they form a more domain-agnostic metric space. By comparing how classes relate to one another rather than comparing the images directly, the model bypasses the visual domain gap.

Distance Calibration

Even when features are biased by a domain shift, the relative relationships between images can still contain useful signals. Li et al. introduced Ranking Distance Calibration (RDC), which treats cross-domain classification as an image retrieval task. By using $k$-reciprocal neighbor discovery to re-rank and calibrate biased distances, the authors successfully correct the distortion introduced by the domain shift.

Strategy 2: Test-Time Adaptation and Transductive Inference

A static feature extractor cannot anticipate every possible domain shift. Instead of trying to build a universally robust model beforehand, a powerful alternative intuition is to adapt the model dynamically using the few target examples available at inference time.

Standard FSL:   [Source Training] ──> [Frozen Feature Extractor] ──> [Evaluate Target]
                                                                           ▲
Test-Time TTA:  [Source Training] ──> [Frozen Feature Extractor] ──> [Adapt via Query]

Transductive Inference

Standard inductive inference evaluates each query image in isolation. In contrast, transductive inference leverages the unlabeled query data as a group to map the target distribution. Boudiaf et al. demonstrated that optimizing a loss function directly on the unlabeled query image at test time (while regularizing predicted object sizes) yields massive performance gains over complex episodic models, especially as the number of available "shots" increases.

Extreme Localization (Adapters)

Taking test-time adaptation to its logical conclusion, Herzog proposed skipping source-domain training entirely for cross-domain segmentation. Instead, the method attaches tiny, untrained adapter layers to a completely frozen, general-purpose backbone. These adapters are trained entirely on-the-fly using only the few provided test samples. Because the backbone is never exposed to a specific source dataset, it never develops a source bias, allowing the tiny adapters to efficiently capture the target domain's unique features.

Strategy 3: Multi-Expert and Co-Learning Systems

When unlabeled target data or multiple source domains are available, models can use collaborative architectures to safely transfer knowledge across the domain gap without overfitting to the sparse target labels.

Universal Representations

When training data from multiple distinct domains is available, the goal shifts to creating a single representation that encompasses them all. Li et al. developed a framework that distills knowledge from multiple domain-specific experts into a single universal feature extractor. By using Centered Kernel Alignment (CKA) to mathematically align these diverse visual distributions, the model retains the specialized insights of each expert in a unified space.

Co-Training and Distillation

When adapting to a new domain with unlabeled data, models risk confirming their own biases and overfitting to incorrect predictions. To stabilize this process, Alchihabi et al. introduced an adaptive co-learning strategy where two independent models cross-teach each other using a stabilized pseudo-labeling and negative-labeling process.

Similarly, Islam et al. utilized a Dynamic Distillation Network where a teacher network evolves alongside a student network via an Exponential Moving Average. The teacher provides soft labels for the unlabeled target data, allowing the student to smoothly absorb the structure of the new domain without destroying its foundational knowledge.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 544 papers
  2. Version 1 · 2026-10-04 · 589 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_cross_domain_generalization_gap_domain_s_8f17bed3,
  title = {cross-domain generalization gap (domain shift in few-shot learning)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/cross-domain-generalization-gap-domain-shift-in-few-shot-learning/rdr_8f17bed362fb48158bf3ac3ed3140d27},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 2, frozen text):

@misc{lacuna_cross_domain_generalization_gap_domain_s_8f17bed3_v2,
  title = {cross-domain generalization gap (domain shift in few-shot learning)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/cross-domain-generalization-gap-domain-shift-in-few-shot-learning/rdr_8f17bed362fb48158bf3ac3ed3140d27/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake