Gender Bias in LLaMA-3 Embeddings: Implications for LinkedIn-Style Retrieval Systems
Authors/Creators
- 1. TrustInsights.ai
Description
Large language models increasingly power professional network retrieval systems, with LinkedIn recently deploying LLaMA-3 for member and content embeddings. We investigate whether these embeddings exhibit gender bias by measuring semantic drift when we attribute identical professional content to names of different perceived genders. We constructed 406 paired LinkedIn-style posts with identical text content, headlines, and professional context, differing only in author name (male versus female variants), and extracted embeddings using LLaMA-3.2-3B's hidden states with mean pooling—replicating LinkedIn's published methodology. We find systematic bias: mean cosine similarity between paired embeddings is 0.994 (not the expected 1.0), with Cohen's d = -0.93 (large effect) and p < 0.0001 across both parametric and non-parametric statistical tests. This approximately 0.6% embedding deviation, while small per-pair, represents systematic differential treatment that compounds across retrieval, ranking, and recommendation systems—potentially affecting search visibility for millions of professionals. We release our dataset, code, and statistical framework to enable reproducible bias auditing of LLM-based retrieval systems.
Files
gender-bias-llama-3-embeddings-2025-12-18-trust-insights.pdf
Files
(84.4 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:383ea1e633ec2c9660f6ed10075f056f
|
84.4 kB | Preview Download |
Additional details
Related works
- Cites
- Journal: 10.18653/v1/N19-1063 (DOI)
- Journal: 10.1126/science.aal4230 (DOI)
- Journal: 10.48550/arXiv.2510.14223 (DOI)
- Journal: 10.4324/9780203771587 (DOI)
- Journal: 10.1257/0002828042002561 (DOI)
Dates
- Created
-
2025-12-18