Can We Locate and Prevent Stereotypes in LLMs?

Alex D'Souza
3/26/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Stereotypes in large language models (LLMs) can perpetuate harmful societal biases. Despite the widespread use of models, little is known about where these biases reside in the neural network.

Show full abstract

This study investigates the internal mechanisms of GPT 2 Small and Llama 3.2 to locate stereotype related activations. We explore two approaches: identifying individual contrastive neuron activations that encode stereotypes, and detecting attention heads that contribute heavily to biased outputs. Our experiments aim to map these "bias fingerprints" and provide initial insights for mitigating stereotypes.

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. Any repos shown below are weak matches — 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{dsouza2026locate,
  title  = {Can We Locate and Prevent Stereotypes in LLMs?},
  author = {Alex D'Souza},
  year   = {2026},
  eprint = {2604.19764},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.19764v1}
}

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

Discussion