arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.09890cs.CL
收藏

作为二维数组的BERT句向量中的语法信息

Grammatical information in BERT sentence embeddings as two-dimensional arrays

University of Geneva(日内瓦大学)

Vivi Nastase, Paola Merlo

AI总结:

本研究针对一维Transformer句向量难提取语法规则的问题,将其重塑为二维数组,证明多种架构可借此从少量简单数据学习主谓一致规律并泛化到复杂数据,揭示了句向量的分布式语法信息特性,助力少样本学习发展。

摘要:

由各类Transformer架构生成的句向量以分布式方式将大量语义和句法信息编码在一维数组中。我们探究了能否从这些分布式表示中获取特定的语法信息。利用一项为测试类规则泛化能力而设计的任务的数据,我们开展了主谓一致检测实验,取得了若干可观结果。首先,我们发现尽管编码为一维数组的常规句子表示难以支持类规则规律的提取,但将这些向量重塑为二维形式后,多种学习架构都能获取这类信息。其次,我们证明多种架构能在这些经二维重塑的句向量中检测到模式,并基于更少、更简单的训练数据成功学习模型,且该模型在更复杂的测试数据上表现良好。这表明当前的句向量包含呈规律性分布的信息,当向量被重塑为更高维数组时,这些信息可以被捕获。我们的结果揭示了语言模型生成的表示的特性,有助于推动少样本学习方法的发展。

英文摘要:

Sentence embeddings induced with various transformer architectures encode much semantic and syntactic information in a distributed manner in a one-dimensional array. We investigate whether specific grammatical information can be accessed in these distributed representations. Using data from a task developed to test rule-like generalizations, our experiments on detecting subject-verb agreement yield several promising results. First, we show that while the usual sentence representations encoded as one-dimensional arrays do not easily support extraction of rule-like regularities, a two-dimensional reshaping of these vectors allows various learning architectures to access such information. Next, we show that various architectures can detect patterns in these two-dimensional reshaped sentence embeddings and successfully learn a model based on smaller amounts of simpler training data, which performs well on more complex test data. This indicates that current sentence embeddings contain information that is regularly distributed, and which can be captured when the embeddings are reshaped into higher dimensional arrays. Our results cast light on representations produced by language models and help move towards developing few-shot learning approaches.

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

↑