---
title: "Generation bias (LLM) — 生成中的偏见"
source: "https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81"
wiki: "systems-analysis.info/int"
article: "Generation_bias_(LLM)_—_生成中的偏见"
language: "zh"
categories:
  - "Category:Chinese"
  - "Category:Large language models"
  - "Category:Machine learning"
revision_id: 2627
wiki_created_at: 2026-09-06T23:07:08Z
wiki_modified_at: 2026-09-06T23:07:08Z
downloaded_at: 2026-09-07T22:52:30Z
---

# Generation bias (LLM) — 生成中的偏见

**大语言模型（LLM）中的偏见**是指生成文本时出现的系统性扭曲，模型会反映或加剧社会中已存在的与性别、种族、文化、政治观点及其他社会范畴相关的刻板印象和偏见。这一现象的产生是由于LLM在海量的人类数据上进行训练，而这些数据不可避免地包含了带有偏见的信息<sup>[\[1\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-arxiv-bias-origin-1)</sup>。

偏见是人工智能（AI）开发中的关键伦理和技术问题之一，因为它可能导致歧视、传播虚假信息，并损害人们对技术的信任。

## LLM中的偏见类型

LLM中的偏见可以以多种形式表现出来。

### 性别偏见

模型倾向于复现传统的性别刻板印象，将职业和特征与特定性别联系起来。

- 联合国教科文组织（UNESCO）2024年的一项研究显示，LLM在描述女性时，将其与家庭角色（“家”、“家庭”、“孩子”）相关联的频率是男性的四倍，而男性则与“商业”和“职业”等概念相关联<sup>[\[2\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-unesco-gender-bias-2)</sup>。
- 《自然科学报告》（*Nature Scientific Reports*）上的一项研究揭示，包括ChatGPT和LLaMA在内的七个主流LLM生成的内容中存在显著的性别和种族偏见<sup>[\[3\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-nature-gender-race-bias-3)</sup>。
- 在俄语语境下，模型对于中性角色（如“医生”、“主任”）通常默认使用阳性形式，并且很难生成女性称谓<sup>[\[4\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-habr-bias-experiment-4)</sup>。

### 种族与族裔偏见

LLM可能对不同族裔群体表现出隐性歧视。

- 彭博社（Bloomberg）的一项研究显示，与黑人候选人相比，ChatGPT 3.5更偏好亚裔候选人的简历<sup>[\[5\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-bloomberg-hiring-bias-5)</sup>。
- 在俄语语境下，**RuBia**数据集发现，如果训练语料库中存在反犹太和反移民的刻板印象（例如，同意“移民是懒惰的”这一说法），模型可能会复现这些偏见<sup>[\[6\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-rubia-dataset-themoonlight-6)</sup>。

### 政治与意识形态偏见

尽管许多LLM声称保持中立，但它们常常表现出对特定政治派别的倾向。

- 政策研究中心（Centre for Policy Studies）的一项研究发现，在23个（共24个）被测试的LLM中，存在左翼自由主义偏见<sup>[\[7\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-cps-left-leaning-bias-7)</sup>。
- 华盛顿大学和卡内基梅隆大学的测试表明，ChatGPT和GPT-4最具左翼自由意志主义倾向，而Meta的LLaMA则最具右翼威权主义倾向<sup>[\[8\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-mit-review-political-bias-8)</sup>。

## 偏见的产生机制

- 训练数据：主要来源。LLM在来自互联网的海量文本语料库上进行训练，这些文本是社会的“镜子”，反映了社会中所有的刻板印象<sup>[\[9\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-rbc-bias-safety-9)</sup>。
- 架构与训练算法：Transformer架构本身可能会增强数据中已有的相关性。
- 微调与RLHF：人类反馈强化学习（RLHF）阶段也可能引入偏见，因为人类评估员不可避免地会受到自身观点的影响。

## 检测与缓解方法

### 偏见检测

- **刻板印象测试集：** 使用专门的数据集，例如：
  - **CrowS-Pairs：** 涵盖九种类型的偏见，包括种族、宗教和年龄<sup>[\[10\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-crows-pairs-acl-10)</sup>。
  - **StereoSet：** 衡量在性别、职业、种族和宗教四个领域的刻板印象偏见<sup>[\[11\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-stereoset-arxiv-11)</sup>。
  - **RuBia：** 用于检测俄语模型偏见的专门数据集<sup>[\[12\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-rubia-dataset-arxiv-12)</sup>。
  - **多语言资源：** 适应性数据集，如**French CrowS-Pairs**<sup>[\[13\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-13)</sup>和**Chinese Bias Benchmark (CBBQ)**<sup>[\[14\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-14)</sup>。
  - **特定领域分析：** 在招聘<sup>[\[15\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-stanford-law-bias-15)</sup>、医疗<sup>[\[16\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-nature-digital-medicine-bias-16)</sup>等领域的偏见研究。

### 偏见缓解

- **数据层面（预处理）：** 清理、筛选和重新平衡训练语料库。相关方法在**Holistic AI**文档中有描述<sup>[\[17\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-holistic-ai-docs-17)</sup>。
- **训练层面（处理中）：** 修改训练算法以考虑公平性。
- **输出层面（后处理）：** 对已生成的响应进行筛选和审核。

## 法律与伦理后果

人工智能中的偏见会带来严重后果，包括在关键领域的歧视和虚假信息的传播。

- **监管：** 世界各国政府正开始引入规范以控制人工智能。
- 欧洲通过了**《人工智能法案》（AI Act）**，该法案自2024年8月1日起分阶段生效。它对高风险系统提出了严格要求，包括强制性偏见评估，并规定了最高可达公司全球营业额7%的罚款<sup>[\[18\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-jonesday-ai-act-18)</sup>。
- 2021年，俄罗斯多家领先科技公司签署了一份自愿性的**<a href="https://ethics.a-ai.ru/" class="external text" rel="nofollow">《人工智能领域伦理准则》</a>**，承诺将歧视最小化。到2021年底，已有超过100家组织签署了该准则<sup>[\[19\]](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_note-tass-ethics-code-19)</sup>。

对抗偏见是一个持续的权衡过程。过于激进的过滤可能导致“过度政治正确”，即模型拒绝讨论任何敏感话题。因此，开发者正在寻求在模型的安全性、客观性和信息量之间找到平衡。

## 参见

- 大语言模型

## 文献

- 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>.

## 注释

1.  <span id="cite_note-arxiv-bias-origin-1">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#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/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#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/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#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-habr-bias-experiment-4">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-habr-bias-experiment_4-0) “俄语LLM的偏见：机器认为谁是‘普通人’？”. *Habr*. <a href="https://habr.com/ru/articles/857464/" class="external autonumber" rel="nofollow">[4]</a></span>
5.  <span id="cite_note-bloomberg-hiring-bias-5">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-bloomberg-hiring-bias_5-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">[5]</a></span>
6.  <span id="cite_note-rubia-dataset-themoonlight-6">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-rubia-dataset-themoonlight_6-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">[6]</a></span>
7.  <span id="cite_note-cps-left-leaning-bias-7">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-cps-left-leaning-bias_7-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">[7]</a></span>
8.  <span id="cite_note-mit-review-political-bias-8">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-mit-review-political-bias_8-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">[8]</a></span>
9.  <span id="cite_note-rbc-bias-safety-9">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-rbc-bias-safety_9-0) “语言模型：如何克服偏见并确保安全”. *RBC Trends*. <a href="https://trends.rbc.ru/trends/industry/cmrm/680105629a7947e0748d7e56" class="external autonumber" rel="nofollow">[9]</a></span>
10. <span id="cite_note-crows-pairs-acl-10">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-crows-pairs-acl_10-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">[10]</a></span>
11. <span id="cite_note-stereoset-arxiv-11">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-stereoset-arxiv_11-0) “StereoSet: Measuring stereotypical bias in pretrained language models”. *arXiv*. <a href="https://arxiv.org/abs/2004.09456" class="external autonumber" rel="nofollow">[11]</a></span>
12. <span id="cite_note-rubia-dataset-arxiv-12">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-rubia-dataset-arxiv_12-0) “RuBia: A Russian Language Bias Detection Dataset”. *arXiv*. <a href="https://arxiv.org/abs/2403.17553" class="external autonumber" rel="nofollow">[12]</a></span>
13. <span id="cite_note-13">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-13) “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">[13]</a></span>
14. <span id="cite_note-14">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-14) “CBBQ: A Chinese Bias Benchmark for Large Language Models”. *arXiv*. <a href="https://arxiv.org/abs/2306.16244" class="external autonumber" rel="nofollow">[14]</a></span>
15. <span id="cite_note-stanford-law-bias-15">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-stanford-law-bias_15-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">[15]</a></span>
16. <span id="cite_note-nature-digital-medicine-bias-16">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-nature-digital-medicine-bias_16-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">[16]</a></span>
17. <span id="cite_note-holistic-ai-docs-17">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-holistic-ai-docs_17-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">[17]</a></span>
18. <span id="cite_note-jonesday-ai-act-18">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-jonesday-ai-act_18-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">[18]</a></span>
19. <span id="cite_note-tass-ethics-code-19">[↑](https://systems-analysis.info/int/Generation_bias_(LLM)_%E2%80%94_%E7%94%9F%E6%88%90%E4%B8%AD%E7%9A%84%E5%81%8F%E8%A7%81#cite_ref-tass-ethics-code_19-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">[19]</a></span>
