Papers
Topics
Authors
Recent
Search
2000 character limit reached

Dualistic Meta-Learning for Open-Set DG (MEDIC)

Updated 13 January 2026
  • The paper introduces MEDIC, a framework that leverages dualistic meta-learning to jointly optimize inter-domain and inter-class splits for robust decision boundaries.
  • It employs episodic training with domain-wise and class-wise splits to mitigate class imbalance and enhance cross-domain transferability.
  • Experimental evaluations on PACS and Digits-DG datasets show that MEDIC outperforms ERM-bcls and MVDG-bcls in both OSCR and H-score metrics.

Dualistic MEta-learning with joint DomaIn-Class matching (MEDIC) is a meta-learning framework designed for the Open-Set Domain Generalization (OSDG) problem. OSDG extends standard Domain Generalization (DG) to the more realistic regime where both domain distribution shift and previously unseen class categories may appear at test time. MEDIC establishes generalizable decision boundaries through dualistic meta-learning that jointly leverages inter-domain and inter-class data splits, optimized to handle the inherent class imbalance of open-set recognition and the challenges of cross-domain transferability (Wang et al., 2023).

1. Problem Formulation: Open-Set Domain Generalization

In OSDG, the training data comprises SS source domains S={D1,...,DS}S = \{D_1, ..., D_S\}, each drawn from a distinct distribution PsP_s over input-label pairs (x,y)∈X×C(\mathbf{x}, y) \in X \times C, with CC the set of known classes. During evaluation, a model faces TT unseen target domains T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\} defined by a distribution QQ over XX with labels coming from C∪UC \cup U, where S={D1,...,DS}S = \{D_1, ..., D_S\}0 is a set of unknown classes disjoint from S={D1,...,DS}S = \{D_1, ..., D_S\}1. Crucially, samples with S={D1,...,DS}S = \{D_1, ..., D_S\}2 are never observed during training.

The objective is to train a model S={D1,...,DS}S = \{D_1, ..., D_S\}3 to (i) correctly classify target-domain data from S={D1,...,DS}S = \{D_1, ..., D_S\}4 and (ii) reliably reject data from S={D1,...,DS}S = \{D_1, ..., D_S\}5 as unknown, despite never seeing S={D1,...,DS}S = \{D_1, ..., D_S\}6 during training. This scenario encompasses both distribution (domain) shift and class novelty, exceeding the complexity of standard DG or closed-set OOD detection.

2. One-vs-All Boundaries and Class Imbalance Challenge

The open-set nature of OSDG motivates the use of one-vs-all classifiers. For each S={D1,...,DS}S = \{D_1, ..., D_S\}7, a binary classifier outputs S={D1,...,DS}S = \{D_1, ..., D_S\}8; a test example is declared "unknown" if S={D1,...,DS}S = \{D_1, ..., D_S\}9 for some detection threshold PsP_s0. This approach directly partitions the feature space, allowing explicit rejection of outliers.

However, each one-vs-all binary classifier faces extreme class imbalance: positives are rare (samples from class PsP_s1), while negatives—conceptually the union of all other classes—are much more numerous and diverse. This imbalance tends to bias decision boundaries—either crowding them against the positive region (yielding over-confident, under-generalized boundaries) or expanding them too far (reducing detection sensitivity), which degrades both known-class accuracy and unknown rejection. These limitations are accentuated under domain shift, further complicating OSDG.

3. Dualistic Meta-Learning and Joint Domain-Class Matching

MEDIC addresses OSDG via a dualistic, episodic meta-learning protocol combining inter-domain and inter-class splits:

  • Domain-wise split: Randomly divide source domains into two disjoint sets, PsP_s2 and PsP_s3.
  • Class-wise split: Partition known classes PsP_s4 into two subsets, PsP_s5 and PsP_s6.

This induces four training groups (episodes):

Episode Domains Classes
PsP_s7 PsP_s8 PsP_s9
(x,y)∈X×C(\mathbf{x}, y) \in X \times C0 (x,y)∈X×C(\mathbf{x}, y) \in X \times C1 (x,y)∈X×C(\mathbf{x}, y) \in X \times C2
(x,y)∈X×C(\mathbf{x}, y) \in X \times C3 (x,y)∈X×C(\mathbf{x}, y) \in X \times C4 (x,y)∈X×C(\mathbf{x}, y) \in X \times C5
(x,y)∈X×C(\mathbf{x}, y) \in X \times C6 (x,y)∈X×C(\mathbf{x}, y) \in X \times C7 (x,y)∈X×C(\mathbf{x}, y) \in X \times C8

Meta-training uses (x,y)∈X×C(\mathbf{x}, y) \in X \times C9 and CC0 (differing in both domain and class), while meta-testing uses the crossed pair CC1 and CC2.

At each iteration:

  1. Mini-batches CC3, CC4, CC5, CC6 are sampled from the four splits.
  2. The meta-train loss is CC7, with CC8 defined below.
  3. Take a virtual gradient step: CC9.
  4. Compute the meta-test loss at TT0: TT1.
  5. The final update is TT2.

A first-order Taylor expansion reveals an alignment term TT3 in the resulting objective, which encourages the model to discover parameter updates that generalize across both domains and classes. MEDIC's regularizer combines four inner products, each linking episodes that are either same-domain/different-class or same-class/different-domain, which explicitly enforces domain and class generalization and prevents decision boundary skew from class imbalance.

4. Objective Functions, Losses, and Decision Strategy

The core losses are:

  • Closed-set cross-entropy: TT4 (softmax classifier).
  • One-vs-all binary loss (Ovanet style):

TT5

This encourages the correct class output to be high while pushing down the strongest negative class.

  • Combined open-set loss: TT6.

The per-iteration meta-objective is:

  • TT7,
  • TT8,
  • TT9,
  • Update toward minimizing T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\}0.

Rejection at test time: For an input T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\}1, compute class confidence by either T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\}2 or T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\}3 where T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\}4. Classify as "known" if T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\}5, "unknown" otherwise.

5. Addressing Class Imbalance and Generalization

MEDIC's distinct class-wise and domain-wise splits during episodic meta-learning enforce decision boundaries that are robust to the relative proportion of positives and negatives—mitigating the dominant-negative effect and ensuring that boundaries are not distorted due to imbalance. Simultaneous domain-wise splitting fosters invariance to domain shift, preventing collapse of known classes when faced with novel target domains.

In practice, this yields emphatic improvements on open-set metrics such as OSCR (Open Set Classification Rate) and H-score, while maintaining or very marginally improving closed-set recognition compared to standard DG algorithms. A plausible implication is that MEDIC's principled matching approach is particularly suited for applications where previously unseen categories are expected under domain shift (Wang et al., 2023).

6. Experimental Evaluation

Performance metrics are reported primarily on PACS (6 known, 1 unknown class splits; Deep ResNet-18/50) and Digits-DG (6 known, 4 unknown classes; ConvNet). Key results are summarized as follows:

Method Dataset OSCR H-score
ERM-bcls PACS-R18 70.3% 70.6%
MVDG-bcls PACS-R18 75.82% 70.9%
MEDIC-bcls PACS-R18 77.89% 75.98%
MVDG-bcls PACS-R50 83.21% —
MEDIC-bcls PACS-R50 84.85% —
ERM-bcls Digits-DG 66.03% —
MEDIC-bcls Digits-DG 71.15% —

MEDIC consistently outperforms ERM-bcls and MVDG-bcls on both OSCR and H-score. In all considered regimes, it also matches or slightly outperforms strong closed-domain generalization (SWAD) in closed-set recognition (Wang et al., 2023).

7. Algorithm Workflow Summary

The per-iteration workflow is as follows:

  1. Randomly split source domains into T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\}6 and classes into T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\}7.
  2. Sample mini-batches: T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\}8 from T={DS+1,...,DS+T}T = \{D_{S+1}, ..., D_{S+T}\}9, QQ0 from QQ1, QQ2 from QQ3, QQ4 from QQ5.
  3. Compute meta-train loss QQ6.
  4. Take a virtual update: QQ7.
  5. Compute meta-test loss QQ8.
  6. Final update: QQ9.
  7. Repeat until convergence.

This episodic, dual-split procedure underpins MEDIC's generalizability to novel domains and unknown classes (Wang et al., 2023).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Dualistic Meta-Learning for Open Set Domain Generalization (MEDIC).