Abstract
Zero-Shot Stance Detection (ZSSD) remains a significant challenge in natural language processing due to the difficulty of generalizing to unseen targets. We present JointCL, a novel framework that integrates context-aware and target-aware contrastive learning. By leveraging prototypical graphs to bridge known and unknown targets, JointCL achieves state-of-the-art performance across multiple benchmarks. Our approach demonstrates superior generalization capabilities in zero-shot, few-shot, and cross-target scenarios by simultaneously learning general stance expressions and relational target features.
Introduction
Stance detection is the task of determining an author's attitude—Pro, Con, or Neutral—toward a specific target (e.g., "Climate Change"). While traditional supervised models perform well on targets seen during training, they often fail in Zero-Shot scenarios where the target is entirely new at inference time.
The core challenge in ZSSD is effective generalization. Most existing methods focus on the context—how people express opinions generally—but often ignore the target-aware perspective. JointCL addresses this by modeling unseen targets through their semantic relationships to known prototypical stances, effectively treating prototypes as a shared vocabulary of stance expressions that transcends specific topics.
Methodology
JointCL utilizes a BERT-based backbone enhanced by two novel, complementary learning strategies designed to capture both general and target-specific features.
Stance Contrastive Learning (Context-Aware)
This branch employs supervised contrastive learning to pull together representations of text that share the same stance (e.g., all "Pro" instances) while pushing away those with different stances. This helps the model learn a generalized "language of favor or opposition" regardless of the specific topic, focusing on the linguistic markers of stance.
Target-Aware Prototypical Graph Contrastive Learning
The most innovative component of JointCL is the use of prototypical graphs. The model identifies "prototypes"—representative embeddings of semantically similar training instances—via k-means clustering. For every instance, the model constructs a graph connecting the input text to these prototypes. This acts as a bridge, allowing the model to represent an unseen target as a weighted combination of known prototypical stances.
Instead of just comparing point embeddings, the model uses a novel contrastive loss on the graph edges. This ensures that instances with similar target-prototype relationships have similar graph structures, helping the model generalize reasoning patterns to new targets.
Experimental Setup
The researchers evaluated JointCL on three major benchmarks:
- VAST: A large-scale dataset with a wide variety of topics, specifically designed for zero-shot and few-shot evaluation.
- SEM16: A classic dataset featuring six pre-defined targets, evaluated using a "leave-one-target-out" setup.
- WT-WT: A dataset containing company pairs used to test stance in the context of mergers and acquisitions.
Results and Discussion
JointCL outperformed all previous baselines, including strong adversarial and graph-based models. On the VAST dataset, it achieved a Macro F1 of 72.3%, a significant improvement over the previous state-of-the-art. The gains were even more pronounced on the WT-WT dataset, reaching an average F1 of 73.5% compared to 66.7% for prior top models.
Ablation studies demonstrated that context-aware and target-aware features are highly complementary; removing either component led to a significant drop in performance. Qualitative analysis via t-SNE plots (Figure 3) shows that JointCL creates much tighter, more distinct clusters for Pro, Con, and Neutral stances compared to standard BERT-GCN models, which often show significant overlap between classes.
Conclusion
JointCL effectively addresses the generalization gap in zero-shot stance detection by combining general stance expressions with target-specific relational modeling. While the model's performance is sensitive to the number of clusters ($k$) used for prototypes, its ability to "anchor" unseen targets to known concepts provides a robust path for generalization. Future work may involve incorporating external knowledge bases to further refine the relationships between prototypes and unseen targets.
Summary updated