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

超越掩蔽语言建模的上下文表示学习

Contextual Representation Learning beyond Masked Language Modeling

Peking University(北京大学);ByteDance AI Lab(字节跳动人工智能实验室);University of California, Santa Barbara(加州大学圣巴巴拉分校)

Zhiyi Fu, Wangchunshu Zhou, Jingjing Xu, Hao Zhou, Lei Li

摘要:

掩蔽语言模型(Masked Language Models,MLMs)如BERT如何学习上下文表示?在这项工作中,我们分析了学习动态的MLMs。我们发现,多语言模型采用抽样嵌入作为锚来估计和注入上下文语义的表示,这限制了多语言模型的效率和有效性。为了解决这些问题,我们提出了TACO,一个简单而有效的表示学习方法,直接建模全局语义。TACO提取并对齐隐藏在上下文表示中的上下文语义,以鼓励模型在生成上下文表示时关注全局语义。在GLUE基准测试上的实验表明,TACO实现了高达5倍的加速比和高达1.2点的平均改善现有的MLMs。该代码可在https://github.com/FUZHIYI/TACO上获得。

英文摘要:

How do masked language models (MLMs) such as BERT learn contextual representations? In this work, we analyze the learning dynamics of MLMs. We find that MLMs adopt sampled embeddings as anchors to estimate and inject contextual semantics to representations, which limits the efficiency and effectiveness of MLMs. To address these issues, we propose TACO, a simple yet effective representation learning approach to directly model global semantics. TACO extracts and aligns contextual semantics hidden in contextualized representations to encourage models to attend global semantics when generating contextualized representations. Experiments on the GLUE benchmark show that TACO achieves up to 5x speedup and up to 1.2 points average improvement over existing MLMs. The code is available at https://github.com/FUZHIYI/TACO.

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

↑