Taxonomy-Structured Domain Adaptation

Tianyi Liu, Zihao Xu, Hao He, Guang-Yuan Hao, Guang-He Lee, Hao Wang

Introduction

Standard domain adaptation (DA) methods aim to make machine learning models "domain-blind," mitigating distribution shifts by aligning source and target domains. However, this approach often ignores the rich, hierarchical relationships between domains found in the real world. This paper introduces Taxonomy-Structured Domain Adaptation (TSDA), a framework that utilizes a novel "taxonomist" module to ensure learned representations respect the underlying similarity structures of different domains. This structural awareness leads to significantly better generalization on both synthetic and real-world datasets.

The Problem with "Flat" Domain Adaptation

In machine learning, Domain Adaptation is the practice of training a model on one set of data (the source) so that it performs well on a different, but related, set of data (the target). Most existing DA techniques treat domains as flat, independent categories. For example, if you are training a model to recognize animals, a standard DA approach might treat "Beagle," "Basset Hound," and "Siamese Cat" as three equally distinct domains.

This perspective ignores taxonomy. A Beagle is inherently much more similar to a Basset Hound than it is to a Siamese Cat. Traditional "adversarial" DA methods try to achieve uniform alignment, forcing the model to create representations where it is impossible to tell which domain a sample came from. While this removes domain-specific noise, it also discards useful "inductive bias"—the structural information that dictates how domains relate to one another. The authors argue that an ideal system should balance domain invariance with domain similarity.

Methodology: The Taxonomist Framework

To solve this, the authors propose a game-theoretic framework involving four competing components:

  1. The Encoder ($E$): Learns the underlying data representations.
  2. The Predictor ($F$): Performs the main task (e.g., classification).
  3. The Discriminator ($D$): The classic adversary that tries to identify the domain of a sample, pushing the encoder toward domain invariance.
  4. The Taxonomist ($T$): The novel addition to the architecture. This player tries to reconstruct the domain taxonomy (represented as a distance matrix) from the learned representations.
Comparison of standard adversarial domain adaptation (left) and the proposed TSDA framework with the novel Taxonomist module (right).

The core innovation lies in the competition between the Discriminator and the Taxonomist. While the Discriminator wants to erase domain information, the Taxonomist forces the Encoder to retain just enough information to preserve the hierarchical structure.

The authors provide a mathematical proof of Incompatibility: they demonstrate that you cannot achieve both perfect uniform alignment and perfect taxonomy preservation unless the taxonomy is "non-informative" (i.e., every domain is equally distant from every other). This justifies their specific minimax objective function, which allows practitioners to tune the balance between these two competing goals. Notably, if TSDA is given a "flat" taxonomy, it naturally recovers the classic Domain-Adversarial Neural Network (DANN) solution.

Empirical Evaluation

The researchers evaluated TSDA on four distinct benchmarks:

  • DT-14 & DT-40: Two novel synthetic datasets featuring 14 and 40 domains, respectively, with data generated from Gaussian distributions structured according to 6-level or 7-level trees.
  • ImageNet-Attribute-DT: A subset of ImageNet focusing on 11 animal categories (dogs and cats), with taxonomy derived from the WordNet lexical database.
  • CUB-DT: Based on the CUB-200-2011 bird dataset, including 18 bird species with a taxonomy based on biological classifications from the National Center for Biotechnology Information (NCBI).

Key Results

TSDA consistently outperformed state-of-the-art baselines like DANN, ADDA, and GRDA across all evaluated datasets.

  • Synthetic Superiority: On the DT-14 dataset, TSDA achieved a perfect 100% accuracy. In stark contrast, the next best adversarial baseline (DANN) only reached 68.8%.
  • Real-World Gains: On the CUB-DT bird dataset, TSDA reached an average accuracy of 82.4%, representing a massive improvement over DANN’s 66.9%.
Accuracy comparison across different methods on a hierarchical dataset. TSDA achieves 100% accuracy, significantly outperforming baselines like DANN.

By adding a player that cares about the tree structure, the model learns a latent space that mirrors the real world—where related domains cluster together. Blindly aligning all domains can actually hurt performance if it deletes the structural relationships that help a model generalize to "nearby" domains.

Limitations and Future Directions

The primary limitation of TSDA is that it requires a predefined taxonomy. In many real-world applications, a perfect biological tree or semantic database might not be readily available. Furthermore, the performance of the model is heavily tied to the quality of the provided taxonomy; if the hierarchy does not reflect the actual features relevant to the task, it could introduce misleading biases.

The authors suggest that future work should focus on unsupervised taxonomy induction—building a model capable of discovering the hierarchical relationships between domains on its own while simultaneously performing the adaptation.

Summary updated

BibTeX
@inproceedings{liu2023taxonomy,
  author = {Tianyi Liu and Zihao Xu and Hao He and Guang-Yuan Hao and Guang-He Lee and Hao Wang},
  title = {{Taxonomy-Structured Domain Adaptation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=NPmWzDTEBg},
}
Figure