面向掩码语言模型的概率合理束搜索
Towards Probabilistically-Sound Beam Search with Masked Language Models
AI总结:
针对掩码语言模型(MLMs)难以直接获取序列联合概率分布、束搜索实现困难的问题,本文提出概率合理的MLM束搜索方法,明确标准方法的适用条件,提出无额外复杂度的推理改进方案,通过多领域实验验证其优势,并探究MLMs的归纳偏置与掩码标记的上下文敏感性。
摘要:
使用掩码语言模型(MLMs)进行束搜索颇具挑战,部分原因在于与自回归模型不同,序列上的联合概率分布难以直接获取。不过,估计这类分布在古代文本修复、蛋白质工程等特定领域具有重要应用价值。本文提出了适用于MLMs的概率合理束搜索方法。首先,我们阐明了使用标准束搜索结合MLMs进行文本填充在理论上具备合理性的前提条件;当这些条件不满足时,我们提出了一种概率合理的推理时改进方案,该方案不会增加额外计算复杂度,且在预期条件下表现优于上述标准束搜索。随后,我们在多个领域对多种基于MLMs的文本填充方法进行了实证比较。值得注意的是,我们的方法探究了MLMs的归纳偏置,并揭示了掩码标记在文本填充中出人意料的上下文敏感性。
英文摘要:
Beam search with masked language models (MLMs) is challenging in part because joint probability distributions over sequences are not readily available, unlike for autoregressive models. However, estimating such distributions has important domain-specific applications such as ancient text restoration and protein engineering. Here we present probabilistically-sound methods for beam search with MLMs. First, we clarify the conditions under which it is theoretically sound to perform text infilling with MLMs using standard beam search. When these conditions fail, we provide a probabilistically-sound inference time modification with no additional computational complexity and demonstrate that it is superior to the aforementioned beam search in the expected conditions. We then present empirical results comparing several infilling approaches with MLMs across several domains. Notably, our method probes the inductive biases of MLMs and explores the surprising contextual sensitivity of mask tokens for text infilling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。