Generative Data Augmentation with Contrastive Learning for Zero-Shot Stance Detection

Yang Li, Jiawei YuanEMNLP 2022

Abstract

Stance detection is a critical task in natural language processing, yet models often struggle with Zero-Shot Stance Detection (ZSSD), where the target of interest is unseen during training. This paper presents GDA-CL (Generative Data Augmentation with Contrastive Learning), a novel framework that addresses the domain shift problem in ZSSD. By utilizing a Generative Adversarial Network (GAN) to produce synthetic training samples for unseen targets and employing hybrid contrastive learning to align these samples with real-world semantics, GDA-CL achieves state-of-the-art performance on major benchmarks like VAST and SemT6 without the need for external knowledge graphs.

Introduction

Stance detection involves determining whether a piece of text expresses a position that is "In Favor," "Against," or "Neutral" toward a specific target, such as a political figure or a social issue. While supervised models excel when provided with ample labeled data for specific targets, they frequently fail in zero-shot scenarios. In ZSSD, the model must generalize its understanding of stance to topics it has never encountered, a task complicated by the "domain shift"—where linguistic cues for one topic do not necessarily apply to another.

The Challenge of Zero-Shot Stance Detection

The primary hurdle in ZSSD is that the features signaling a stance are often target-dependent. For example, supporting "Climate Change" might involve mentions of "renewable energy," whereas supporting "Atheism" involves entirely different semantic concepts. Most existing approaches attempt to bridge this gap using external knowledge bases or complex domain adaptation techniques, which can be difficult to scale across the diverse topics found on social media.

Comparison between target-specific and zero-shot stance detection tasks.

The GDA-CL Framework

To overcome these challenges, the authors propose GDA-CL, which treats ZSSD as a data augmentation problem. The framework consists of three integrated stages: generative augmentation, hybrid contrastive learning, and quality-based data selection.

The GDA-CL architecture, featuring GAN-based training data generation and hybrid contrastive learning modules.

1. Generative Data Augmentation

Instead of relying solely on existing labeled data, GDA-CL uses a GAN-based approach to "imagine" training data for unseen targets. A fine-tuned GPT-2 model acts as the generator, producing synthetic sentences based on a target and stance prompt. A RoBERTa-based discriminator then attempts to distinguish these from real human-written text. To stabilize this adversarial process, the authors employ Proximal Policy Optimization (PPO).

2. Hybrid Contrastive Learning (CL)

To ensure the synthetic data is semantically relevant and useful for classification, GDA-CL introduces two levels of contrastive learning:

  • Instance-level CL: This forces the model to group generated texts with real texts that share the same stance label in the embedding space.
  • Class-level CL: This correlates text embeddings with the semantic descriptions of the target and stance, ensuring the generated content remains "on-topic" and aligned with the intended class.

3. Data Selection and Fine-Tuning

Because generative models can produce "hallucinations" or low-quality text, the framework calculates a confidence score for each synthetic sample based on its average log probability. Only the highest-quality samples are retained to fine-tune the final BERT classifier.

Experimental Results

The model was evaluated on two major benchmarks: the large-scale VAST dataset (4,003 zero-shot topics) and the SemT6 dataset (6 specific targets).

  • VAST Performance: GDA-CL achieved a macro F1-score of 70.5%, outperforming previous state-of-the-art models like CKE-Net (70.2%) and significantly surpassing standard BERT baselines (66.1%).
  • SemT6 Performance: The model achieved the highest scores on four out of six targets, including high-profile topics like Donald Trump and Legalization of Abortion.
  • Ablation Studies: Removing either the instance-level or class-level contrastive learning components led to a consistent drop in performance, confirming that generative augmentation alone is insufficient without semantic alignment.

Conclusion

GDA-CL demonstrates that pre-trained language models like GPT-2 possess enough internal knowledge to generate plausible arguments for unseen topics. By combining this generative power with hybrid contrastive learning, the framework effectively bridges the domain gap in zero-shot stance detection. Future work will focus on improving the model's ability to handle longer, more complex argumentative structures and further refining the data selection process.

Summary updated

BibTeX
@inproceedings{li2022generative,
  author = {Yang Li and Jiawei Yuan},
  title = {{Generative Data Augmentation with Contrastive Learning for Zero-Shot Stance Detection}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.470},
}
Figure