arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.07083cs.CL
收藏

Stanceformer:面向立场检测的目标感知Transformer

Stanceformer: Target-Aware Transformer for Stance Detection

University of Illinois Chicago(伊利诺伊大学芝加哥分校)

Krishna Garg, Cornelia Caragea

AI总结:

针对现有立场检测Transformer模型无法有效关注目标的问题,提出带目标感知矩阵的Stanceformer模型,提升目标自注意力得分,在多数据集上性能更优且可泛化到其他领域。

摘要:

立场检测任务旨在识别文本针对特定主题或目标表达的立场。现有研究依赖的Transformer模型无法有效优先关注目标信息,导致无论是否使用目标信息,模型性能都相近,削弱了该任务的意义。为解决这一问题,我们提出Stanceformer——一种目标感知Transformer模型,在训练和推理阶段都增强了对目标的注意力。具体而言,我们设计了“目标感知”矩阵,用于提升分配给目标的自注意力得分。我们在多种基于BERT的模型(包括当前最优模型和大语言模型(LLMs))上验证了Stanceformer的有效性,并在三个立场检测数据集及一个零样本数据集上评估了其性能。我们的方法Stanceformer不仅性能更优,还能泛化到其他领域,例如基于方面的情感分析。我们已公开代码。

英文摘要:

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 \textit{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.\footnote{\scriptsize\url{https://github.com/kgarg8/Stanceformer}}

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑