arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2112.07868cs.CLcs.AI
收藏

用于预训练语言模型检测社会偏见的Few-Shot指令集

Few-shot Instruction Prompts for Pretrained Language Models to Detect Social Biases

NVIDIA(英伟达);California Institute of Technology(加州理工学院)

Shrimai Prabhumoye, Rafal Kocielnik, Mohammad Shoeybi, Anima Anandkumar, Bryan Catanzaro

摘要:

检测文本中的社会偏见是具有挑战性的,因为细微差别,主观性,以及难以获得高质量的大规模标记数据集,特别是考虑到社会偏见和社会的演变性质。为了解决这些挑战,我们提出了一种基于Few-Shot的方法来提示预训练的语言模型(LM)。我们从一个小的支持库中选择了一些类平衡的样本,这些样本最接近嵌入空间中要标记的查询。然后,我们为LM提供指令,该指令由标记样本的子集、要分类的查询文本、偏差的定义组成,并提示LM做出决定。我们证明了在Few-Shot上下文中使用的大型LM可以检测不同类型的细粒度偏差,其精度与微调模型相似,有时甚至更高。我们观察到,与较小的模型相比,最大的530B参数模型在检测社会偏见方面明显更有效(与其他模型相比,AUC指标至少提高了13%)。当标记的储存库减少到$100$样品时,它也保持高AUC(下降小于2%)。因此,大型的预训练语言模型使得构建新的偏见检测器变得更容易和更快。

英文摘要:

Detecting social bias in text is challenging due to nuance, subjectivity, and difficulty in obtaining good quality labeled datasets at scale, especially given the evolving nature of social biases and society. To address these challenges, we propose a few-shot instruction-based method for prompting pre-trained language models (LMs). We select a few class-balanced exemplars from a small support repository that are closest to the query to be labeled in the embedding space. We then provide the LM with instruction that consists of this subset of labeled exemplars, the query text to be classified, a definition of bias, and prompt it to make a decision. We demonstrate that large LMs used in a few-shot context can detect different types of fine-grained biases with similar and sometimes superior accuracy to fine-tuned models. We observe that the largest 530B parameter model is significantly more effective in detecting social bias compared to smaller models (achieving at least 13% improvement in AUC metric compared to other models). It also maintains a high AUC (dropping less than 2%) when the labeled repository is reduced to as few as $100$ samples. Large pretrained language models thus make it easier and quicker to build new bias detectors.

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

↑