Abstract
Domain adaptation aims to mitigate distribution shifts among different domains. However, traditional formulations are mostly limited to categorical domains, greatly simplifying nuanced domain relationships in the real world. In this work, we tackle a generalization with taxonomy-structured domains, which formalizes domains with nested, hierarchical similarity structures such as animal species and product catalogs. We build on the classic adversarial framework and introduce a novel taxonomist, which competes with the adversarial discriminator to preserve the taxonomy information. The equilibrium recovers the classic adversarial domain adaptation's solution if given a non-informative domain taxonomy (e.g., a flat taxonomy where all leaf nodes connect to the root node) while yielding non-trivial results with other taxonomies. Empirically, our method achieves state-of-the-art performance on both synthetic and real-world datasets with successful adaptation.
Introduction
In machine learning, "domain shift" remains a significant hurdle: a model trained on one set of data (e.g., photos of dogs in a park) often fails when deployed in another (e.g., photos of dogs in a living room). Traditional Domain Adaptation (DA) techniques attempt to solve this by learning representations that are "invariant" to the domain. However, these methods typically treat domains as discrete, unrelated categories—an approach that ignores the rich, hierarchical relationships inherent in real-world data.
In reality, domains often possess a nested structure. For instance, in biological classification, a Basset Hound is more closely related to a Beagle than to a Pomeranian. Standard adversarial methods attempt to erase all domain information to achieve uniform alignment, effectively discarding the useful "similarity map" provided by a taxonomy. This work introduces Taxonomy-Structured Domain Adaptation (TSDA), a framework designed to preserve these structural relationships to improve generalization.
The TSDA Framework
TSDA extends the classic adversarial domain adaptation framework (such as DANN) by introducing a multi-player game involving four distinct components:
- The Encoder ($E$): Responsible for mapping input data into a latent representation space.
- The Predictor ($F$): Performs the primary task, such as image classification.
- The Discriminator ($D$): The traditional adversary that attempts to identify the domain of the data, pushing the encoder toward domain invariance.
- The Taxonomist ($T$): The novel component of this architecture. The Taxonomist attempts to reconstruct the domain taxonomy—represented as a distance matrix—from the encoder's representations.
The Minimax Game
The core innovation lies in the competition between the Discriminator and the Taxonomist. While the Discriminator seeks to erase domain labels to achieve alignment, the Taxonomist seeks to preserve the structural relationships between domains. This creates a flexible equilibrium: the model learns to ignore specific domain-level noise while retaining the structural signal of how domains relate to one another.
Mathematically, the authors prove an Incompatibility Theorem, which demonstrates that perfect uniform alignment and perfect taxonomy preservation are mutually exclusive unless the taxonomy is "non-informative" (i.e., a flat structure). This necessitates a tunable balance, controlled by hyperparameters $\lambda_d$ and $\lambda_t$, allowing the model to weigh domain-blindness against structural awareness.
Theoretical and Empirical Results
One of the most compelling aspects of TSDA is its relationship to existing literature. The authors demonstrate that TSDA is a mathematical generalization of the Domain-Adversarial Neural Network (DANN). When provided with a flat taxonomy where all domains are equidistant from a root node, TSDA collapses back into the standard DANN model.
Performance on Synthetic and Real-World Data
The framework was evaluated against several state-of-the-art (SOTA) methods across diverse benchmarks:
- Synthetic Benchmarks (DT-14 & DT-40): Using domains generated from Gaussian distributions arranged in tree structures, TSDA achieved 100% accuracy on the DT-14 dataset. In contrast, DANN reached only 68.8%, and other methods like ADDA and CDANN performed near random chance (31-52%).
- ImageNet-Attribute-DT: Utilizing a subset of ImageNet with 11 categories of cats and dogs and a WordNet-derived taxonomy, TSDA showed superior adaptation capabilities.
- CUB-DT: On a fine-grained bird classification dataset (18 species) using a biological taxonomy from the NCBI database, TSDA reached 82.4% average accuracy, significantly outperforming the next best baseline, MDD (74.6%).
Visualizations using t-SNE further confirmed these results. While baseline methods often produced uninformative clusters or failed to align domains entirely, TSDA's learned embeddings successfully mirrored the real-world biological hierarchies of the data.
Conclusion
TSDA represents a shift from "blind" domain alignment to "structured" adaptation. By recognizing that some domains are more similar than others, the framework preserves valuable relational information that aids in generalization.
While the current implementation relies on pre-defined taxonomies, future research directions include Taxonomy Induction—the automated learning of hierarchical structures directly from data. Additionally, the authors suggest that the TSDA approach could be extended beyond image classification to other modalities where hierarchies are prevalent, such as speech, time-series analysis, and wireless signal processing.
Summary updated