Counteracts: Testing Stereotypical Representation in Pre-trained Language Models

Damin Zhang, Julia Rayz, Romila Pradhan
1/11/2023
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Recently, language models have demonstrated strong performance on various natural language understanding tasks. Language models trained on large human-generated corpus encode not only a significant amount of human knowledge, but also the human stereotype. As more and more downstream tasks have integrated language models as part of the pipeline, it is necessary to understand the internal stereotypical representation in order to design the methods for mitigating the negative effects. In this paper, we use counterexamples to examine the internal stereotypical knowledge in pre-trained language models (PLMs) that can lead to stereotypical preference. We mainly focus on gender stereotypes, but the method can be extended to other types of stereotype. We evaluate 7 PLMs on 9 types of cloze-style prompt with different information and base knowledge. The results indicate that PLMs show a certain amount of robustness against unrelated information and preference of shallow linguistic cues, such as word position and syntactic structure, but a lack of interpreting information by meaning. Such findings shed light on how to interact with PLMs in a neutral approach for both finetuning and evaluation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2023counteracts,
  title  = {Counteracts: Testing Stereotypical Representation in Pre-trained Language Models},
  author = {Damin Zhang and Julia Rayz and Romila Pradhan},
  year   = {2023},
  eprint = {2301.04347},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.04347v3}
}

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

Discussion