通过测试时对抗样本提升大模型公平性,无需训练即可减少种族偏见。
Improving Fairness in LLMs Through Testing-Time Adversaries
- 在测试阶段生成句子变体,对比预测差异以检测偏见。
- 在Llama3上将公平性指标提升最高达27个百分点。
- 无需微调或数据修改,适合实际部署场景使用。
大语言模型在自然语言处理与生成式AI中推动了技术进步,但其响应中的偏见问题仍严重阻碍其在伦理敏感任务中的应用。本文提出一种简单、用户友好的方法,在不依赖训练或先验知识的情况下,通过测试时生成句子变体并比较预测行为,识别关键伦理判断中的不一致性,从而揭示偏见。该方法仅需前向传播,避免了参数调整与数据修改。在Llama系列模型上的实验表明,该方法显著改善了公平性,尤其在不同种族群体间的差异上,最高可使公平性指标提升27个百分点。结果证明,该方法能有效增强大模型生成结果的公平性、公正性与可靠性,为伦理敏感任务中负责任地使用大模型提供了实用路径。
原文摘要 · Abstract (English)
Large Language Models (LLMs) push the bound-aries in natural language processing and generative AI, driving progress across various aspects of modern society. Unfortunately, the pervasive issue of bias in LLMs responses (i.e., predictions) poses a significant and open challenge, hindering their application in tasks involving ethical sensitivity and responsible decision-making. In this work, we propose a straightforward, user-friendly and practical method to mitigate such biases, enhancing the reliability and trustworthiness of LLMs. Our method creates multiple variations of a given sentence by modifying specific attributes and evaluates the corresponding prediction behavior compared to the original, unaltered, prediction/sentence. The idea behind this process is that critical ethical predictions often exhibit notable inconsistencies, indicating the presence of bias. Unlike previous approaches, our method relies solely on forward passes (i.e., testing-time adversaries), eliminating the need for training, fine-tuning, or prior knowledge of the training data distribution. Through extensive experiments on the popular Llama family, we demonstrate the effectiveness of our method in improving various fairness metrics, focusing on the reduction of disparities in how the model treats individuals from different racial groups. Specifically, using standard metrics, we improve the fairness in Llama3 in up to 27 percentage points. Overall, our approach significantly enhances fairness, equity, and reliability in LLM-generated results without parameter tuning or training data modifications, confirming its effectiveness in practical scenarios. We believe our work establishes an important step toward enabling the use of LLMs in tasks that require ethical considerations and responsible decision-making.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。