LMSOC: An Approach for Socially Sensitive Pretraining

Vivek Kulkarni, Shubhanshu Mishra, Aria Haghighi
10/20/2021
cs.CLcs.CYcs.IR

Official code: twitter-research/lmsoc (13 stars, Jupyter Notebook, Apache-2.0, last commit 2021-10-22).

Abstract

While large-scale pretrained language models have been shown to learn effective linguistic representations for many NLP tasks, there remain many real-world contextual aspects of language that current approaches do not capture. For instance, consider a cloze-test "I enjoyed the ____ game this weekend": the correct answer depends heavily on where the speaker is from, when the utterance occurred, and the speaker's broader social milieu and preferences.

Show full abstract

Although language depends heavily on the geographical, temporal, and other social contexts of the speaker, these elements have not been incorporated into modern transformer-based language models. We propose a simple but effective approach to incorporate speaker social context into the learned representations of large-scale language models. Our method first learns dense representations of social contexts using graph representation learning algorithms and then primes language model pretraining with these social context representations. We evaluate our approach on geographically-sensitive language-modeling tasks and show a substantial improvement (more than 100% relative lift on MRR) compared to baselines.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for reproducing our paper: LMSOC: An Approach for Socially Sensitive Pretraining

131Jupyter NotebookAug 31, 20215 years agoApache-2.0
contextual-embeddingsgraph-machine-learningmachine-learningnatural-language-processingnetwork-analysis+2 more

Similar Papers

Cite this paper

@article{kulkarni2021lmsoc,
  title  = {LMSOC: An Approach for Socially Sensitive Pretraining},
  author = {Vivek Kulkarni and Shubhanshu Mishra and Aria Haghighi},
  year   = {2021},
  eprint = {2110.10319},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.10319}
}

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

Discussion