Stanceformer: Target-Aware Transformer for Stance Detection

Krishna Garg, Cornelia Caragea


Abstract
The task of Stance Detection involves discerning the stance expressed in a text towards a specific subject or target. Prior works have relied on existing transformer models that lack the capability to prioritize targets effectively. Consequently, these models yield similar performance regardless of whether we utilize or disregard target information, undermining the task’s significance. To address this challenge, we introduce Stanceformer, a target-aware transformer model that incorporates enhanced attention towards the targets during both training and inference. Specifically, we design a Target Awareness matrix that increases the self-attention scores assigned to the targets. We demonstrate the efficacy of the Stanceformer with various BERT-based models, including state-of-the-art models and Large Language Models (LLMs), and evaluate its performance across three stance detection datasets, alongside a zero-shot dataset. Our approach Stanceformer not only provides superior performance but also generalizes even to other domains, such as Aspect-based Sentiment Analysis. We make the code publicly available.
Anthology ID:
2024.findings-emnlp.286
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2024
Month:
November
Year:
2024
Address:
Miami, Florida, USA
Editors:
Yaser Al-Onaizan, Mohit Bansal, Yun-Nung Chen
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
4969–4984
Language:
URL:
https://preview.aclanthology.org/jlcl-multiple-ingestion/2024.findings-emnlp.286/
DOI:
10.18653/v1/2024.findings-emnlp.286
Bibkey:
Cite (ACL):
Krishna Garg and Cornelia Caragea. 2024. Stanceformer: Target-Aware Transformer for Stance Detection. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 4969–4984, Miami, Florida, USA. Association for Computational Linguistics.
Cite (Informal):
Stanceformer: Target-Aware Transformer for Stance Detection (Garg & Caragea, Findings 2024)
Copy Citation:
PDF:
https://preview.aclanthology.org/jlcl-multiple-ingestion/2024.findings-emnlp.286.pdf
Software:
 2024.findings-emnlp.286.software.zip