Introduction
Multi-Domain Learning (MDL) is a critical paradigm in machine learning designed to build models that perform effectively across multiple related data distributions, or "domains." For instance, a model might need to perform sentiment analysis across different product categories (books vs. electronics) or recognize objects across different visual styles (sketches vs. photos). The goal is to share common knowledge across domains while preserving the nuances specific to each.
Traditionally, MDL relies on a "Shared-Private" (SP) architecture, where shared parameters capture domain-invariant features and private parameters capture domain-specific ones. However, these models are notoriously data-hungry. In domains like medical imaging or specialized linguistics, obtaining expert annotations across multiple domains is prohibitively expensive. This paper addresses the challenge of performing robust MDL when labeled data is extremely scarce.
The Multi-Domain Contrastive Learning (MDCL) Framework
The authors introduce Multi-Domain Contrastive Learning (MDCL), a "plug-and-play" framework designed to enhance existing MDL architectures without adding new model parameters. MDCL leverages both labeled and unlabeled data through two specialized contrastive loss functions:
1. Inter-Domain Semantic Alignment
This module focuses on labeled data to bridge the semantic gap between domains. Using a modified NT-Xent (Normalized Temperature-scaled Cross Entropy) loss, it encourages the model to pull instances of the same category closer together in the shared feature space, regardless of their domain of origin. For example, the shared representation of a "cat" in a photo is forced to align with the representation of a "cat" in a sketch, ensuring the model learns robust, domain-invariant concepts.
2. Intra-Domain Representative Learning
To utilize the vast amounts of unlabeled data often available, this module focuses on the private feature spaces. It employs a consistency-based approach: different augmented versions of the same unlabeled image are passed through the model, and the classifier is encouraged to assign them to the same cluster. This helps the model learn the underlying structure and unique characteristics of each specific domain without requiring explicit labels.
Because MDCL is a loss-based enhancement, it can be integrated into popular MDL architectures such as Multinomial Adversarial Networks (MAN) or Adversarial Shared-Private models (ASP-MTL).
Experimental Evaluation
The researchers evaluated MDCL across five diverse benchmarks spanning text and image modalities:
- Amazon: Sentiment analysis for four product categories.
- MNIST-USPS: Handwritten digit recognition across two datasets.
- Office-Home: Object recognition across four styles (Art, Clipart, Product, Real-World).
- FDUMTL: Large-scale text classification across 16 domains.
- PACS: A challenging visual dataset featuring Photo, Art, Cartoon, and Sketch domains.
Key Results
MDCL demonstrated significant performance gains, particularly in low-data regimes:
- The 1% Challenge: On the Office-Home dataset, using only 1% of available labels, MDCL achieved an average accuracy of 42.1%, significantly outperforming the standard MAN baseline of 34.7%.
- Scalability: The framework consistently outperformed baselines across all datasets, whether labels were moderately limited (5-20%) or extremely scarce (1%).
- Active Learning Synergy: When integrated into a Multi-Domain Active Learning (MDAL) pipeline, MDCL provided a superior initialization. This prevented the initial bias common in models trained on tiny datasets and resulted in higher Area Under the Learning Curve (AULC) scores.
Insights and Component Analysis
Ablation studies revealed that the contribution of each module depends on the nature of the task. For the PACS dataset, Inter-domain alignment (aligning labels across styles) was the primary driver of success. Conversely, for the MNIST-USPS digit task, Intra-domain representative learning (understanding the internal structure of the digits) proved more impactful. This suggests that MDCL's dual-pronged approach is robust across varying data characteristics.
Limitations and Future Directions
While MDCL offers a powerful solution for low-resource MDL, the authors identify several areas for further research:
- Hyperparameter Tuning: The method is sensitive to balancing parameters ($\lambda$) and temperature factors ($\tau$), which currently require manual adjustment for different datasets.
- Computational Cost: While it adds no parameters, the contrastive learning process involves processing augmented batches and calculating pair-wise similarities, increasing training time per epoch.
- Label Space Assumptions: The current framework assumes domains share the same label space. Future work could investigate how MDCL handles domains with partially overlapping or entirely different categories.
Summary updated