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

充分利用你的模型:微调与应用预训练Transformers的方法

Making the Most of your Model: Methods for Finetuning and Applying Pretrained Transformers

Toyota Technological Institute at Chicago(芝加哥丰田技术研究所)

Davis Yoshida

AI总结:

本论文提出了两种新的微调方法和两种无需额外微调的预测质量提升技术,并提供了关于模型似然与输出质量差异的理论与实证见解,适用于几乎任何transformer语言模型。

摘要:

本论文提供了在该目标上取得进展的模型方法与分析。所概述的技术是任务无关的,在与几乎任何transformer语言模型(LM)一起使用时应能提供益处。我们引入了两种新的微调方法,为使用它们的模型增加了新功能。第一种方法添加了递归机制,消除了固定窗口大小的约束,并提高了transformer解码器的效率。第二种方法允许将掩码语言模型(MLMs)用于非自回归序列到序列transformer的编码器和解码器的初始化,为以前仅用于自然语言理解任务的模型开辟了生成式应用。我们还引入了两种新技术,无需额外微调即可提高任何transformer解码器的预测质量。其中之一是隐状态优化,可应用于任何transformer解码器,以在推理时提高预测质量,特别是在少样本分类中。另一种是条件束搜索,允许实践者在以输出不退化(例如,空、重复等)为条件的情况下,搜索高似然的自然语言生成(NLG)模型输出。最后,我们提供了关于先前工作中广泛观察到的模型似然与输出质量之间差异的理论和实证见解。这些见解适用于任何表示文本分布的模型,并适用于非transformer甚至非自回归的语言模型。我们认为NLP社区在某种程度上误解了这些发现的含义,并鼓励一种更具细微差别的观点。

英文摘要:

This thesis provides methods and analysis of models which make progress on this goal. The techniques outlined are task agnostic, and should provide benefit when used with nearly any transformer LM. We introduce two new finetuning methods which add new capabilities to the models they are used on. The first adds a recurrence mechanism, which removes the fixed-window sized constraint and improves the efficiency of a transformer decoder. The second allows masked language models (MLMs) to be used for initialization of both the encoder and decoder of a non-autoregressive sequence-to-sequence transformer, opening up generative applications of models which were previously only used for natural language understanding tasks. We also introduce two new techniques for improving the quality of predictions of any transformer decoder without additional finetuning. One, hidden state optimization, can be applied to any transformer decoder to improve the quality of predictions at inference time, especially for few-shot classification. The other, conditional beam search, allows practitioners to search for natural language generation (NLG) model outputs with high likelihood while conditioning on the event that the output is not degenerate (e.g. empty, repetitive, etc.). Finally, we provide theoretical and empirical insights on the divergence of model-likelihood and output quality which has widely been observed in prior work. These insights apply to any model which represents a distribution over text, and apply to language models which are not transformers or even autoregressive. We argue that the NLP community has, to some extent, misunderstood the implications of these findings, and encourage a point of view which has more nuance.

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

↑