---
title: "Generation bias (LLM)"
source: "https://systems-analysis.info/eng/Generation_bias_(LLM)"
wiki: "systems-analysis.info/eng"
article: "Generation_bias_(LLM)"
language: "en"
categories:
  - "Category:English"
  - "Category:Large language models"
  - "Category:Machine learning"
  - "Category:Technology"
revision_id: 165
wiki_created_at: 2026-09-06T22:18:19Z
wiki_modified_at: 2026-09-06T22:18:19Z
downloaded_at: 2026-09-07T22:21:31Z
---

# Generation bias (LLM)

**Bias in large language models (LLMs)** is the systematic distortion of generated text, where the model reflects or amplifies existing societal stereotypes and prejudices related to gender, race, culture, political views, and other social categories. This phenomenon occurs because LLMs are trained on vast amounts of human data, which inevitably contain biased information<sup>[\[1\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-arxiv-bias-origin-1)</sup>.

Bias is one of the key ethical and technical challenges in AI development, as it can lead to discrimination, the spread of misinformation, and the erosion of trust in technology.

## Types of Bias in LLMs

Bias in LLMs can manifest in various forms.

### Gender Bias

Models tend to reproduce traditional gender stereotypes, associating professions and characteristics with a specific gender.

- A 2024 UNESCO study showed that LLMs are four times more likely to describe women in domestic roles ("home," "family," "children") than men, while men are associated with concepts like "business" and "career"<sup>[\[2\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-unesco-gender-bias-2)</sup>.
- A study in *Nature Scientific Reports* revealed significant gender and racial bias in the content generated by seven leading LLMs, including ChatGPT and LLaMA<sup>[\[3\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-nature-gender-race-bias-3)</sup>.
- In the Russian-language context, models often default to the masculine gender for neutral roles (e.g., "врач" \[doctor\], "директор" \[director\]) and struggle to generate feminatives.

### Racial and Ethnic Bias

LLMs can exhibit subtle discrimination against various ethnic groups.

- A Bloomberg study showed that ChatGPT 3.5 preferred resumes from Asian candidates over Black candidates<sup>[\[4\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-bloomberg-hiring-bias-4)</sup>.
- In the Russian-language context, the **RuBia** dataset revealed that models can reproduce antisemitic and anti-immigrant stereotypes (e.g., agreeing with the statement "immigrants are lazy") if they are present in the training corpus<sup>[\[5\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-rubia-dataset-themoonlight-5)</sup>.

### Political and Ideological Bias

Despite claims of neutrality, many LLMs show a tendency toward a specific political spectrum.

- A study by the Centre for Policy Studies found a left-liberal bias in 23 out of 24 tested LLMs<sup>[\[6\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-cps-left-leaning-bias-6)</sup>.
- Testing by the University of Washington and Carnegie Mellon showed that ChatGPT and GPT-4 were the most left-libertarian, while Meta's LLaMA was the most right-authoritarian<sup>[\[7\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-mit-review-political-bias-7)</sup>.

## Mechanisms of Bias Emergence

- Training Data: The primary source. LLMs are trained on vast text corpora from the internet, which mirror society with all its stereotypes.
- Architecture and Training Algorithms: The transformer architecture itself can amplify existing correlations in the data.
- Fine-tuning and RLHF: The reinforcement learning from human feedback (RLHF) stage can also introduce bias, as human evaluators are inevitably guided by their own views.

## Detection and Mitigation Methods

### Bias Detection

- **Stereotype Test Sets:** Specialized datasets are used, such as:
  - **CrowS-Pairs:** Covers nine types of bias, including race, religion, and age<sup>[\[8\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-crows-pairs-acl-8)</sup>.
  - **StereoSet:** Measures stereotypical bias in four domains: gender, profession, race, and religion<sup>[\[9\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-stereoset-arxiv-9)</sup>.
  - **RuBia:** A specialized dataset for detecting bias in Russian-language models<sup>[\[10\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-rubia-dataset-arxiv-10)</sup>.
  - **Multilingual Resources:** Adaptations such as **French CrowS-Pairs**<sup>[\[11\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-11)</sup> and the **Chinese Bias Benchmark (CBBQ)**<sup>[\[12\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-12)</sup>.
  - **Domain-Specific Analysis:** Studies on bias in recruiting<sup>[\[13\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-stanford-law-bias-13)</sup>, medicine<sup>[\[14\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-nature-digital-medicine-bias-14)</sup>, and other areas.

### Bias Mitigation

- **Data Level (Pre-processing):** Cleaning, filtering, and rebalancing training corpora. Methods are described in the **Holistic AI** documentation<sup>[\[15\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-holistic-ai-docs-15)</sup>.
- **Training Level (In-processing):** Modifying training algorithms to account for fairness.
- **Output Level (Post-processing):** Filtering and moderating already generated responses.

## Legal and Ethical Consequences

Bias in AI has serious consequences, including discrimination in critical areas and the spread of misinformation.

- **Regulation:** Governments around the world are beginning to introduce regulations to control AI.
- In Europe, the **AI Act** has been adopted and is coming into force in stages from August 1, 2024. It imposes strict requirements on high-risk systems, including mandatory bias assessment, and provides for fines of up to 7% of a company's global turnover<sup>[\[16\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-jonesday-ai-act-16)</sup>.
- In Russia, leading technology companies signed a voluntary **Code of Ethics in AI** in 2021, committing to minimize discrimination. By the end of 2021, over 100 organizations had signed it<sup>[\[17\]](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_note-tass-ethics-code-17)</sup>.

The fight against bias is a constant compromise. Overly aggressive filtering can lead to "excessive political correctness," where the model refuses to discuss any sensitive topics. Therefore, developers are seeking a balance between the model's safety, objectivity, and informativeness.

## See also

- [Large Language Models](https://systems-analysis.info/eng/Large_language_model "Large language model")

## Literature

- Guo, Y. et al. (2024). *Bias in Large Language Models: Origin, Evaluation, and Mitigation*. <a href="https://arxiv.org/abs/2411.10915" class="external text" rel="nofollow">arXiv:2411.10915</a>.
- Gallegos, I. O. et al. (2023). *Bias and Fairness in Large Language Models: A Survey*. <a href="https://arxiv.org/abs/2309.00770" class="external text" rel="nofollow">arXiv:2309.00770</a>.
- Bender, E. M. et al. (2021). *On the Dangers of Stochastic Parrots: Can Language Models Be Too Big?*. <a href="https://dl.acm.org/doi/10.1145/3442188.3445922" class="external text" rel="nofollow">doi:10.1145/3442188.3445922</a>.
- Nadeem, M. et al. (2020). *StereoSet: Measuring Stereotypical Bias in Pretrained Language Models*. <a href="https://arxiv.org/abs/2004.09456" class="external text" rel="nofollow">arXiv:2004.09456</a>.
- Nangia, N. et al. (2020). *CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Models*. <a href="https://aclanthology.org/2020.emnlp-main.154/" class="external text" rel="nofollow">ACL 2020</a>.
- Bai, X. et al. (2024). *Measuring Implicit Bias in Explicitly Unbiased Large Language Models*. <a href="https://arxiv.org/abs/2402.04105" class="external text" rel="nofollow">arXiv:2402.04105</a>.
- Hofmann, V. et al. (2024). *AI Generates Covertly Racist Decisions about People Based on Their Dialect*. *Nature*, 633, 147-154. <a href="https://www.nature.com/articles/s41586-024-07856-5" class="external text" rel="nofollow">Full text</a>.
- Fang, X. et al. (2024). *Bias of AI-Generated Content: An Examination of News Produced by Large Language Models*. *Scientific Reports*, 14, 5224. <a href="https://www.nature.com/articles/s41598-024-55686-2" class="external text" rel="nofollow">Full text</a>.
- Grigoreva, V. et al. (2024). *RuBia: A Russian Language Bias Detection Dataset*. <a href="https://arxiv.org/abs/2403.17553" class="external text" rel="nofollow">arXiv:2403.17553</a>.
- Du, L. et al. (2024). *Causal-Guided Active Learning for Debiasing Large Language Models*. <a href="https://arxiv.org/abs/2408.12942" class="external text" rel="nofollow">arXiv:2408.12942</a>.
- Ayaz, A. et al. (2023). *Taught by the Internet: Exploring Bias in OpenAI’s GPT-3*. <a href="https://arxiv.org/abs/2306.02428" class="external text" rel="nofollow">arXiv:2306.02428</a>.

## References

1.  <span id="cite_note-arxiv-bias-origin-1">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-arxiv-bias-origin_1-0) "Bias in Large Language Models: Origin, Evaluation, and Mitigation." *arXiv*. <a href="https://arxiv.org/html/2411.10915v1" class="external autonumber" rel="nofollow">[1]</a></span>
2.  <span id="cite_note-unesco-gender-bias-2">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-unesco-gender-bias_2-0) "Generative AI: UNESCO study reveals alarming evidence of regressive gender stereotypes." *UNESCO*. <a href="https://www.unesco.org/en/articles/generative-ai-unesco-study-reveals-alarming-evidence-regressive-gender-stereotypes" class="external autonumber" rel="nofollow">[2]</a></span>
3.  <span id="cite_note-nature-gender-race-bias-3">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-nature-gender-race-bias_3-0) "Gender and race stereotypes in Large Language Models." *Nature Scientific Reports*. <a href="https://www.nature.com/articles/s41598-024-55686-2" class="external autonumber" rel="nofollow">[3]</a></span>
4.  <span id="cite_note-bloomberg-hiring-bias-4">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-bloomberg-hiring-bias_4-0) "ChatGPT’s Racial Bias in Hiring Decisions." *Business Insider*. <a href="https://www.businessinsider.com/chatgpt-racial-bias-job-hiring-report-2024-3" class="external autonumber" rel="nofollow">[4]</a></span>
5.  <span id="cite_note-rubia-dataset-themoonlight-5">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-rubia-dataset-themoonlight_5-0) "RuBia: A Russian-language Bias Detection Dataset." *The Moonlight*. <a href="https://www.themoonlight.io/de/review/rubia-a-russian-language-bias-detection-dataset" class="external autonumber" rel="nofollow">[5]</a></span>
6.  <span id="cite_note-cps-left-leaning-bias-6">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-cps-left-leaning-bias_6-0) "Left-leaning bias commonplace in AI-powered chatbots, shows new report." *Centre for Policy Studies*. <a href="https://cps.org.uk/media/post/2024/left-leaning-bias-commonplace-in-ai-powered-chatbots-shows-new-report/" class="external autonumber" rel="nofollow">[6]</a></span>
7.  <span id="cite_note-mit-review-political-bias-7">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-mit-review-political-bias_7-0) "AI language models are rife with political biases." *MIT Technology Review*. <a href="https://www.technologyreview.com/2023/08/07/1077324/ai-language-models-are-rife-with-political-biases/" class="external autonumber" rel="nofollow">[7]</a></span>
8.  <span id="cite_note-crows-pairs-acl-8">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-crows-pairs-acl_8-0) "CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Models." *ACL Anthology*. <a href="https://aclanthology.org/2020.emnlp-main.154/" class="external autonumber" rel="nofollow">[8]</a></span>
9.  <span id="cite_note-stereoset-arxiv-9">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-stereoset-arxiv_9-0) "StereoSet: Measuring stereotypical bias in pretrained language models." *arXiv*. <a href="https://arxiv.org/abs/2004.09456" class="external autonumber" rel="nofollow">[9]</a></span>
10. <span id="cite_note-rubia-dataset-arxiv-10">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-rubia-dataset-arxiv_10-0) "RuBia: A Russian Language Bias Detection Dataset." *arXiv*. <a href="https://arxiv.org/abs/2403.17553" class="external autonumber" rel="nofollow">[10]</a></span>
11. <span id="cite_note-11">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-11) "French CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in French Language Models." *ACL Anthology*. <a href="https://aclanthology.org/2022.acl-long.583/" class="external autonumber" rel="nofollow">[11]</a></span>
12. <span id="cite_note-12">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-12) "CBBQ: A Chinese Bias Benchmark for Large Language Models." *arXiv*. <a href="https://arxiv.org/abs/2306.16244" class="external autonumber" rel="nofollow">[12]</a></span>
13. <span id="cite_note-stanford-law-bias-13">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-stanford-law-bias_13-0) "Bias in Large Language Models and Who Should Be Held Accountable." *Stanford Law School*. <a href="https://law.stanford.edu/press/bias-in-large-language-models-and-who-should-be-held-accountable/" class="external autonumber" rel="nofollow">[13]</a></span>
14. <span id="cite_note-nature-digital-medicine-bias-14">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-nature-digital-medicine-bias_14-0) "Racial bias in psychiatric diagnosis and treatment with large language models." *Nature Digital Medicine*. <a href="https://www.nature.com/articles/s41746-025-01746-4" class="external autonumber" rel="nofollow">[14]</a></span>
15. <span id="cite_note-holistic-ai-docs-15">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-holistic-ai-docs_15-0) "Preprocessing Bias Mitigation." *Holistic AI Documentation*. <a href="https://holisticai.readthedocs.io/en/latest/getting_started/bias/mitigation/preprocessing.html" class="external autonumber" rel="nofollow">[15]</a></span>
16. <span id="cite_note-jonesday-ai-act-16">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-jonesday-ai-act_16-0) "EU AI Act: First Rules Take Effect on Prohibited AI Systems." *Jones Day*. <a href="https://www.jonesday.com/en/insights/2025/02/eu-ai-act-first-rules-take-effect-on-prohibited-ai-systems" class="external autonumber" rel="nofollow">[16]</a></span>
17. <span id="cite_note-tass-ethics-code-17">[↑](https://systems-analysis.info/eng/Generation_bias_(LLM)#cite_ref-tass-ethics-code_17-0) "Over 100 organizations signed up for Code of Ethics in AI by end of 2021." *TASS*. <a href="https://tass.com/economy/1354315" class="external autonumber" rel="nofollow">[17]</a></span>
