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

为什么语言模型有助于解决下游任务的数学探索

A Mathematical Exploration of Why Language Models Help Solve Downstream Tasks

Princeton University(普林斯顿大学);Institute for Advanced Study(高等研究院)

Nikunj Saunshi, Sadhika Malladi, Sanjeev Arora

摘要:

自回归语言模型,使用大型文本语料库进行预训练,以便在下一个单词预测方面做得很好,已经成功地解决了许多下游任务,即使使用了zero-shot。然而,对这种成功的理论认识很少。本文通过考虑以下问题对这一现象进行了数学研究:(1)下一个词预测的预训练任务和文本分类之间的直观联系是什么?(2)我们如何在数学上形式化这种联系,并量化语言建模的好处?对于(1),我们假设并经验验证了感兴趣的分类任务可以重新表述为句子完成任务,从而使语言建模成为有意义的预训练任务。通过对这一假设的数学形式化,我们朝着(2)取得了进展,并表明在交叉熵(对数困惑度)中是$ε$最优的语言模型学习特征,这些特征可以线性地解决具有$\mathcal{O}(\sqrtε)$错误的分类任务,从而证明在语言建模方面做得好可以有利于下游任务。我们通过实验验证了各种假设和理论发现,并利用分析中的见解设计了一个新的目标函数,该函数在某些分类任务中表现良好。

英文摘要:

Autoregressive language models, pretrained using large text corpora to do well on next word prediction, have been successful at solving many downstream tasks, even with zero-shot usage. However, there is little theoretical understanding of this success. This paper initiates a mathematical study of this phenomenon for the downstream task of text classification by considering the following questions: (1) What is the intuitive connection between the pretraining task of next word prediction and text classification? (2) How can we mathematically formalize this connection and quantify the benefit of language modeling? For (1), we hypothesize, and verify empirically, that classification tasks of interest can be reformulated as sentence completion tasks, thus making language modeling a meaningful pretraining task. With a mathematical formalization of this hypothesis, we make progress towards (2) and show that language models that are $ε$-optimal in cross-entropy (log-perplexity) learn features that can linearly solve such classification tasks with $\mathcal{O}(\sqrtε)$ error, thus demonstrating that doing well on language modeling can be beneficial for downstream tasks. We experimentally verify various assumptions and theoretical findings, and also use insights from the analysis to design a new objective function that performs well on some classification tasks.

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

↑