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

Tree-Planted Transformers:具有隐式句法监督的单向Transformer语言模型

Tree-Planted Transformers: Unidirectional Transformer Language Models with Implicit Syntactic Supervision

The University of Tokyo(东京大学)

Ryo Yoshida, Taiga Someya, Yohei Oseki

AI总结:

本文提出tree-planting方法,将句法树隐式植入单向Transformer注意力权重,形成TPT模型,在保持推理效率的同时以数据高效方式学习类人句法知识,并在SyntaxGym上显著优于普通Transformer和显式句法语言模型。

摘要:

句法语言模型(SLMs)可以高效训练并达到相对较高的性能;然而,由于需要显式生成句法结构,它们在推理效率上存在问题。本文提出了一种名为tree-planting的新方法:我们不显式生成句法结构,而是将树“植入”单向Transformer语言模型的注意力权重中,以隐式反映自然语言的句法结构。具体而言,使用tree-planting训练的单向Transformer语言模型被称为Tree-Planted Transformers(TPT),它们继承了SLMs的训练效率,同时不改变底层Transformer语言模型的推理效率。在SyntaxGym基准上的定向句法评估表明,尽管TPTs不显式生成句法结构,它们不仅显著优于普通Transformer语言模型,还优于各种并行生成数百个句法结构的SLMs。这一结果表明,TPTs可以像SLMs一样以数据高效的方式学习类人的句法知识,同时保持Transformer语言模型的建模空间不变。

英文摘要:

Syntactic Language Models (SLMs) can be trained efficiently to reach relatively high performance; however, they have trouble with inference efficiency due to the explicit generation of syntactic structures. In this paper, we propose a new method dubbed tree-planting: instead of explicitly generating syntactic structures, we "plant" trees into attention weights of unidirectional Transformer LMs to implicitly reflect syntactic structures of natural language. Specifically, unidirectional Transformer LMs trained with tree-planting will be called Tree-Planted Transformers (TPT), which inherit the training efficiency from SLMs without changing the inference efficiency of their underlying Transformer LMs. Targeted syntactic evaluations on the SyntaxGym benchmark demonstrated that TPTs, despite the lack of explicit generation of syntactic structures, significantly outperformed not only vanilla Transformer LMs but also various SLMs that generate hundreds of syntactic structures in parallel. This result suggests that TPTs can learn human-like syntactic knowledge as data-efficiently as SLMs while maintaining the modeling space of Transformer LMs unchanged.

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

↑