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

基于Transformer语言模型的句子瓶颈自动编码器

Sentence Bottleneck Autoencoders from Transformer Language Models

University of Washington(华盛顿大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究院)

Ivan Montero, Nikolaos Pappas, Noah A. Smith

摘要:

通过在大型语料库上预训练语言模型来进行文本的表示学习已经成为构建NLP系统的标准起点。这种方法与自动编码器相反,自动编码器也是在原始文本上训练的,但其目标是学习将每个输入编码为允许完全重建的向量。自编码器是有吸引力的,因为他们的潜在空间结构和生成属性。因此,我们探索从预训练的冻结的Transformer语言模型构建一个并行级自动编码器。我们将掩蔽语言建模目标调整为生成的去噪目标,同时只训练句子瓶颈和单层修改的Transformer解码器。我们证明,我们的模型发现的句子表示比以前的方法获得更好的质量,这些方法在文本相似性任务,风格转换(控制生成的一个例子)和GLUE基准中的单句分类任务上从预训练的Transformers中提取表示,同时使用比大型预训练模型更少的参数。

英文摘要:

Representation learning for text via pretraining a language model on a large corpus has become a standard starting point for building NLP systems. This approach stands in contrast to autoencoders, also trained on raw text, but with the objective of learning to encode each input as a vector that allows full reconstruction. Autoencoders are attractive because of their latent space structure and generative properties. We therefore explore the construction of a sentence-level autoencoder from a pretrained, frozen transformer language model. We adapt the masked language modeling objective as a generative, denoising one, while only training a sentence bottleneck and a single-layer modified transformer decoder. We demonstrate that the sentence representations discovered by our model achieve better quality than previous methods that extract representations from pretrained transformers on text similarity tasks, style transfer (an example of controlled generation), and single-sentence classification tasks in the GLUE benchmark, while using fewer parameters than large pretrained models.

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

↑