[Paper Review] Domain Alignment with Triplets
This paper proposes Similarity-Constrained Alignment (SCA), a novel unsupervised domain adaptation method that improves domain-invariant feature learning by preserving class-level semantic relations between source and target domains. By combining domain-level alignment via joint distribution matching with triplet loss-based similarity constraints using pseudo-labeled target data, SCA achieves superior performance, reducing semantic misalignment and boosting accuracy by up to 5.7% over state-of-the-art baselines on Office-31.
Deep domain adaptation methods can reduce the distribution discrepancy by learning domain-invariant embedddings. However, these methods only focus on aligning the whole data distributions, without considering the class-level relations among source and target images. Thus, a target embeddings of a bird might be aligned to source embeddings of an airplane. This semantic misalignment can directly degrade the classifier performance on the target dataset. To alleviate this problem, we present a similarity constrained alignment (SCA) method for unsupervised domain adaptation. When aligning the distributions in the embedding space, SCA enforces a similarity-preserving constraint to maintain class-level relations among the source and target images, i.e., if a source image and a target image are of the same class label, their corresponding embeddings are supposed to be aligned nearby, and vise versa. In the absence of target labels, we assign pseudo labels for target images. Given labeled source images and pseudo-labeled target images, the similarity-preserving constraint can be implemented by minimizing the triplet loss. With the joint supervision of domain alignment loss and similarity-preserving constraint, we train a network to obtain domain-invariant embeddings with two critical characteristics, intra-class compactness and inter-class separability. Extensive experiments conducted on the two datasets well demonstrate the effectiveness of SCA.
Motivation & Objective
- To address the semantic misalignment problem in unsupervised domain adaptation, where domain-invariant embeddings may incorrectly align images of different classes.
- To improve classifier generalization on target domains by maintaining intra-class compactness and inter-class separability in the embedding space.
- To develop a method that enforces similarity-preserving constraints across domains without requiring target labels.
- To demonstrate that combining domain-level alignment with metric learning via triplet loss enhances transfer performance.
Proposed method
- The method uses joint distribution matching (JMMD) to align source and target data distributions in the embedding space.
- It introduces a similarity-preserving constraint using triplet loss to ensure that embeddings of the same class are pulled together and different classes are pushed apart.
- Pseudo-labels are assigned to target images using a classifier trained on the labeled source data, with only high-confidence predictions used for training.
- The final model is trained end-to-end with a combined loss: domain confusion loss (JMMD) and triplet loss for metric learning.
- The triplet loss enforces that positive pairs (same-class source and target images) are closer in embedding space than negative pairs (different-class pairs).
- The method is compatible with other domain alignment techniques, such as adversarial adaptation (e.g., RevGrad), and can be combined with them.
Experimental results
Research questions
- RQ1Can preserving class-level semantic relations between source and target domains improve unsupervised domain adaptation performance?
- RQ2How does the similarity-preserving constraint affect the alignment of embeddings at both domain and class levels?
- RQ3What is the optimal trade-off between domain-level alignment and metric learning in the presence of pseudo-labeled target data?
- RQ4Can the proposed method be effectively combined with existing domain alignment techniques like adversarial training or discrepancy minimization?
Key findings
- SCA achieves an average accuracy gain of 4.5% over the baseline on Office-31 when only the similarity-preserving constraint is applied.
- On the A→W, W→A, and D→A tasks of Office-31, SCA-RevGrad (SCA combined with adversarial adaptation) improves performance by +5.7%, +4.0%, and +5.1% respectively over RevGrad alone.
- The distribution discrepancy, measured by A-distance, is significantly reduced when using SCA features compared to baseline and domain-level alignment alone.
- The optimal balance between domain alignment and similarity constraint is achieved at a weighting hyperparameter β = 1, with performance degrading at higher values (e.g., β = 5).
- t-SNE visualization confirms that SCA embeddings maintain clear class separation and domain alignment, reducing semantic misalignment compared to standard domain alignment.
- The method demonstrates strong generalization by effectively leveraging pseudo-labeled target data to enforce metric consistency across domains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.