Target Really Matters: Target-aware Contrastive Learning and Consistency Regularization for Few-shot Stance Detection

Rui Liu, Zheng Lin, Huishan Ji, Jiangnan Li, Peng Fu, Weiping WangCOLING 2022

Introduction

Stance detection is the task of determining an author's attitude—Favor, Against, or None—towards a specific target. Unlike general sentiment analysis, stance is inextricably linked to the target. For instance, the phrase "True equality allows all to be born" expresses a positive sentiment toward life but a negative stance toward the target "Legalization of Abortion." A major bottleneck in this field is the scarcity of labeled data for diverse targets. While semi-supervised learning (SSL) offers a path forward, traditional methods often ignore the target's central role, treating the problem as generic text classification.

The STCC Framework

To address these challenges, the authors propose STCC (Target-aware Semi-supervised framework with Target-aware Contrastive learning and Consistency regularization). STCC leverages both limited labeled data and abundant unlabeled data through three core components.

The STCC framework architecture, illustrating (a) target-aware contrastive learning on labeled data, (b) the resulting feature clustering, and (c) the semi-supervised pipeline with consistency regularization on unlabeled data.
  1. Target-aware Contrastive Learning (TCL): Standard contrastive learning pulls samples with the same label together in the feature space. TCL refines this by pulling samples together only if they share both the same target and the same stance label. This ensures that the model learns target-specific nuances rather than just generic stance features.
  2. Target-aware Consistency Regularization (TCR): This component utilizes unlabeled data. The model is trained to maintain consistent predictions between original text and an "augmented" version where the target name is masked. This forces the model to identify stance-bearing linguistic cues within the content itself, preventing reliance on simple target-keyword shortcuts.
  3. Self-training with Curriculum Labeling: A teacher-student architecture is employed. The teacher model, trained with TCL, generates pseudo-labels for unlabeled data. A curriculum approach is used to select high-confidence pseudo-labeled samples, which are then used to train the student model.

Experimental Results and Analysis

STCC was evaluated on the SemEval-2016 and COVID-19-Stance datasets in 5-shot, 10-shot, and 20-shot scenarios. The framework achieved state-of-the-art results, outperforming baselines like BERT and standard Supervised Contrastive Learning (SCL) by an average of 3.09% on SemEval-2016 and 1.84% on COVID-19-Stance.

A key finding is the impact of TCL on the feature space. As shown in the t-SNE visualizations, standard Cross-Entropy (CE) and SCL result in overlapping clusters. In contrast, TCL produces distinct, well-separated clusters for different target-stance pairs, effectively anchoring the representations to their respective targets.

t-SNE visualizations of feature representations learned by Cross-Entropy (CE), Supervised Contrastive Learning (SCL), and the proposed Target-aware Contrastive Learning (TCL). TCL demonstrates superior cluster separation based on target and stance.

Furthermore, attention heatmaps revealed that the TCR component successfully shifts the model's focus from the target name to descriptive, stance-indicative words like "opposed" or "disgusted," whereas standard models often over-fit on the target keyword itself.

Conclusion

STCC demonstrates that making models "target-aware" is crucial for effective few-shot stance detection. By combining target-specific contrastive learning with a masking-based consistency regularization, the framework achieves significant performance gains and learns more robust linguistic representations. While the focus here was on in-target detection, future work may extend these strategies to zero-shot scenarios where targets are entirely new.

Summary updated

BibTeX
@inproceedings{liu2022target,
  author = {Rui Liu and Zheng Lin and Huishan Ji and Jiangnan Li and Peng Fu and Weiping Wang},
  title = {{Target Really Matters: Target-aware Contrastive Learning and Consistency Regularization for Few-shot Stance Detection}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=DQtgwgZTgvx},
}
Figure