arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.07685cs.CLcs.AI
收藏

大语言模型的测试时公平性与鲁棒性

Test-Time Fairness and Robustness in Large Language Models

Vector Institute(矢量研究所);University of Toronto(多伦多大学)

Leonardo Cotta, Chris J. Maddison

AI总结:

针对前沿大语言模型存在的社会偏差与对虚假特征敏感的问题,提出分层不变性的去偏差概念、对应的观测检验方法,以及能保证测试时分层不变性的数据增强与提示策略,无需额外训练即可持续降低模型偏差。

摘要:

前沿大语言模型(LLMs)可能存在社会歧视性,或是对输入中的虚假特征敏感。由于只有资源充足的企业能够训练前沿LLMs,我们需要鲁棒的测试时策略来管控这类偏差。现有方案通过指示LLM做到公平或鲁棒来实现,依赖于模型对偏差的内隐理解。因果论提供了一套丰富的形式体系,可让我们明确表述去偏差要求。但我们的研究表明,标准因果去偏差策略——反事实数据增强——的简单应用,在标准假设下无法在测试时实现个体层面的预测去偏差。为解决这一问题,我们提出了一种分层去偏差概念,称为分层不变性(stratified invariance),它通过一项对预测进行分层的额外测量,可覆盖从群体层面到个体层面的各类去偏差要求。我们提出了一套完整的分层不变性观测检验方法。最后,我们提出了一种在合理假设下可保证测试时分层不变性的数据增强策略,以及一种引导LLMs实现分层不变性的提示策略。我们的实验表明,与内隐指示不同,我们的提示策略在一系列合成基准和真实基准上,无需额外数据、微调或预训练,就能持续降低前沿LLMs的偏差。

英文摘要:

Frontier Large Language Models (LLMs) can be socially discriminatory or sensitive to spurious features of their inputs. Because only well-resourced corporations can train frontier LLMs, we need robust test-time strategies to control such biases. Existing solutions, which instruct the LLM to be fair or robust, rely on the model's implicit understanding of bias. Causality provides a rich formalism through which we can be explicit about our debiasing requirements. Yet, as we show, a naive application of the standard causal debiasing strategy, counterfactual data augmentation, fails under standard assumptions to debias predictions at an individual level at test time. To address this, we develop a stratified notion of debiasing called stratified invariance, which can capture a range of debiasing requirements from population level to individual level through an additional measurement that stratifies the predictions. We present a complete observational test for stratified invariance. Finally, we introduce a data augmentation strategy that guarantees stratified invariance at test time under suitable assumptions, together with a prompting strategy that encourages stratified invariance in LLMs. We show that our prompting strategy, unlike implicit instructions, consistently reduces the bias of frontier LLMs across a suite of synthetic and real-world benchmarks without requiring additional data, finetuning or pre-training.

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

↑