Abstract
As Large Language Models (LLMs) are increasingly integrated into professional workflows, their potential to perpetuate societal biases becomes a critical concern. This study investigates gender bias in recommendation letters generated by models like ChatGPT and Alpaca. By comparing letters generated with minimal context against those based on detailed biographies, the researchers demonstrate that LLMs consistently describe men using "agentic" leadership terms and women using "communal" social terms. Crucially, the study identifies "hallucination bias," where models amplify gender stereotypes when generating non-factual content to fill gaps in a candidate's profile.
Introduction
Recommendation letters are high-stakes documents that significantly influence career trajectories. Historically, social science research has shown that human-written letters often contain subtle gender biases: men are frequently characterized by "agentic" traits (e.g., ambitious, decisive, leader), while women are described with "communal" traits (e.g., kind, helpful, warm). These linguistic nuances can inadvertently sabotage the prospects of female candidates in competitive professional environments.
With the rise of LLMs as writing assistants, there is a pressing need to determine if these models mitigate or exacerbate these systemic biases. This research evaluates how LLMs handle gendered descriptions in both language style and lexical choice, introducing a novel analysis of how "hallucinations"—the generation of information not present in the source text—serve as a vehicle for intensified stereotyping.
Methodology
To rigorously test for bias, the researchers evaluated ChatGPT and Alpaca using two distinct generation paradigms:
- Context-Less Generation (CLG): Models were prompted with minimal information (e.g., "Write a letter for Kelly, a 22-year-old female student"). This isolated the model's internal "priors" or learned stereotypes.
- Context-Based Generation (CBG): Models were provided with a detailed biography. This tested whether models could remain objective when presented with factual evidence.
Data and Metrics
The researchers developed WikiBias-Aug, a benchmark derived from Wikipedia biographies. They used a "gender flipping" technique, swapping names and pronouns to create perfectly balanced male and female versions of identical professional backgrounds.
Bias was quantified using several sophisticated metrics:
- Odds Ratio (OR): To identify words uniquely associated with one gender.
- Word Embedding Association Test (WEAT): To measure the strength of association between gendered names and stereotypical traits.
- Style Classifiers: BERT-based models scored sentences for Formality, Positivity, and Agency.
- NLI-based Hallucination Detection: Natural Language Inference (NLI) was used to identify sentences not supported by the input biography, allowing for a targeted analysis of bias within non-factual content.
Key Findings
The Persistence of the Agentic/Communal Divide
In the Context-Less (CLG) task, the models defaulted heavily to traditional stereotypes. "Joseph" was frequently described as a "natural leader" and a "role model," while "Kelly" was characterized as "well-liked" and "interpersonally skilled." Even in the Context-Based (CBG) task—where the input biographies were identical—statistically significant differences in tone and agency persisted.
In ChatGPT-generated letters, the Agency score for male candidates was significantly higher than for females ($p < 1.02e-25$). Lexical saliency analysis revealed that for males, top words included leadership, standout, agentic, and ability. For females, the models favored warm, emotional, kind, and collaborative.
Hallucination as a Bias Amplifier
One of the study's most significant contributions is the discovery of "hallucination bias." When models generated details not found in the provided biography, they did not add neutral information. Instead, they filled the gaps with gender-stereotypical "fluff."
- For Men: Hallucinated content was significantly more formal and positive than the rest of the letter.
- For Women: Hallucinated content showed a significant drop in Agency scores.
This suggests that when an LLM is "unsure" or lacks information, it defaults to a gendered schema where professional excellence is more closely associated with masculinity.
Model Comparisons
While both models exhibited bias, their manifestations differed. Alpaca showed particularly high bias in Formality ($p < 1.17e-03$), consistently adopting a more professional and serious tone for men than for women, even when the underlying qualifications were identical.
Discussion and Limitations
The findings indicate that LLMs mirror the "gender schema" prevalent in human society. Even when provided with factual evidence, the models struggle to decouple professional capability from gendered linguistic patterns. This has profound implications for the use of AI in HR and academic settings, as it suggests that AI-assisted drafting may subtly disadvantage women by using less impactful language.
Limitations
- Binary Gender: The study was limited to male/female binaries due to dataset constraints.
- Document Scope: The analysis focused exclusively on reference letters; other professional documents like resumes or peer reviews may show different patterns.
- Model Selection: The study focused on ChatGPT and Alpaca; other emerging models remain to be tested.
Conclusion
This research highlights that LLMs are not neutral tools for professional writing. They inherit and, in the case of hallucinations, amplify existing societal biases. Future work must focus on developing debiasing techniques, such as specific prompting rules or fine-tuning on balanced datasets, to ensure that AI assistants promote equity rather than reinforcing glass ceilings.
Summary updated