通过定位并微调关键模块,有效降低大模型性别偏见。
LFTF: Locating First and Then Fine-Tuning for Mitigating Gender Bias in Large Language Models
- 先定位高偏见关联的模型层,再针对性微调。
- 在多个数据集上性别偏见降低超过30%,通用能力保持不变。
- 适合关注模型公平性与可解释性的研究者使用。
当前大型语言模型虽性能强大,但因训练数据中存在社会偏见,常表现出性别偏见。为此,本文提出两个评估数据集:GenBiasEval用于量化模型性别偏见程度,配套指标为AFGB-Score(绝对公平性别偏见得分);GenHintEval用于测试模型对含性别提示的指令响应一致性,对应指标为UB-Score(无偏得分)。为更有效地缓解性别偏见,本文提出LFTF(先定位后微调)算法:首先利用块缓解重要性评分(BMI)对模型各层按性别偏见相关性降序排序,然后仅对最相关的层进行精细设计的损失函数微调。大量实验表明,该方法能显著降低性别偏见,同时保持模型整体能力。在GenBiasEval和GenHintEval上,平均偏见下降超30%,且生成质量未明显下降。
原文摘要 · Abstract (English)
Nowadays, Large Language Models (LLMs) have attracted widespread attention due to their powerful performance. However, due to the unavoidable exposure to socially biased data during training, LLMs tend to exhibit social biases, particularly gender bias. To better explore and quantifying the degree of gender bias in LLMs, we propose a pair of datasets named GenBiasEval and GenHintEval, respectively. The GenBiasEval is responsible for evaluating the degree of gender bias in LLMs, accompanied by an evaluation metric named AFGB-Score (Absolutely Fair Gender Bias Score). Meanwhile, the GenHintEval is used to assess whether LLMs can provide responses consistent with prompts that contain gender hints, along with the accompanying evaluation metric UB-Score (UnBias Score). Besides, in order to mitigate gender bias in LLMs more effectively, we present the LFTF (Locating First and Then Fine-Tuning) algorithm.The algorithm first ranks specific LLM blocks by their relevance to gender bias in descending order using a metric called BMI (Block Mitigating Importance Score). Based on this ranking, the block most strongly associated with gender bias is then fine-tuned using a carefully designed loss function. Numerous experiments have shown that our proposed LFTF algorithm can significantly mitigate gender bias in LLMs while maintaining their general capabilities.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。