Papers › Knowledge Enhanced Masked Language Model for Stance Detection

Knowledge Enhanced Masked Language Model for Stance Detection

26 May 2021NAACL 2021 4archive 2025-07-28

Kornraphop Kawintiranon, Lisa Singh

Detecting stance on Twitter is especially challenging because of the short length of each tweet, the continuous coinage of new terminology and hashtags, and the deviation of sentence structure from standard prose. Fine-tuned language models using large-scale in-domain data have been shown to be the new state-of-the-art for many NLP tasks, including stance detection. In this paper, we propose a novel BERT-based fine-tuning method that enhances the masked language model for stance detection. Instead of random token masking, we propose using a weighted log-odds-ratio to identify words with high stance distinguishability and then model an attention mechanism that focuses on these words. We show that our proposed approach outperforms the state of the art for stance detection on Twitter data about the 2020 US Presidential election.

PaperPDFCode

Code

GU-DataLab/stance-detection-KE-MLM mentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Language ModelingLanguage ModellingSentenceStance DetectionStance Detection (US Election 2020 - Biden)Stance Detection (US Election 2020 - Trump)

Datasets

Introduced by this paper, per the archive.

Twitter Stance Election 2020

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Stance Detection (US Election 2020 - Biden) Twitter Stance Election 2020 KE-MLM Average F1 0.7577 #1 of 1 Archive leaderboard report
Stance Detection (US Election 2020 - Trump) Twitter Stance Election 2020 KE-MLM Average F1 0.7877 #1 of 1 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: KE-MLM

KE-MLM

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections