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

PERFECT:基于语言模型的无障碍高效少样本学习

PERFECT: Prompt-free and Efficient Few-shot Learning with Language Models

University of Washington(华盛顿大学);EPFL(洛桑联邦理工学院);Idiap Research Institute(Idiap研究所);Meta AI

Rabeeh Karimi Mahabadi, Luke Zettlemoyer, James Henderson, Marzieh Saeidi, Lambert Mathias, Veselin Stoyanov, Majid Yazdani

摘要:

当前用于预训练掩蔽语言模型(PLM)的Few-Shot微调的方法需要针对每个新任务精心设计的提示和动词化器,以将示例转换为PLM可以评分的完形填空格式。在这项工作中,我们提出了完美的,一个简单而有效的方法,Few-Shot微调的PLM,而不依赖于任何这样的手工制作,这是非常有效的,因为只有32个数据点。PERFECT提供了两个关键的设计选择:首先,我们展示了手动设计的任务提示可以被特定于任务的适配器所取代,这些适配器可以实现样本高效的微调,并分别将内存和存储成本降低约5倍和100倍。其次,我们在微调过程中学习了新的多标记标签嵌入,而不是使用手工制作的动词化器,这与模型词汇表无关,并且允许我们避免复杂的自回归解码。这些嵌入不仅可以从有限的数据中学习,还可以使训练和推理速度提高近100倍。在广泛的Few-Shot NLP任务上的实验表明,PERFECT在简单高效的同时,也优于现有的最先进的少样本学习方法。我们的代码可在https://github.com/facebookresearch/perfect.git上公开获取。

英文摘要:

Current methods for few-shot fine-tuning of pretrained masked language models (PLMs) require carefully engineered prompts and verbalizers for each new task to convert examples into a cloze-format that the PLM can score. In this work, we propose PERFECT, a simple and efficient method for few-shot fine-tuning of PLMs without relying on any such handcrafting, which is highly effective given as few as 32 data points. PERFECT makes two key design choices: First, we show that manually engineered task prompts can be replaced with task-specific adapters that enable sample-efficient fine-tuning and reduce memory and storage costs by roughly factors of 5 and 100, respectively. Second, instead of using handcrafted verbalizers, we learn new multi-token label embeddings during fine-tuning, which are not tied to the model vocabulary and which allow us to avoid complex auto-regressive decoding. These embeddings are not only learnable from limited data but also enable nearly 100x faster training and inference. Experiments on a wide range of few-shot NLP tasks demonstrate that PERFECT, while being simple and efficient, also outperforms existing state-of-the-art few-shot learning methods. Our code is publicly available at https://github.com/facebookresearch/perfect.git.

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

↑