Contextual information integration for stance detection via cross-attention

Tilman Beck, Andreas Waldis, Iryna Gurevych
11/3/2022
cs.CL
transformer-attention

Official code: UKPLab/arxiv2022-context-injection-stance (9 stars, Python, Apache-2.0, last commit 2023-07-26).

Abstract

Stance detection deals with identifying an author's stance towards a target. Most existing stance detection models are limited because they do not consider relevant contextual information which allows for inferring the stance correctly.

Show full abstract

Complementary context can be found in knowledge bases but integrating the context into pretrained language models is non-trivial due to the graph structure of standard knowledge bases. To overcome this, we explore an approach to integrate contextual information as text which allows for integrating contextual information from heterogeneous sources, such as structured knowledge sources and by prompting large language models. Our approach can outperform competitive baselines on a large and diverse stance detection benchmark in a cross-target setup, i.e. for targets unseen during training. We demonstrate that it is more robust to noisy context and can regularize for unwanted correlations between labels and target-specific vocabulary. Finally, it is independent of the pretrained language model in use.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This repository includes the code for integrating contextual information for supervised text classification tasks using a dual-encoder approach and information exchange via cross-attention. You can find the paper here: https://arxiv.org/abs/2211.01874

93PythonOct 21, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{beck2022contextual,
  title  = {Contextual information integration for stance detection via cross-attention},
  author = {Tilman Beck and Andreas Waldis and Iryna Gurevych},
  year   = {2022},
  eprint = {2211.01874},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.01874}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.01874.svg)](https://codeofpaper.com/paper/2211.01874)

Discussion