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

Prefix-Tuning:优化连续发电

Prefix-Tuning: Optimizing Continuous Prompts for Generation

Stanford University(斯坦福大学)

Xiang Lisa Li, Percy Liang

摘要:

微调是利用大型预训练语言模型执行下游任务的实际方法。然而,它修改了所有的语言模型参数,因此需要为每个任务存储一个完整的副本。在本文中,我们提出了前缀调整,一个轻量级的替代微调自然语言生成任务,保持语言模型参数冻结,但优化一个小的连续的特定于任务的向量(称为前缀)。前缀调优从提示中获得灵感,允许后续的令牌关注这个前缀,就好像它是“虚拟令牌”一样。我们将前缀调优应用于GPT-2以生成表到文本,并应用于BART以进行摘要。我们发现,通过只学习0.1%的参数,前缀调整在全数据设置中获得了相当的性能,在低数据设置中优于微调,并且更好地外推到训练过程中看不到的主题的示例。

英文摘要:

Fine-tuning is the de facto way to leverage large pretrained language models to perform downstream tasks. However, it modifies all the language model parameters and therefore necessitates storing a full copy for each task. In this paper, we propose prefix-tuning, a lightweight alternative to fine-tuning for natural language generation tasks, which keeps language model parameters frozen, but optimizes a small continuous task-specific vector (called the prefix). Prefix-tuning draws inspiration from prompting, allowing subsequent tokens to attend to this prefix as if it were "virtual tokens". We apply prefix-tuning to GPT-2 for table-to-text generation and to BART for summarization. We find that by learning only 0.1\% of the parameters, prefix-tuning obtains comparable performance in the full data setting, outperforms fine-tuning in low-data settings, and extrapolates better to examples with topics unseen during training.

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

↑