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

掩码语言模型中的不一致性

Inconsistencies in Masked Language Models

School of Computing, National University of Singapore(新加坡国立大学计算机学院)

Tom Young, Yunan Chen, Yang You

AI总结:

本文揭示掩码语言模型在不同掩码模式下产生的分布存在不一致性,并提出名为 Ensemble of Conditionals 的推理时策略,通过联合考虑多个不一致条件分布来提升预测准确率。

摘要:

学习预测序列中被掩码的 token 已被证明是训练 PaLM2 等强大语言模型的有效预训练目标。训练完成后,此类掩码语言模型(MLMs)能够给出序列中掩码位置上的 token 分布。然而,本文表明,不同掩码模式对应的分布可能表现出显著的不一致性,即当将它们放在一起考虑时,无法从一个一致的联合分布中推导出来。MLMs 的这一根本缺陷可能导致推理过程中出现自相矛盾的行为。在包括 MMLU 在内的多个基准数据集上,MLMs 对同一个输入问题可能给出不同的预测。从 BERT-base 到 UL2-20B,我们表明这种不一致性在不同规模和配置的 MLMs 中普遍存在。基于我们的观察,我们进一步提出了一种针对 MLMs 的推理时策略,称为 Ensemble of Conditionals。它联合考虑由 MLM 直接产生的一组选定的不一致条件分布来进行最终预测,这通常会带来显著的准确率提升。

英文摘要:

Learning to predict masked tokens in a sequence has been shown to be a helpful pretraining objective for powerful language models such as PaLM2. After training, such masked language models (MLMs) can provide distributions of tokens in the masked positions in a sequence. However, this paper shows that distributions corresponding to different masking patterns can demonstrate considerable inconsistencies, i.e., they cannot be derived from a coherent joint distribution when considered together. This fundamental flaw in MLMs can lead to self-contradictory behaviors during inference. On various benchmark datasets including MMLU, MLMs can give different predictions to the same input question. From BERT-base to UL2-20B, we show that such inconsistencies exist ubiquitously in MLMs of diverse sizes and configurations. In light of our observations, we further propose an inference-time strategy for MLMs called Ensemble of Conditionals. It jointly considers a selected range of inconsistent conditionals directly produced by the MLM for the final prediction, which often leads to considerable accuracy improvement.

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

↑