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

语言模型中的校准、熵率和记忆

Calibration, Entropy Rates, and Memory in Language Models

Princeton University(普林斯顿大学);Google AI Princeton(Google AI 普林斯顿);University of Washington(华盛顿大学)

Mark Braverman, Xinyi Chen, Sham M. Kakade, Karthik Narasimhan, Cyril Zhang, Yi Zhang

摘要:

构建准确的语言模型来捕获有意义的长期依赖关系是自然语言处理的核心挑战。为此,我们提出了一种基于校准的方法来测量生成序列模型和真实分布之间的长期差异,并使用这些差异来改进模型。经验上,我们表明,国家的最先进的语言模型,包括LSTM和Transformers,是\emph{miscalibrated}:其代的熵率漂移显着向上随时间的推移。然后,我们提供可证明的方法来缓解这种现象。此外,我们还展示了这种基于校准的方法如何用于测量语言模型用于预测的内存量。

英文摘要:

Building accurate language models that capture meaningful long-term dependencies is a core challenge in natural language processing. Towards this end, we present a calibration-based approach to measure long-term discrepancies between a generative sequence model and the true distribution, and use these discrepancies to improve the model. Empirically, we show that state-of-the-art language models, including LSTMs and Transformers, are \emph{miscalibrated}: the entropy rates of their generations drift dramatically upward over time. We then provide provable methods to mitigate this phenomenon. Furthermore, we show how this calibration-based approach can also be used to measure the amount of memory that language models use for prediction.

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

↑