This paper investigates a fundamental question for AI trustworthiness: does a language model’s reasoning change just because you change the subject's name? By applying a causal framework to social commonsense reasoning, the authors reveal that name frequency—how common a name is in the real world—significantly impacts model consistency, even after the models are fine-tuned for specific tasks.
TL;DR
Researchers found that Large Language Models (LLMs) provide inconsistent social reasoning when prompted with rare first names compared to common ones. While fine-tuning improves overall accuracy, it fails to close this "consistency gap," largely because rare names are processed differently at the neuronal level and often suffer from sub-tokenization.
What Problem Does This Paper Address?
As LLMs are integrated into sensitive areas like AI-assisted counseling and social autocomplete, we expect them to be "identity-invariant." The reasoning applied to "Alice" should be identical to the reasoning applied to "Theophane" if the context remains the same.
However, names are not just labels; they are proxies for gender, race, and socioeconomic status. Previous research showed that pre-trained models harbor biases based on names. This paper goes deeper, asking:
- Does this bias persist after a model is fine-tuned on a specific task?
- What are the internal mechanisms (embeddings and neurons) that cause these disparities?
- Can we distinguish between random chance and actual causal effects driven by name characteristics?
Methods
The authors proposed a controlled experimental framework using a Causal Graph to isolate the effects of name instances on model predictions.
They measured two types of effects:
- Direct Effect ($N \rightarrow \hat{Y}$): How the name itself changes the prediction.
- Indirect Effect ($N \rightarrow NP \rightarrow \hat{Y}$): How the pronouns associated with a name (e.g., he/she/they) influence the outcome.
To quantify these, they used two metrics:
- $d_{ACC}$ (Accuracy): Does the model get the answer right?
- $d_{AGR}$ (Agreement): How consistent are the model's predictions across a set of different names? (A modification of Fleiss’ kappa).
Finally, they used Non-negative Matrix Factorization (NMF) to analyze neuron activations in the feed-forward layers, essentially looking "under the hood" to see which parts of the model light up for different names.
Datasets
- SocialIQA: A benchmark dataset for social commonsense reasoning (e.g., "James worked hard to make a cake... how would others feel?").
- U.S. Census Data: Used to categorize names into "Most Frequent" and "Least Frequent" (top/bottom 200) and to assign gender labels based on historical records.
Key Insights and Ideas
- Frequency Trumps Gender: While gender bias is a well-known issue, this study found that name frequency has a more pervasive impact on model consistency. Rare names lead to much more divergent and unpredictable model behavior.
- The Sub-tokenization Trap: Rare names (like "Andrine" or "Leuvenia") are often broken down into multiple sub-tokens by the model's tokenizer. This fragmented representation makes it harder for the model to form a stable "concept" of the entity, leading to inconsistent reasoning.
- Fine-tuning is a Band-Aid, Not a Cure: Fine-tuning significantly improves accuracy ($d_{ACC}$), making the direct effect of names on "correctness" statistically insignificant. However, it does not fix the agreement ($d_{AGR}$) issue. The model might get the right answer more often, but it remains "jittery" and inconsistent when names are swapped.
- Representational Divergence: By the final layers of the model, the internal representations (embeddings) of rare names show much higher variability and lower similarity compared to frequent names.
Key Results
- Consistency Gap: For GPT-2 and BERT, a consistent gap in agreement ($d_{AGR}$) between frequent and rare names persisted throughout the entire fine-tuning process. RoBERTa was more robust but still showed higher agreement for frequent names.
- Neuron Activation: The NMF analysis showed that rare names often fail to activate the same semantic neuron clusters as frequent names, suggesting the model is literally "thinking" about them differently.
- Dataset Skew: The authors noted that 97% of name instances in the SocialIQA training set represent only the top 10% of most frequent U.S. names. This lack of diversity in training data is a primary driver of the observed causal effects.
Limitations and Future Work
The study focused on a single dataset (SocialIQA) and used a fixed threshold ($k=200$) to define name frequency. The authors acknowledge that social commonsense is a vast field, and these findings might vary across different tasks or cultures.
The clear takeaway for the community is the need for data augmentation. To build truly robust and fair models, researchers must ensure that training sets include a diverse, long-tail distribution of names to prevent models from "stumbling" over less common identities.
Summary updated