GenderLexicon
收藏资源简介:
GenderLexicon是一个由爱沙尼亚塔图大学计算机科学研究所创建的NLP数据集,旨在研究性别和上下文偏见的关联。数据集包含了2511个模板,其中837个是唯一的,模板涉及职业、动词和名词与代词的直接关联,以避免模型在不同性别群体中产生错误假设。数据集采用ChatGPT-3.5-Turbo生成模板句子,并由人工标注员提取相关上下文。该数据集可用于评估性别偏见,并探索动作动词、名词和职业之间的关系。
GenderLexicon is an NLP dataset created by the Institute of Computer Science, University of Tartu, Estonia, aimed at studying the association between gender and contextual bias. The dataset consists of 2511 templates, 837 of which are unique. These templates involve direct associations between occupations, verbs, nouns and pronouns, to prevent models from generating erroneous assumptions about different gender groups. Template sentences are generated using ChatGPT-3.5-Turbo, and relevant contexts are extracted by human annotators. This dataset can be employed to evaluate gender bias and explore the relationships between action verbs, nouns and occupations.
GenderLex数据集概述
数据集简介
- 数据集名称:GenderLex
- 设计目的:探索超越职业刻板印象的性别偏见,评估动词、名词和职业在性别偏见场景中的关系
数据集组成
包含三个子集:
-
职业偏见(Occupational Bias)
- 关注与职业相关的性别偏见
- 包含动词和名词
-
使用"someone"的性别中性(Gender-Neutral with Entity Someone)
- 使用真正性别中性的实体"someone"
- 排除原始职业偏见
- 包含动词和名词
-
使用"person"的性别中性(Gender-Neutral with Entity Person)
- 使用性别中性术语"person"
- 排除原始职业偏见
- 包含动词和名词
数据结构
- 格式:CSV文件
- 每行包含列:
sent_m:含男性性别的句子sent_w:含女性性别的句子context:帮助测量与代词偏见的上下文词(动词、名词和职业)HB:人类偏见标签(M或W),表示刻板预期版本
量化LLMs中的偏见
运行要求
- Python 3(建议3.10.12)
- 需安装依赖包:
pip install -r requirements.txt
支持模型
- Huggingface上的LLMs:
- GPT2-XL
- EleutherAI/gpt-j-6b
- meta-llama/Llama-3.1-8B
- meta-llama/Llama-3.1-70B
- DeepSeek-R1-8B
支持词嵌入
- glove(300d 840b)
- fasttext(crawl-300d-2M-subword.vec)
- word2vec(word2vec-GoogleNews-vectors)
- glove-GN(GN-GloVe using 1-billion)
- glove_dd(vector_ddglove_gender)
- glove-RN(1b-vectors300-RN)
输出文件列
-
基础列(输入已有):
sent_msent_wcontextHB
-
计算列(脚本生成):
LM_score_M:sent_m的语言模型概率分数LM_score_W:sent_w的语言模型概率分数score_M:sent_m的最终计算分数score_W:sent_w的最终计算分数gender_score:最终偏见(M或W)hb_match:人类偏见匹配(1表示匹配HB,否则0)bias_towards:模型倾向的性别(M或W)
致谢
- 欧盟H2020计划SoBigData++项目(资助协议号871042)
- CHIST-ERA资助(编号CHIST-ERA-19-XAI-010,ETAg资助号SLTAT21096)
- HAMISON项目部分资助




