现代语言建模任务常常是欠规范化的:对于给定的词元预测,在推理时许多词可能满足用户生成自然语言的意图,但在训练时只有一个词能够最小化任务的损失函数。我们引入一个简单的因果机制来描述欠规范化在虚假相关产生中所起的作用。尽管该因果模型很简单,但它直接指导了两种轻量级黑盒评估方法的开发,我们将这些方法应用于多种大语言模型上的性别代词消解任务,以 1) 通过利用 2) 此前未被报告的性别与时间以及性别与地点之间的虚假相关,来辅助检测推理时的任务欠规范化,所涉及的大语言模型具有一系列 A) 规模:从 BERT-base 到 GPT-4 Turbo Preview,B) 预训练目标:从掩码语言建模和自回归语言建模到这些目标的混合,以及 C) 训练阶段:从仅预训练到基于人类反馈的强化学习(RLHF)。代码和开源演示可在 https://github.com/2dot71mily/uspec 获取。
英文摘要:
Modern language modeling tasks are often underspecified: for a given token prediction, many words may satisfy the user's intent of producing natural language at inference time, however only one word will minimize the task's loss function at training time. We introduce a simple causal mechanism to describe the role underspecification plays in the generation of spurious correlations. Despite its simplicity, our causal model directly informs the development of two lightweight black-box evaluation methods, that we apply to gendered pronoun resolution tasks on a wide range of LLMs to 1) aid in the detection of inference-time task underspecification by exploiting 2) previously unreported gender vs. time and gender vs. location spurious correlations on LLMs with a range of A) sizes: from BERT-base to GPT-4 Turbo Preview, B) pre-training objectives: from masked & autoregressive language modeling to a mixture of these objectives, and C) training stages: from pre-training only to reinforcement learning from human feedback (RLHF). Code and open-source demos available at https://github.com/2dot71mily/uspec.
Probing Social Identity Bias in Chinese LLMs with Gendered Pronouns and Social Groups
Department of Electronics, Information and Bioengineering, Politecnico di Milano(电子、信息与生物工程系,米兰理工大学);University of Science and Technology of China(中国科学技术大学)
University of Pennsylvania(宾夕法尼亚大学);Moscow Institute of Physics and Technology(莫斯科物理技术学院);Kitsong;PJSC Sberbank(俄罗斯联邦储蓄银行);Jet Infosystems;Sofia University(索非亚大学)
ChatGPT Perpetuates Gender Bias in Machine Translation and Ignores Non-Gendered Pronouns: Findings across Bengali and Five other Low-Resource Languages