Learning Beyond Domains: Misleading Prompts and Pseudo-Label Contrast for Text Domain Generalization

Authors

  • Qizhi Li Sichuan University
  • Xuyang Wang Sichuan University
  • Yingke Chen Northumbria University
  • Ming Yan Xinjiang University, A*STAR
  • Dezhong Peng Sichuan University, Tianfu Jincheng Laboratory
  • Xi Peng Sichuan University, Tianfu Jincheng Laboratory
  • Xu Wang Sichuan University, A*STAR

DOI:

https://doi.org/10.1609/aaai.v40i37.40436

Abstract

Recent advancements in Pre-trained Language Models (PLMs) have significantly enhanced performance across various Natural Language Processing (NLP) tasks. However, the variability in data distributions across different domains presents challenges in generalizing these models to unseen domains. Domain generalization offers a promising solution, but existing text domain generalization methods typically rely on adversarial training to learn domain-invariant features, which often leads to models with high computational and memory overhead. To address this issue, this paper proposes a novel solution named Generalization via Prompts and Contrastive Learning (GenPromptCL) to enhance the generalization capability in domain generalization. GenPromptCL consists of two key components: Domain-Misleading Prompt Learning (DMPL) and Pseudo Label-based Contrastive Learning (PCL). Specifically, DMPL disrupts domain labels randomly, misleading the model into producing incorrect domain labels. This forces the model to learn domain-invariant features. Meanwhile, PCL generates pseudo labels within a single mini-batch, enabling the model to learn both intra-class and inter-class discriminative representations with low time and space complexity. Extensive experimental results demonstrate that GenPromptCL achieves state-of-the-art performance on three distinct text classification tasks (sentiment analysis, rumor detection, and natural language inference) while significantly improving model operation efficiency.

Published

2026-03-14

How to Cite

Li, Q., Wang, X., Chen, Y., Yan, M., Peng, D., Peng, X., & Wang, X. (2026). Learning Beyond Domains: Misleading Prompts and Pseudo-Label Contrast for Text Domain Generalization. Proceedings of the AAAI Conference on Artificial Intelligence, 40(37), 31689–31697. https://doi.org/10.1609/aaai.v40i37.40436

Issue

Section

AAAI Technical Track on Natural Language Processing II