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

基于Few-Shot的微调中避免推理启发式

Avoiding Inference Heuristics in Few-shot Prompt-based Finetuning

Technische Universität Darmstadt(达姆施塔特工业大学);Hugging Face

Prasetya Ajie Utama, Nafise Sadat Moosavi, Victor Sanh, Iryna Gurevych

摘要:

最近的基于语义的方法通过将下游任务重新定义为语言建模问题,允许预训练的语言模型在Few-Shot微调上实现强大的性能。在这项工作中,我们证明了,尽管它在低数据制度上具有优势,但用于句子对分类任务的微调的基于语义的模型仍然存在一个共同的陷阱,即采用基于词汇重叠的推理语义学,例如,模型错误地假设句子对具有相同的含义,因为它们由相同的单词集合组成。有趣的是,我们发现这种特殊的推理启发式在基于神经网络的模型的zero-shot评估中明显较少,这表明微调如何破坏在预训练期间学习的有用知识。然后,我们表明,添加一个正则化,保留预训练权重是有效的,在减轻这种破坏性的倾向,Few-Shot微调。我们对三个数据集的评估表明,三个相应的挑战数据集用于诊断推理推理机有希望的改进。

英文摘要:

Recent prompt-based approaches allow pretrained language models to achieve strong performances on few-shot finetuning by reformulating downstream tasks as a language modeling problem. In this work, we demonstrate that, despite its advantages on low data regimes, finetuned prompt-based models for sentence pair classification tasks still suffer from a common pitfall of adopting inference heuristics based on lexical overlap, e.g., models incorrectly assuming a sentence pair is of the same meaning because they consist of the same set of words. Interestingly, we find that this particular inference heuristic is significantly less present in the zero-shot evaluation of the prompt-based model, indicating how finetuning can be destructive to useful knowledge learned during the pretraining. We then show that adding a regularization that preserves pretraining weights is effective in mitigating this destructive tendency of few-shot finetuning. Our evaluation on three datasets demonstrates promising improvements on the three corresponding challenge datasets used to diagnose the inference heuristics.

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

↑