arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.08855cs.CLcs.AIcs.LG
收藏

BiasGym: 一个简单且通用的框架,用于通过诱发分析和去除偏见

BiasGym: A Simple and Generalizable Framework for Analyzing and Removing Biases through Injection

University of Copenhagen(哥本哈根大学)

Sekh Mainul Islam, Nadav Borenstein, Siddhesh Milind Pawar, Haeun Yu, Arnav Arora, Isabelle Augenstein

AI总结:

BiasGym通过安全注入和分析偏见,提供了一种简单且通用的方法来减少大语言模型中的偏见和刻板印象。

摘要:

理解嵌入在大语言模型(LLMs)权重中的偏见和刻板印象至关重要,这对于开发有效的缓解策略至关重要。然而,偏见行为往往是微妙且非显而易见的,即使在故意诱发的情况下也难以隔离,这使得系统分析和去偏见特别具有挑战性。为此,我们引入了BiasGym,一个简单、成本效益高且通用的框架,用于可靠且安全地注入、分析和缓解LLMs中的概念关联偏见。BiasGym由两个组件组成:BiasInject,它通过基于标记的微调安全地将特定偏见注入模型,同时保持模型冻结;BiasScope则利用这些注入的信号来识别并可靠地引导导致偏见行为的组件。我们的方法使偏见诱发的一致性分析成为可能,支持有针对性的去偏见而不影响下游任务的性能,并能泛化到训练过程中未见过的偏见。我们展示了BiasGym在减少现实世界刻板印象(例如,意大利人被视为‘鲁莽驾驶者’)方面的有效性,证明了其在安全干预和可解释性研究中的实用性。

英文摘要:

Understanding biases and stereotypes encoded in the weights of Large Language Models (LLMs) is crucial for developing effective mitigation strategies. However, biased behavior is often subtle and non-trivial to isolate, even when deliberately elicited, making systematic analysis and debiasing particularly challenging. To address this, we introduce a simple, cost-effective, and generalizable framework \texttt{BiasGym} for reliably injecting, analyzing, and mitigating conceptual associations of biases within LLMs. \texttt{BiasGym} consists of two modules: \texttt{Inject}, which injects specific biases into the model via token-based fine-tuning while keeping the model frozen, followed by two debiasing methods that leverage these injected signals to identify and reliably suppress (\texttt{Scope}) or \texttt{Steer} the components responsible for biased behavior. Our framework enables consistent bias elicitation for better localization of bias conceptual association in the model space, supports targeted debiasing without degrading performance on downstream tasks, and generalizes to biases unseen during fine-tuning. We demonstrate the effectiveness of our proposed framework in reducing real-world stereotypes (e.g., people from Italy being `reckless drivers'), showing its utility for both safety interventions and interpretability research.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑