[Paper Review] Cross-Domain Sentiment Classification with In-Domain Contrastive Learning
This paper proposes a novel in-domain contrastive learning framework for cross-domain sentiment classification that improves generalization by learning domain-invariant representations without relying on distribution matching. By adaptively applying in-domain contrastive learning or entropy minimization based on label distribution shift, the method achieves state-of-the-art performance on standard benchmarks, outperforming strong baselines through better decision boundary alignment and reduced error under large domain shifts.
Contrastive learning (CL) has been successful as a powerful representation learning method. In this paper, we propose a contrastive learning framework for cross-domain sentiment classification. We aim to induce domain invariant optimal classifiers rather than distribution matching. To this end, we introduce in-domain contrastive learning and entropy minimization. Also, we find through ablation studies that these two techniques behaviour differently in case of large label distribution shift and conclude that the best practice is to choose one of them adaptively according to label distribution shift. The new state-of-the-art results our model achieves on standard benchmarks show the efficacy of the proposed method.
Motivation & Objective
- To address the challenge of domain shift in cross-domain sentiment classification, especially under large label distribution shifts.
- To develop a contrastive learning framework that avoids distribution matching and instead promotes domain-invariant optimal classifiers.
- To investigate the complementary behaviors of in-domain contrastive learning and entropy minimization under varying label distribution shifts.
- To improve model generalization by learning discriminative, transferable representations through carefully designed pretext tasks.
- To achieve state-of-the-art performance on standard cross-domain sentiment classification benchmarks without relying on adversarial training or domain discrepancy minimization.
Proposed method
- Introduces in-domain contrastive learning, which forms positive and negative pairs only within each domain (source or target), avoiding inter-domain contrast that can increase domain discrepancy.
- Uses synonym substitution and back translation as data augmentation techniques to generate positive samples for contrastive learning, ensuring meaningful representation learning.
- Employs entropy minimization to encourage confident predictions on unlabeled target domain data, improving generalization in low-shift settings.
- Adaptively selects between in-domain contrastive learning and entropy minimization based on the magnitude of label distribution shift between source and target domains.
- Combines in-domain contrastive learning with entropy minimization in a unified framework, using t-SNE visualization to demonstrate improved clustering and decision boundary alignment.
- Uses BERT as a feature extractor and fine-tunes the model end-to-end with contrastive and entropy regularization objectives.
Experimental results
Research questions
- RQ1How does in-domain contrastive learning compare to standard contrastive learning in terms of domain discrepancy and decision boundary alignment?
- RQ2How do in-domain contrastive learning and entropy minimization perform under varying degrees of label distribution shift?
- RQ3Can adaptive selection between in-domain contrastive learning and entropy minimization improve overall performance across different domain shift scenarios?
- RQ4Does using sentiment-aware data augmentation (synonym substitution, back translation) as pretext tasks enhance transferability in cross-domain sentiment classification?
- RQ5To what extent does avoiding distribution matching improve model robustness under large label distribution shifts?
Key findings
- In-domain contrastive learning outperforms standard contrastive learning by reducing inter-domain divergence and improving margin separation between positive and negative clusters on the target domain.
- Entropy minimization performs poorly under large label distribution shifts, as it biases the model toward the majority class in the target domain, degrading performance.
- In-domain contrastive learning is most effective when label distribution shift is large (e.g., 7.39:1 in K→D), where it prevents misclassification of boundary instances.
- The adaptive strategy—using entropy minimization for small shifts and in-domain contrastive learning for large shifts—yields the best overall performance across benchmarks.
- Visualization with t-SNE confirms that the proposed method widens the margin between positive and negative clusters on the target domain, especially when both in-domain contrastive learning and entropy minimization are applied.
- The model achieves new state-of-the-art results on standard cross-domain sentiment classification benchmarks, demonstrating the efficacy of the proposed approach over strong baselines.
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.