LFTF: Locating First and Then Fine-Tuning for Mitigating Gender Bias in Large Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Qin, Zhanyue, Ding, Yue, Liu, Deyuan, Liu, Qingbin, Cai, Junxian, Chen, Xi, Tu, Zhiying, Chu, Dianhui, Gao, Cuiyun, Sui, Dianbo
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908373420605440
author Qin, Zhanyue
Ding, Yue
Liu, Deyuan
Liu, Qingbin
Cai, Junxian
Chen, Xi
Tu, Zhiying
Chu, Dianhui
Gao, Cuiyun
Sui, Dianbo
author_facet Qin, Zhanyue
Ding, Yue
Liu, Deyuan
Liu, Qingbin
Cai, Junxian
Chen, Xi
Tu, Zhiying
Chu, Dianhui
Gao, Cuiyun
Sui, Dianbo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2505_15475
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LFTF: Locating First and Then Fine-Tuning for Mitigating Gender Bias in Large Language Models
Qin, Zhanyue
Ding, Yue
Liu, Deyuan
Liu, Qingbin
Cai, Junxian
Chen, Xi
Tu, Zhiying
Chu, Dianhui
Gao, Cuiyun
Sui, Dianbo
Computation and Language
Artificial Intelligence
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.
title LFTF: Locating First and Then Fine-Tuning for Mitigating Gender Bias in Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2505.15475