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

大型预训练语言模型包含类似人类的对与错的偏见

Large Pre-trained Language Models Contain Human-like Biases of What is Right and Wrong to Do

Technical University of Darmstadt(达姆施塔特工业大学);Leibniz Institute for Research and Information in Education(莱布尼茨教育研究与信息研究所);Hessian Center for Artificial Intelligence (hessian.ai)(黑森州人工智能中心)

Patrick Schramowski, Cigdem Turan, Nico Andersen, Constantin A. Rothkopf, Kristian Kersting

摘要:

由于最近大规模的基于transformer的语言模型(LM)的进步,人工书写正在渗透我们的生活,例如BERT及其变体,GPT-2/3等。使用它们作为预先训练的模型并针对特定任务进行微调,研究人员已经扩展了许多NLP任务的最新技术水平,并表明它们不仅捕获语言知识,而且还保留了数据中隐含的一般知识。不幸的是,在未经过滤的文本语料库上训练的LM遭受退化和有偏见的行为。虽然这是公认的,但我们发现,最近的LM也包含了类似人类的偏见,即什么是对的,什么是错的,某种形式的社会伦理和道德规范-它们使“道德方向”浮出水面。也就是说,我们表明,这些规范可以捕捉几何方向,这可以计算,例如,通过PCA,在嵌入空间中,很好地反映了短语与训练文本中隐含表达的社会规范的一致性,并提供了减弱甚至防止LM中毒性退化的路径。能够评价任意短语的(非)规范性,而无需为此任务明确训练LM,我们展示了“道德方向”的能力,用于指导(甚至其他)LM产生规范性文本,并在RealToxicityTests测试平台上展示它,防止GPT-2中的神经毒性退化。

英文摘要:

Artificial writing is permeating our lives due to recent advances in large-scale, transformer-based language models (LMs) such as BERT, its variants, GPT-2/3, and others. Using them as pre-trained models and fine-tuning them for specific tasks, researchers have extended state of the art for many NLP tasks and shown that they capture not only linguistic knowledge but also retain general knowledge implicitly present in the data. Unfortunately, LMs trained on unfiltered text corpora suffer from degenerated and biased behaviour. While this is well established, we show that recent LMs also contain human-like biases of what is right and wrong to do, some form of ethical and moral norms of the society -- they bring a "moral direction" to surface. That is, we show that these norms can be captured geometrically by a direction, which can be computed, e.g., by a PCA, in the embedding space, reflecting well the agreement of phrases to social norms implicitly expressed in the training texts and providing a path for attenuating or even preventing toxic degeneration in LMs. Being able to rate the (non-)normativity of arbitrary phrases without explicitly training the LM for this task, we demonstrate the capabilities of the "moral direction" for guiding (even other) LMs towards producing normative text and showcase it on RealToxicityPrompts testbed, preventing the neural toxic degeneration in GPT-2.

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

↑