arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.02844cs.CLcs.AI
收藏

用于快速编码语言表示的来自Transformer的文本自动编码器

A text autoencoder from transformer for fast encoding language representation

Nanyang Technological University(南洋理工大学)

Tan Huang

摘要:

近年来,BERT在自然语言处理任务中显示出明显的优势和巨大的潜力。然而,无论是训练还是应用BERT都需要大量的时间和资源来计算上下文语言表示,这阻碍了它的通用性和适用性。为了克服这一瓶颈,我们提出了一个深度双向语言模型,在注意层使用窗口掩蔽机制。这项工作计算上下文语言表示没有随机掩蔽在BERT,并保持像BERT深双向架构。为了计算相同的句子表示,我们的方法显示O(n)的复杂度低于其他基于转换器的模型O($n^2$)。为了进一步证明其优越性,在CPU环境下进行计算上下文语言表示,通过使用所提出的方法的嵌入,逻辑回归在SMS分类方面显示出更高的准确性。此外,所提出的方法在语义相似性任务中也取得了显着的更高性能。

英文摘要:

In recent years BERT shows apparent advantages and great potential in natural language processing tasks. However, both training and applying BERT requires intensive time and resources for computing contextual language representations, which hinders its universality and applicability. To overcome this bottleneck, we propose a deep bidirectional language model by using window masking mechanism at attention layer. This work computes contextual language representations without random masking as does in BERT and maintains the deep bidirectional architecture like BERT. To compute the same sentence representation, our method shows O(n) complexity less compared to other transformer-based models with O($n^2$). To further demonstrate its superiority, computing context language representations on CPU environments is conducted, by using the embeddings from the proposed method, logistic regression shows much higher accuracy in terms of SMS classification. Moverover, the proposed method also achieves significant higher performance in semantic similarity tasks.

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

↑