MeLT: Message-Level Transformer with Masked Document Representations as Pre-Training for Stance Detection

Matthew Matero, Nikita Soni, Niranjan Balasubramanian, H. Andrew Schwartz
9/16/2021
cs.CL
transformer-attention

Official code: MatthewMatero/MeLT (1 star, Python, last commit 2021-11-07).

Abstract

Much of natural language processing is focused on leveraging large capacity language models, typically trained over single messages with a task of predicting one or more tokens. However, modeling human language at higher-levels of context (i.e., sequences of messages) is under-explored.

Show full abstract

In stance detection and other social media tasks where the goal is to predict an attribute of a message, we have contextual data that is loosely semantically connected by authorship. Here, we introduce Message-Level Transformer (MeLT) -- a hierarchical message-encoder pre-trained over Twitter and applied to the task of stance prediction. We focus on stance prediction as a task benefiting from knowing the context of the message (i.e., the sequence of previous messages). The model is trained using a variant of masked-language modeling; where instead of predicting tokens, it seeks to generate an entire masked (aggregated) message vector via reconstruction loss. We find that applying this pre-trained masked message-level transformer to the downstream task of stance detection achieves F1 performance of 67%.

View on arXivView PDF

Code Implementations(1)

MatthewMatero/MeLTOfficial100%
10PythonSep 7, 20215 years ago

Similar Papers

Cite this paper

@article{matero2021melt,
  title  = {MeLT: Message-Level Transformer with Masked Document Representations as Pre-Training for Stance Detection},
  author = {Matthew Matero and Nikita Soni and Niranjan Balasubramanian and H. Andrew Schwartz},
  year   = {2021},
  eprint = {2109.08113},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.08113}
}

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/2109.08113.svg)](https://codeofpaper.com/paper/2109.08113)

Discussion