arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.09226cs.LGstat.ML
收藏

为什么预训练的语言模型有助于下游任务?磁头与提示微调的分析

Why Do Pretrained Language Models Help in Downstream Tasks? An Analysis of Head and Prompt Tuning

Stanford University(斯坦福大学)

Colin Wei, Sang Michael Xie, Tengyu Ma

摘要:

预训练的语言模型在适应下游NLP任务时已经达到了最先进的性能。然而,这些模型的理论分析是稀缺和具有挑战性的,因为预训练和下游任务可能非常不同。我们提出了一个分析框架,将预训练和下游任务与文本的潜在潜变量生成模型联系起来-下游分类器必须恢复潜变量的后验分布函数。我们在此设置中分析了头部调整(在冻结的预训练模型上学习分类器)和提示微调。在我们的分析中,生成模型是隐马尔可夫模型(HMM)或增强了潜在记忆组件的HMM,其动机是自然语言中的长期依赖关系。我们发现:1)在HMM的某些非退化条件下,简单的分类头可以解决下游任务,2)提示微调获得下游保证较弱的非退化条件,和3)我们的恢复保证内存增强的HMM比香草HMM更强,因为任务相关的信息更容易从长期记忆恢复。实验综合产生的数据从Humble支持我们的理论研究结果。

英文摘要:

Pretrained language models have achieved state-of-the-art performance when adapted to a downstream NLP task. However, theoretical analysis of these models is scarce and challenging since the pretraining and downstream tasks can be very different. We propose an analysis framework that links the pretraining and downstream tasks with an underlying latent variable generative model of text -- the downstream classifier must recover a function of the posterior distribution over the latent variables. We analyze head tuning (learning a classifier on top of the frozen pretrained model) and prompt tuning in this setting. The generative model in our analysis is either a Hidden Markov Model (HMM) or an HMM augmented with a latent memory component, motivated by long-term dependencies in natural language. We show that 1) under certain non-degeneracy conditions on the HMM, simple classification heads can solve the downstream task, 2) prompt tuning obtains downstream guarantees with weaker non-degeneracy conditions, and 3) our recovery guarantees for the memory-augmented HMM are stronger than for the vanilla HMM because task-relevant information is easier to recover from the long-term memory. Experiments on synthetically generated data from HMMs back our theoretical findings.

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

↑