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

CUE 向量:基于多样化上下文信号的条件语言模型的模块化训练

CUE Vectors: Modular Training of Language Models Conditioned on Diverse Contextual Signals

Amazon Alexa(亚马逊 Alexa)

Scott Novotney, Sreeparna Mukherjee, Zeeshan Ahmed, Andreas Stolcke

AI总结:

该论文提出CUE框架,通过模块化训练语言模型,利用多种上下文信号(如日期、作者)降低困惑度,并支持新元数据适应和模型替换,实现可扩展的上下文增强训练。

摘要:

我们提出了一个框架,通过消除联合训练句子外部和句子内部编码器的需求,将使用多种形式的句子外部上下文(包括元数据)的神经语言模型的训练模块化。我们的方法,即上下文通用嵌入(CUE),在一组上下文(如日期和作者)上训练语言模型,并适应新的元数据类型,如文章标题或前一个句子。该模型由一个预训练的神经句子语言模型、一个基于 BERT 的上下文编码器和一个掩码 Transformer 解码器组成,该解码器利用句子内部和句子外部的信息来估计语言模型概率。当上下文或元数据不可用时,我们的模型学习使用带噪声的 oracle 一元嵌入作为代理,结合上下文和句子内部信息。真实的上下文信息可以在之后引入,并用于适应少量参数,这些参数将上下文数据映射到解码器的嵌入空间。我们在一个包含多种元数据类型的 NYTimes 文本语料库上验证了 CUE 框架,通过基于上下文的条件化,语言模型困惑度可以从 36.6 降低到 27.4。在训练期间仅使用上下文/元数据的一个子集来引导上下文语言模型,可以保留可实现增益的 85%。最初使用代理上下文训练模型,在适应真实上下文后保留了 67% 的困惑度增益。此外,我们可以将一种预训练的句子语言模型替换为另一种,而无需重新训练上下文编码器,只需调整解码器模型。总体而言,我们获得了一个模块化框架,允许对上下文增强的语言模型进行增量、可扩展的训练。

英文摘要:

We propose a framework to modularize the training of neural language models that use diverse forms of sentence-external context (including metadata) by eliminating the need to jointly train sentence-external and within-sentence encoders. Our approach, contextual universal embeddings (CUE), trains LMs on one set of context, such as date and author, and adapts to novel metadata types, such as article title, or previous sentence. The model consists of a pretrained neural sentence LM, a BERT-based context encoder, and a masked transformer decoder that estimates LM probabilities using sentence-internal and sentence-external information. When context or metadata are unavailable, our model learns to combine contextual and sentence-internal information using noisy oracle unigram embeddings as a proxy. Real contextual information can be introduced later and used to adapt a small number of parameters that map contextual data into the decoder's embedding space. We validate the CUE framework on a NYTimes text corpus with multiple metadata types, for which the LM perplexity can be lowered from 36.6 to 27.4 by conditioning on context. Bootstrapping a contextual LM with only a subset of the context/metadata during training retains 85\% of the achievable gain. Training the model initially with proxy context retains 67% of the perplexity gain after adapting to real context. Furthermore, we can swap one type of pretrained sentence LM for another without retraining the context encoders, by only adapting the decoder model. Overall, we obtain a modular framework that allows incremental, scalable training of context-enhanced LMs.

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

↑