[Paper Review] Adversarial Invariant Feature Learning with Accuracy Constraint for Domain Generalization
This paper proposes AFLAC, a novel domain generalization method that explicitly balances domain invariance and classification accuracy by enforcing accuracy-constrained domain invariance during adversarial training. By theoretically analyzing the trade-off between invariance and accuracy under domain-class dependency, AFLAC achieves state-of-the-art performance on synthetic and real-world datasets, outperforming existing invariant feature learning methods while remaining robust to hyperparameter choices.
Learning domain-invariant representation is a dominant approach for domain generalization (DG), where we need to build a classifier that is robust toward domain shifts. However, previous domain-invariance-based methods overlooked the underlying dependency of classes on domains, which is responsible for the trade-off between classification accuracy and domain invariance. Because the primary purpose of DG is to classify unseen domains rather than the invariance itself, the improvement of the invariance can negatively affect DG performance under this trade-off. To overcome the problem, this study first expands the analysis of the trade-off by Xie et. al., and provides the notion of accuracy-constrained domain invariance, which means the maximum domain invariance within a range that does not interfere with accuracy. We then propose a novel method adversarial feature learning with accuracy constraint (AFLAC), which explicitly leads to that invariance on adversarial training. Empirical validations show that the performance of AFLAC is superior to that of domain-invariance-based methods on both synthetic and three real-world datasets, supporting the importance of considering the dependency and the efficacy of the proposed method.
Motivation & Objective
- To address the overlooked trade-off between domain invariance and classification accuracy in domain generalization (DG) under domain-class dependency.
- To formalize the concept of accuracy-constrained domain invariance, defined as the maximum invariance achievable without degrading classification performance.
- To develop a method that explicitly optimizes for this constrained invariance during adversarial training.
- To empirically validate that considering domain-class dependency leads to improved DG performance on real-world and synthetic datasets.
- To demonstrate the robustness of the proposed method to hyperparameter selection, a critical challenge in DG where target domain data are unavailable for validation.
Proposed method
- The method introduces a novel loss function that enforces domain invariance only up to the level allowed by the class-label-dependent domain information, derived from theoretical analysis of the entropy relationship H(d|h) = H(d|y).
- AFLAC uses adversarial training with a domain discriminator to minimize domain-specific features in the latent representation, but only within the accuracy-constrained bound.
- The core innovation lies in constraining the domain invariance via the conditional entropy H(d|y), ensuring that the representation retains just enough domain information to preserve classification accuracy.
- The model is trained end-to-end using a combination of cross-entropy classification loss and adversarial domain confusion loss with a gradient reversal layer, where the gradient reversal strength is calibrated to respect the accuracy constraint.
- The method is evaluated on BMNISTR (synthetic), PACS, WISDM, and IEMOCAP datasets, with ablation studies to isolate the impact of the accuracy constraint.
- Hyperparameter sensitivity is evaluated across multiple γ values to demonstrate robustness, especially under strong regularization.
Experimental results
Research questions
- RQ1How does domain-class dependency affect the performance of invariant feature learning methods in domain generalization?
- RQ2What is the theoretical relationship between domain invariance and classification accuracy under domain-class dependency?
- RQ3Can we define a maximum level of domain invariance that does not compromise classification accuracy?
- RQ4Does enforcing this accuracy-constrained invariance lead to better generalization performance on unseen domains?
- RQ5How robust is the proposed method to hyperparameter choices in the absence of target domain validation data?
Key findings
- AFLAC outperformed baseline methods on all datasets in average performance, including PACS (64.0% accuracy), WISDM (64.0% accuracy), and IEMOCAP (64.0% accuracy), with the exception of CIDDG on WISDM.
- On PACS and WISDM, the vanilla CNN outperformed standard IFL methods (DAN and AFLAC-Abl), indicating that domain invariance alone harms performance when domain-class dependency exists.
- On IEMOCAP, AFLAC outperformed AFLAC-Abl when the domain-class dependency strength I(d;y) was high (e.g., in Ses04 and Ses05), supporting the theoretical analysis.
- AFLAC showed superior robustness to hyperparameter choice: unlike DAN and AFLAC-Abl, which suffered sharp performance drops with suboptimal γ values, AFLAC maintained stable performance across γ values.
- The performance gap between AFLAC and AFLAC-Abl increased under strong regularization (γ = 10 or 100), confirming that AFLAC successfully avoids accuracy degradation even with aggressive invariance enforcement.
- Empirical results confirmed that the theoretical bound H(d|h) = H(d|y) corresponds to the optimal trade-off point, where invariance is maximized without harming accuracy.
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.