SocioProbe: What, When, and Where Language Models Learn about Sociodemographics

Anne Lauscher, Federico Bianchi, Samuel Bowman, Dirk Hovy
11/8/2022
cs.CL

Official code: MilaNLProc/socio-probe (3 stars, Jupyter Notebook, last commit 2022-12-09).

Abstract

Pre-trained language models (PLMs) have outperformed other NLP models on a wide range of tasks. Opting for a more thorough understanding of their capabilities and inner workings, researchers have established the extend to which they capture lower-level knowledge like grammaticality, and mid-level semantic knowledge like factual understanding.

Show full abstract

However, there is still little understanding of their knowledge of higher-level aspects of language. In particular, despite the importance of sociodemographic aspects in shaping our language, the questions of whether, where, and how PLMs encode these aspects, e.g., gender or age, is still unexplored. We address this research gap by probing the sociodemographic knowledge of different single-GPU PLMs on multiple English data sets via traditional classifier probing and information-theoretic minimum description length probing. Our results show that PLMs do encode these sociodemographics, and that this knowledge is sometimes spread across the layers of some of the tested PLMs. We further conduct a multilingual analysis and investigate the effect of supplementary training to further explore to what extent, where, and with what amount of pre-training data the knowledge is encoded. Our overall results indicate that sociodemographic knowledge is still a major challenge for NLP. PLMs require large amounts of pre-training data to acquire the knowledge and models that excel in general language understanding do not seem to own more knowledge about these aspects.

View on arXivView PDF

Code Implementations(1)

30Jupyter Notebook, PythonMar 25, 20223 years ago

Similar Papers

Cite this paper

@article{lauscher2022socioprobe,
  title  = {SocioProbe: What, When, and Where Language Models Learn about Sociodemographics},
  author = {Anne Lauscher and Federico Bianchi and Samuel Bowman and Dirk Hovy},
  year   = {2022},
  eprint = {2211.04281},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.04281}
}

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

Discussion