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

HyperPrompt:基于任务的Transformers条件化

HyperPrompt: Prompt-based Task-Conditioning of Transformers

Google(谷歌);Google Research(谷歌研究院);Waymo LLC(Waymo有限责任公司)

Yun He, Huaixiu Steven Zheng, Yi Tay, Jai Gupta, Yu Du, Vamsi Aribandi, Zhe Zhao, YaGuang Li, Zhao Chen, Donald Metzler, Heng-Tze Cheng, Ed H. Chi

摘要:

预调优是一种新的范式,用于以参数有效的方式微调预训练的语言模型。在这里,我们探索使用超网络生成超提示:我们提出了超提示,一种新的架构,基于任务调节的自我注意力的Transformers。超提示是通过超网络生成的端到端可学习的。HyperPrompt允许网络学习特定于任务的特征图,其中超级提示符作为任务全局记忆供查询处理,同时实现任务之间的灵活信息共享。我们表明,HyperPrompt与强大的多任务学习基线相比具有竞争力,只需$0.14\%$额外的任务调节参数,就可以实现很高的参数和计算效率。通过大量的实证实验,我们证明了HyperPrompt可以在强大的T5多任务学习基线和参数高效的适配器变体(包括在许多模型大小上的自然语言理解基准测试GLUE和SuperGLUE上的HyperFormer++)上实现卓越的性能。

英文摘要:

Prompt-Tuning is a new paradigm for finetuning pre-trained language models in a parameter-efficient way. Here, we explore the use of HyperNetworks to generate hyper-prompts: we propose HyperPrompt, a novel architecture for prompt-based task-conditioning of self-attention in Transformers. The hyper-prompts are end-to-end learnable via generation by a HyperNetwork. HyperPrompt allows the network to learn task-specific feature maps where the hyper-prompts serve as task global memories for the queries to attend to, at the same time enabling flexible information sharing among tasks. We show that HyperPrompt is competitive against strong multi-task learning baselines with as few as $0.14\%$ of additional task-conditioning parameters, achieving great parameter and computational efficiency. Through extensive empirical experiments, we demonstrate that HyperPrompt can achieve superior performances over strong T5 multi-task learning baselines and parameter-efficient adapter variants including Prompt-Tuning and HyperFormer++ on Natural Language Understanding benchmarks of GLUE and SuperGLUE across many model sizes.

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

↑