荷兰 CrowS-Pairs 数据集
收藏资源简介:
荷兰 CrowS-Pairs 数据集是一个用于测量荷兰语言模型中社会偏见的数据集。该数据集包含 1463 个句子对,涵盖了 9 个类别的偏见,如性取向、性别和残疾。句子对由对比句子组成,其中一个句子涉及弱势群体,另一个句子涉及优势群体。使用荷兰 CrowS-Pairs 数据集,我们发现各种语言模型(BERTje、RobBERT、多语言 BERT、GEITje 和 Mistral-7B)在各种偏见类别中表现出明显的偏见。此外,还发现为语言模型分配角色会改变其表现出的偏见程度。这些发现突出了跨语言和情境偏见的变异性,表明文化和语言因素在塑造模型偏见方面发挥着重要作用。
The Dutch CrowS-Pairs dataset is a benchmark dataset for measuring social biases in Dutch language models. It consists of 1,463 sentence pairs covering 9 categories of biases, including sexual orientation, gender, and disability. Each sentence pair comprises contrasting sentences: one refers to a marginalized group, while the other refers to a privileged group. Using the Dutch CrowS-Pairs dataset, we observed significant biases across various bias categories in multiple language models, including BERTje, RobBERT, multilingual BERT, GEITje, and Mistral-7B. Furthermore, we found that assigning roles to language models alters the degree of biases they exhibit. These findings highlight the variability of cross-lingual and contextual biases, demonstrating that cultural and linguistic factors play a critical role in shaping model biases.
数据集概述
基本信息
- 数据集名称: Dutch CrowS-Pairs
- 来源: 该数据集是CrowS-Pairs数据集的荷兰语版本,由研究者新创建
- 语言: 包含英语、法语和荷兰语版本
- 数据量: 每种语言包含1,463个句子对
- 许可证: Creative Commons Zero v1.0 Universal (CC0 1.0)
数据集内容
- 覆盖的偏见类别:
- 种族/肤色
- 性别
- 国籍
- 社会经济地位
- 宗教
- 年龄
- 性取向
- 外貌
- 残疾
模型评估脚本
-
ARLM评估脚本:
arlm_evaluation.py- 用于评估自回归语言模型(ARLMs)
- 通过LM Studio进行提示
- 结果保存在
results/文件夹中
-
MLM评估脚本:
mlm_metric.py- 用于评估掩码语言模型(MLMs)
- 基于原始CrowS-Pairs研究(Nangia et al., 2020)改编
- 使用示例: bash python mlm_metric.py --input_file [crows_pairs_dataset] --lm_model [mlm_name] --output_file [output_filename]
参考文献
如需使用Dutch-CrowS-Pairs数据集,请引用: Elza Strazda, Gerasimos Spanakis. Dutch CrowS-Pairs: Adapting a Challenge Dataset for Measuring Social Biases in Language Models for Dutch. In Proceedings of the 15th International Conference on Recent Advances in Natural Language Processing (RANLP 2025), Varna, Bulgaria. Pre-print here




