可视化和测量BERT的几何形状
Visualizing and Measuring the Geometry of BERT
摘要:
Transformer体系结构显示了自然语言处理的重要前景。鉴于单个预训练模型可以进行微调,以在许多不同的任务中表现良好,这些网络似乎可以提取普遍有用的语言特征。一个自然的问题是,这些网络如何在内部表示这些信息。本文介绍了一个特别有效的模型,BERT的定性和定量研究。在高层次上,语言特征似乎是在单独的语义和句法子空间表示。我们发现的一个细粒度的几何表示的词义的证据。我们还提出了经验描述的句法表示在注意矩阵和个人词嵌入,以及一个数学参数来解释这些表示的几何形状。
英文摘要:
Transformer architectures show significant promise for natural language processing. Given that a single pretrained model can be fine-tuned to perform well on many different tasks, these networks appear to extract generally useful linguistic features. A natural question is how such networks represent this information internally. This paper describes qualitative and quantitative investigations of one particularly effective model, BERT. At a high level, linguistic features seem to be represented in separate semantic and syntactic subspaces. We find evidence of a fine-grained geometric representation of word senses. We also present empirical descriptions of syntactic representations in both attention matrices and individual word embeddings, as well as a mathematical argument to explain the geometry of these representations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。