Abstract
Stance detection is a critical task in natural language processing, essential for identifying ideological leanings and combating misinformation. However, the field faces significant challenges regarding domain variance, label imbalance, and the high cost of data annotation. This paper introduces TESTED (Topic Efficient StancE Detection), a framework designed to achieve high performance using only a fraction of available training data. By integrating unsupervised topic-guided diversity sampling with a contrastive learning objective, TESTED achieves state-of-the-art results, notably improving out-of-domain performance by 10.2 F1 points while utilizing only 10% of the training data.
Introduction
Stance detection—the task of determining whether an author is "for," "against," or "neutral" toward a specific target—is fundamental to analyzing public discourse. Despite its importance, three primary hurdles limit the effectiveness of current models. First, domain variance causes models trained on one context (e.g., political debates) to perform poorly on others (e.g., social media). Second, label imbalance is pervasive; real-world datasets often feature skewed distributions where certain topics or stances are overrepresented. Finally, data inefficiency remains a bottleneck, as high-quality stance annotation is labor-intensive and expensive.
To address these issues, the TESTED framework asks a fundamental question: Can we intelligently select a representative subset of data to train models that are more robust and generalizable across diverse topics?
The TESTED Framework
The TESTED framework consists of two primary innovations designed to maximize the utility of limited data.
1. Topic-Guided Diversity Sampling
Rather than relying on random sampling, which often preserves the biases and redundancies of the original dataset, TESTED employs an unsupervised deep topic model based on Top2Vec. This model clusters the data into thematic groups. A diversity maximization algorithm then selects samples from these clusters to ensure the training set is representative of the entire topic space. This process balances the labels within topics and ensures that the model is exposed to the full breadth of the dataset's thematic variety.
2. Contrastive Learning Objective
During the fine-tuning phase, which utilizes a RoBERTa-large backbone, TESTED moves beyond standard cross-entropy loss. It incorporates a pairwise contrastive loss objective. This forces the model to pull representations of samples with the same label closer together in the embedding space while pushing samples with different labels further apart. The loss function is specifically designed to penalize "opposing pairs" (e.g., Pro vs. Con) more harshly, creating distinct and clear boundaries between different stances in the model's internal representation.
Experimental Setup
The framework was evaluated using a comprehensive benchmark of 16 different datasets (compiled by Hardalov et al., 2021), categorized into four domains:
- Debates: (e.g., arc, iac1, poldeb)
- News: (e.g., emergent, fnc1, snopes)
- Social Media: (e.g., semeval2016, rumor, mtsd)
- Various: (e.g., argmin, ibmcs, vast)
This diverse array of data allowed for rigorous testing of both in-domain (topics seen during training) and out-of-domain (entirely unseen topics) performance.
Key Results and Discussion
Data Efficiency and the "10% Sweet Spot"
One of the most significant findings was that performance gains largely plateau after utilizing approximately 10% of the training data. This suggests that large-scale stance datasets contain substantial redundancy. By using "smart" sampling rather than "more" data, TESTED achieves superior results with significantly lower computational and annotation costs.
Robustness and Generalization
TESTED demonstrated remarkable improvements in generalizability:
- In-Domain: The framework outperformed the previous state-of-the-art (MoLE) by an average of 3.5 F1 points across all 16 datasets.
- Out-of-Domain: The most significant impact was seen in unseen topics, where TESTED achieved a massive 10.2 F1 point increase over existing benchmarks.
Qualitative Improvements
Ablation studies confirmed that both the sampling and the contrastive loss are essential; removing them led to performance drops of 8 and 3 F1 points, respectively. Qualitative analysis via t-SNE plots further revealed that the contrastive loss significantly increased "cluster purity," meaning the model learns a spatial representation where different stances are physically separated, leading to more reliable classification.
Conclusion
TESTED provides a robust blueprint for data-efficient multi-domain stance detection. By focusing on what the model learns from (via topic-guided sampling) and how it learns (via contrastive loss), the researchers have shown that it is possible to build more generalizable NLP models with a fraction of the data. While currently limited to English, the framework offers a promising path forward for other imbalanced, multi-domain text classification tasks.
Summary updated