语言模型应一视同仁:反事实感知的公平文本生成
All Should Be Equal in the Eyes of Language Models: Counterfactually Aware Fair Text Generation
AI总结:
针对语言模型因训练数据偏差导致的公平性问题,本文提出反事实感知公平推理框架CAFIE,通过动态对比模型对不同人口群体的理解生成更公平文本,实验证明其在公平性与语言建模能力间实现最佳平衡,表现优于强基线。
摘要:
语言模型(LMs)的公平性仍是一项长期存在的挑战,因为训练数据中存在固有偏差,这些偏差会被模型延续并影响下游任务。现有方法要么采用成本高昂的重新训练,要么在推理阶段通过约束模型输出使其与有偏差模板或示例的参考集形成对比来尝试去偏。但这些方法都未实现公平性的核心目标——在不同人口群体间保持公平性。本文提出,若要让推理阶段的语言模型在某一上下文下为某一人口群体生成无偏差输出,前提是模型需知晓同一上下文下其他人口群体的输出。为此,我们提出反事实感知公平推理框架(Counterfactually Aware Fair InferencE, CAFIE),该框架动态对比模型对不同人口群体的理解,以生成更公平的语句。我们使用不同规模的基础语言模型,在三个不同数据集上开展了全面的实证评估,结果表明CAFIE的表现优于强基线模型。CAFIE能生成更公平的文本,且在公平性与语言建模能力之间实现了最佳平衡。
英文摘要:
Fairness in Language Models (LMs) remains a longstanding challenge, given the inherent biases in training data that can be perpetuated by models and affect the downstream tasks. Recent methods employ expensive retraining or attempt debiasing during inference by constraining model outputs to contrast from a reference set of biased templates or exemplars. Regardless, they dont address the primary goal of fairness to maintain equitability across different demographic groups. In this work, we posit that inferencing LMs to generate unbiased output for one demographic under a context ensues from being aware of outputs for other demographics under the same context. To this end, we propose Counterfactually Aware Fair InferencE (CAFIE), a framework that dynamically compares the model understanding of diverse demographics to generate more equitable sentences. We conduct an extensive empirical evaluation using base LMs of varying sizes and across three diverse datasets and found that CAFIE outperforms strong baselines. CAFIE produces fairer text and strikes the best balance between fairness and language modeling capability
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。