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

概率Transformer:一种用于上下文词表示的概率依存模型

Probabilistic Transformer: A Probabilistic Dependency Model for Contextual Word Representation

ShanghaiTech University(上海科技大学);Shanghai Engineering Research Center of Intelligent Vision and Imaging(上海智能视觉影像工程技术研究中心)

Haoyi Wu, Kewei Tu

AI总结:

本文提出一种基于句法与概率视角的上下文词表示模型,利用条件随机场和平均场变分推断建模词的潜在表示及依存弧,发现其计算图与transformers相似,在中小型数据集上表现具竞争力,旨在弥合传统与神经方法间的差距。

摘要:

句法结构曾在自然语言处理(NLP)中扮演重要角色,但自深度学习革命以来,NLP已逐渐被在设计上不考虑句法结构的神经模型所主导。transformers是一类极为成功的神经模型。作为编码器使用时,transformer生成输入句子中词的上下文表示。在本研究中,我们提出了一种新的上下文词表示模型,它并非基于神经视角,而是基于纯粹的句法和概率视角。具体而言,我们设计了一个条件随机场,将句子中所有词的离散潜在表示以及它们之间的依存弧进行建模;并使用平均场变分推断进行近似推断。引人注目的是,我们发现模型的计算图与transformers相似,依存关系与自注意力之间存在对应关系,潜在表示的分布与词的上下文嵌入之间也存在对应关系。实验表明,我们的模型在中小型数据集上表现与transformers具有竞争力。我们希望这项工作能帮助弥合传统句法和概率方法与前沿神经方法在NLP中的差距,并在未来启发更多基于语言学原则的神经方法。

英文摘要:

Syntactic structures used to play a vital role in natural language processing (NLP), but since the deep learning revolution, NLP has been gradually dominated by neural models that do not consider syntactic structures in their design. One vastly successful class of neural models is transformers. When used as an encoder, a transformer produces contextual representation of words in the input sentence. In this work, we propose a new model of contextual word representation, not from a neural perspective, but from a purely syntactic and probabilistic perspective. Specifically, we design a conditional random field that models discrete latent representations of all words in a sentence as well as dependency arcs between them; and we use mean field variational inference for approximate inference. Strikingly, we find that the computation graph of our model resembles transformers, with correspondences between dependencies and self-attention and between distributions over latent representations and contextual embeddings of words. Experiments show that our model performs competitively to transformers on small to medium sized datasets. We hope that our work could help bridge the gap between traditional syntactic and probabilistic approaches and cutting-edge neural approaches to NLP, and inspire more linguistically-principled neural approaches in the future.

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

↑