Label Efficient Learning of Transferable Representations acrosss Domains and Tasks

Zelun Luo, Yuliang Zou, Judy Hoffman, L. Fei-Fei

Introduction

In the "closed-world" of traditional supervised learning, models rely on a strong assumption: training and testing data come from the same distribution and share the exact same label space. However, real-world deployments are rarely this neat. Researchers typically tackle the resulting discrepancies through three separate sub-fields:

  1. Domain Adaptation: Moving from a source domain (like high-quality ImageNet photos) to a target domain (like low-resolution webcam images) while keeping the classification tasks identical.
  2. Few-Shot Learning: Learning to recognize entirely new concepts from just a handful of labeled examples.
  3. Task Transfer: Using knowledge acquired from one task (e.g., object detection) to accelerate learning on another (e.g., action recognition).

This paper addresses a much harder joint problem: adapting to a new domain and a new task simultaneously, with only a sparsely labeled target dataset. Most existing methods fail in this scenario because they assume either overlapping label spaces or negligible domain shifts. To solve this, the authors propose a semi-supervised framework designed to learn highly reusable representations that efficiently bridge both domain and task gaps.

Proposed Methodology

The authors introduce a semi-supervised framework that optimizes three distinct objectives simultaneously. It leverages labeled source data alongside a mix of unlabeled and sparsely labeled target data.

Architecture of the proposed joint transfer framework.

1. Multi-layer Domain Adversarial Loss

Standard adversarial adaptation usually aligns only the final feature layer of a network. However, domain shift occurs at multiple levels of abstraction—from low-level textures to high-level semantics. The proposed architecture uses a single "multi-layer discriminator" that accumulates information from several network layers. This forces the encoder to produce domain-invariant features across the entire feature hierarchy, creating a more robust bridge between the source and target domains.

2. Cross-Category Semantic Transfer

To handle non-overlapping label spaces (e.g., the source domain has classes A, B, C, while the target has X, Y, Z), the framework employs a metric-learning approach. It minimizes the entropy of pairwise similarities between unlabeled target points and labeled points. By encouraging unlabeled target data to "cluster" near labeled examples in the embedding space, the model discovers the underlying semantic structure without needing exhaustive manual annotations.

3. Temperature Scaling ($\tau$)

A critical technical detail in the semantic transfer process is the use of a "temperature" parameter ($\tau$) within the softmax function.

Effect of temperature scaling on probability distributions.

As shown above, $\tau$ acts as a control knob for "semantic overlap." * A low temperature (e.g., $\tau=0.25$) forces the distribution to be sharp, making a target image similar to exactly one source/target class. This is ideal when tasks are highly distinct. * A higher temperature (e.g., $\tau=2$) flattens the distribution, allowing an image to relate to multiple classes. This is useful when label sets have underlying semantic similarities that can be shared.

4. Metric-based Cross Entropy

For the few labeled target examples that are available, the model calculates loss based on the distance to class centroids in the embedding space, rather than relying on a standard linear classifier. This metric-based approach is far more stable in few-shot scenarios.

Experimental Validation

The framework was evaluated on two highly challenging "cross-domain, cross-task" setups:

  • SVHN $\to$ MNIST: The model was trained on digits 0-4 from the Street View House Numbers (SVHN) dataset and evaluated on digits 5-9 from MNIST. This ensures both the domains (street signs vs. handwritten) and the tasks (0-4 vs. 5-9) are entirely different. With only 2 labeled examples per class ($k=2$), the proposed "Full Model" achieved 91.7% accuracy, completely dwarfing standard fine-tuning, which stagnated at roughly 61.2%.
  • ImageNet $\to$ UCF-101: This tests the massive jump from static object recognition in images to action recognition in videos. Using ImageNet as the source and a sparsely labeled subset of UCF-101 as the target, the model significantly improved per-video accuracy. For $k=3$ (3 clips per class), the method reached 46.7% accuracy, compared to fine-tuning's 40.6%.

Furthermore, the multi-layer adversarial approach demonstrated much lower variance across runs compared to single-layer methods, proving it is less sensitive to the specific subset of labeled data chosen.

Key Insights and Limitations

Insights: * Alignment is a Multi-Level Game: Domain shift isn't just a high-level semantic problem. Aligning multiple layers simultaneously provides a significantly more stable representation. * Structure Over Labels: Even if source and target classes differ (e.g., "cars" vs. "running"), the underlying feature space often shares a similar geometric structure. Entropy minimization effectively exploits this.

Limitations & Future Work: * Semi-Supervised Requirement: While highly label-efficient, the model still requires at least a few labeled examples in the target domain to anchor the semantic transfer. Achieving this in a purely unsupervised manner for non-overlapping tasks remains an open challenge. * Computational Overhead: Aligning multiple layers and calculating pairwise similarities across large batches of unlabeled data increases training costs compared to simple fine-tuning.

Future directions include exploring even more diverse task transfers, such as moving from standard classification to complex structural tasks like pose estimation or depth perception.

Summary updated

BibTeX
@inproceedings{luo2017label,
  author = {Zelun Luo and Yuliang Zou and Judy Hoffman and L. Fei-Fei},
  title = {{Label Efficient Learning of Transferable Representations acrosss Domains and Tasks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=SJ-RTIbuZH},
}
Figure