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

通过自然语言推理增强预训练语言模型的自洽性和性能

Enhancing Self-Consistency and Performance of Pre-Trained Language Models through Natural Language Inference

Stanford University(斯坦福大学)

Eric Mitchell, Joseph J. Noh, Siyan Li, William S. Armstrong, Ananth Agarwal, Patrick Liu, Chelsea Finn, Christopher D. Manning

摘要:

虽然大型预训练语言模型功能强大,但它们的预测通常在测试输入中缺乏逻辑一致性。例如,一个最先进的金刚鹦鹉问答(QA)模型对“麻雀是鸟吗?””和“鸟有脚吗?但对“麻雀有脚吗?”'.为了解决这种故障模式,我们提出了一个框架,通过关系检测的一致性校正,或ConCoRD,用于使用预训练的自然语言推理(NLI)模型来提高预训练的NLP模型的一致性和准确性,而无需微调或重新训练。给定一批测试输入,ConCoRD对每个输入的几个候选输出进行采样,并实例化一个因子图,该因子图既考虑了模型对每个答案选择的可能性的信念,又考虑了NLI模型对成对答案选择兼容性的信念。我们表明,加权MaxSAT求解器可以有效地计算高质量的答案选择下,这个因素图,提高了原始模型的预测。我们的实验表明,ConCoRD使用现成的NLI模型持续提高现成的闭卷QA和VQA模型的准确性和一致性,特别是将LXMERT对ConVQA的准确性提高了5%。有关代码和数据,请参见https://ericmitchell.ai/emnlp-2022-concord/。

英文摘要:

While large pre-trained language models are powerful, their predictions often lack logical consistency across test inputs. For example, a state-of-the-art Macaw question-answering (QA) model answers 'Yes' to 'Is a sparrow a bird?' and 'Does a bird have feet?' but answers 'No' to 'Does a sparrow have feet?'. To address this failure mode, we propose a framework, Consistency Correction through Relation Detection, or ConCoRD, for boosting the consistency and accuracy of pre-trained NLP models using pre-trained natural language inference (NLI) models without fine-tuning or re-training. Given a batch of test inputs, ConCoRD samples several candidate outputs for each input and instantiates a factor graph that accounts for both the model's belief about the likelihood of each answer choice in isolation and the NLI model's beliefs about pair-wise answer choice compatibility. We show that a weighted MaxSAT solver can efficiently compute high-quality answer choices under this factor graph, improving over the raw model's predictions. Our experiments demonstrate that ConCoRD consistently boosts accuracy and consistency of off-the-shelf closed-book QA and VQA models using off-the-shelf NLI models, notably increasing accuracy of LXMERT on ConVQA by 5% absolute. See https://ericmitchell.ai/emnlp-2022-concord/ for code and data.

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

↑