arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.11961cs.CL
收藏

ATTEMPT:基于软变量混合的参数有效多任务调节

ATTEMPT: Parameter-Efficient Multi-task Tuning via Attentional Mixtures of Soft Prompts

University of Washington(华盛顿大学);Allen Institute for AI(艾伦人工智能研究所)

Akari Asai, Mohammadreza Salehi, Matthew E. Peters, Hannaneh Hajishirzi

摘要:

这项工作介绍了一种新的多任务,参数高效的语言模型(LM)调整方法,学习跨不同的任务,通过混合的软前缀小前缀嵌入向量预先训练不同的任务来转移知识。我们的方法,称为ATTEMPT(ATTENTIONAL Mixtures of提示微调),获得源提示作为大规模源任务的编码成少量的参数,并训练注意力模块插入源提示和新初始化的目标任务中的每个实例的目标提示。在训练过程中,只有目标任务提示和注意力权重(在多任务训练中任务之间共享)被更新,而原始LM和源提示保持不变。ATTEMPT是高度参数有效的(例如,更新的参数比完全微调少2,300倍),同时使用来自高资源任务的知识实现高任务性能。此外,它是模块化的,使用预先训练的软提示,可以灵活地添加或删除源提示,以实现有效的知识转移。我们在21个不同的NLP数据集上的实验结果表明,ATTEMPT的性能明显优于提示微调,并且优于或匹配完全微调或其他使用十倍以上参数的参数高效调优方法。最后,ATTEMPT在少样本学习设置中优于以前的工作。

英文摘要:

This work introduces a new multi-task, parameter-efficient language model (LM) tuning method that learns to transfer knowledge across different tasks via a mixture of soft prompts-small prefix embedding vectors pre-trained for different tasks. Our method, called ATTEMPT (ATTEntional Mixtures of Prompt Tuning), obtains source prompts as encodings of large-scale source tasks into a small number of parameters and trains an attention module to interpolate the source prompts and a newly initialized target prompt for every instance in the target task. During training, only the target task prompt and the attention weights, which are shared between tasks in multi-task training, are updated, while the original LM and source prompts are intact. ATTEMPT is highly parameter-efficient (e.g., updates 2,300 times fewer parameters than full fine-tuning) while achieving high task performance using knowledge from high-resource tasks. Moreover, it is modular using pre-trained soft prompts, and can flexibly add or remove source prompts for effective knowledge transfer. Our experimental results across 21 diverse NLP datasets show that ATTEMPT significantly outperforms prompt tuning and outperforms or matches fully fine-tuned or other parameter-efficient tuning approaches that use over ten times more parameters. Finally, ATTEMPT outperforms previous work in few-shot learning settings.

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

↑