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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yoshida, Ryo, Someya, Taiga, Oseki, Yohei
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915450771734528
author Yoshida, Ryo
Someya, Taiga
Oseki, Yohei
author_facet Yoshida, Ryo
Someya, Taiga
Oseki, Yohei
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_12691
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Tree-Planted Transformers: Unidirectional Transformer Language Models with Implicit Syntactic Supervision
Yoshida, Ryo
Someya, Taiga
Oseki, Yohei
Computation and Language
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.
title Tree-Planted Transformers: Unidirectional Transformer Language Models with Implicit Syntactic Supervision
topic Computation and Language
url https://arxiv.org/abs/2402.12691