2023

What Do Llamas Really Think? Revealing Preference Biases in Language Model Representations

Tang, Raphael, Zhang, Xinyu, Lin, Jimmy et al.

Understand

Do large language models (LLMs) exhibit sociodemographic biases, even when they decline to respond? To bypass their refusal to "speak," we study this research question by probing contextualized embeddings and exploring whether this bias is encoded in its latent representations.

  • We propose a logistic Bradley-Terry probe which predicts word pair preferences of LLMs from the words' hidden vectors.
  • We first validate our probe on three pair preference tasks and thirteen LLMs, where we outperform the word embedding association test (WEAT), a standard approach in testing for implicit association, by a relative 27% in error rate.
  • We also find that word pair preferences are best represented in the middle layers.

Reading the bibliography…