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

面向语言学的GATology:它掌握了哪些句法依存关系

GATology for Linguistics: What Syntactic Dependencies It Knows

University of Leeds(利兹大学)

Yuqian Dai, Serge Sharoff, Marc de Kamps

AI总结:

本文设计了依存关系预测任务,探究GAT在不同层数和注意力头数下学习三种语言句法知识的能力,发现两层GAT效果最佳且优于MT-BERT,展现了在机器翻译任务中结合GAT与BERT的潜力。

摘要:

图注意力网络(GAT)是一种图神经网络,它是建模和表示显式句法知识的策略之一,并能在下游任务中与预训练模型(如BERT)协同工作。目前,从模型结构角度探讨GAT如何学习句法知识的研究仍然缺乏。作为建模显式句法知识的策略之一,GAT和BERT从未在机器翻译(MT)场景中被应用和讨论过。我们设计了一项依存关系预测任务,以研究GAT如何作为注意力头数和层数的函数来学习三种语言的句法知识。我们还使用配对t检验和F1分数来阐明GAT与由MT任务微调的BERT(MT-B)在句法依存预测上的差异。实验表明,适当增加注意力头数并使用两层GAT可以获得更好的性能。超过两层时,学习效果会受损。此外,GAT在训练速度和句法依存预测方面比MT-B更具竞争力,这可能揭示了建模显式句法知识的更好融合方式,以及在MT任务中结合GAT和BERT的可能性。

英文摘要:

Graph Attention Network (GAT) is a graph neural network which is one of the strategies for modeling and representing explicit syntactic knowledge and can work with pre-trained models, such as BERT, in downstream tasks. Currently, there is still a lack of investigation into how GAT learns syntactic knowledge from the perspective of model structure. As one of the strategies for modeling explicit syntactic knowledge, GAT and BERT have never been applied and discussed in Machine Translation (MT) scenarios. We design a dependency relation prediction task to study how GAT learns syntactic knowledge of three languages as a function of the number of attention heads and layers. We also use a paired t-test and F1-score to clarify the differences in syntactic dependency prediction between GAT and BERT fine-tuned by the MT task (MT-B). The experiments show that better performance can be achieved by appropriately increasing the number of attention heads with two GAT layers. With more than two layers, learning suffers. Moreover, GAT is more competitive in training speed and syntactic dependency prediction than MT-B, which may reveal a better incorporation of modeling explicit syntactic knowledge and the possibility of combining GAT and BERT in the MT tasks.

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

↑