HInter:揭示大型语言模型中隐藏的交叉偏见
HInter: Exposing Hidden Intersectional Bias in Large Language Models
AI总结:
本文提出 HInter 测试技术,融合变异分析、依存解析与蜕变预言机自动检测 LLM 的隐藏交叉偏见,并在 18 个模型上验证其有效性。
摘要:
大型语言模型(LLM)可能对某些个体表现出歧视,尤其是那些具有多重属性的个体(即交叉偏见)。发现 LLM 中的交叉偏见颇具挑战,因为它涉及关于多种属性(例如种族和性别)的复杂输入。为应对这一挑战,我们提出 HInter,这是一种将变异分析、依存句法分析和蜕变预言机协同结合起来的测试技术,用于自动检测 LLM 中的交叉偏见。HInter 通过使用多种变异对句子进行系统性变异来生成测试输入,借助依存不变量验证输入,并通过检查 LLM 对原始句子和变异后句子的响应来检测偏见。我们使用 6 种 LLM 架构和 18 个 LLM 模型(GPT3.5、Llama2、BERT 等)评估 HInter,发现 HInter 生成的输入中有 14.61% 暴露了交叉偏见。结果还表明,我们的依存不变量将误报(不正确的测试输入)降低了一个数量级。最后,我们观察到 16.62% 的交叉偏见错误是隐藏的,这意味着其对应的原子用例不会触发偏见。总体而言,本工作强调了针对交叉偏见测试 LLM 的重要性。
英文摘要:
Large Language Models (LLMs) may portray discrimination towards certain individuals, especially those characterized by multiple attributes (aka intersectional bias). Discovering intersectional bias in LLMs is challenging, as it involves complex inputs on multiple attributes (e.g. race and gender). To address this challenge, we propose HInter, a test technique that synergistically combines mutation analysis, dependency parsing and metamorphic oracles to automatically detect intersectional bias in LLMs. HInter generates test inputs by systematically mutating sentences using multiple mutations, validates inputs via a dependency invariant and detects biases by checking the LLM response on the original and mutated sentences. We evaluate HInter using six LLM architectures and 18 LLM models (GPT3.5, Llama2, BERT, etc) and find that 14.61% of the inputs generated by HInter expose intersectional bias. Results also show that our dependency invariant reduces false positives (incorrect test inputs) by an order of magnitude. Finally, we observed that 16.62% of intersectional bias errors are hidden, meaning that their corresponding atomic cases do not trigger biases. Overall, this work emphasize the importance of testing LLMs for intersectional bias.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。