English

Tree Transformer: Integrating Tree Structures into Self-Attention

Computation and Language 2019-11-05 v2 Machine Learning

Abstract

Pre-training Transformer from large-scale raw texts and fine-tuning on the desired task have achieved state-of-the-art results on diverse NLP tasks. However, it is unclear what the learned attention captures. The attention computed by attention heads seems not to match human intuitions about hierarchical structures. This paper proposes Tree Transformer, which adds an extra constraint to attention heads of the bidirectional Transformer encoder in order to encourage the attention heads to follow tree structures. The tree structures can be automatically induced from raw texts by our proposed "Constituent Attention" module, which is simply implemented by self-attention between two adjacent words. With the same training procedure identical to BERT, the experiments demonstrate the effectiveness of Tree Transformer in terms of inducing tree structures, better language modeling, and further learning more explainable attention scores.

Keywords

Cite

@article{arxiv.1909.06639,
  title  = {Tree Transformer: Integrating Tree Structures into Self-Attention},
  author = {Yau-Shian Wang and Hung-Yi Lee and Yun-Nung Chen},
  journal= {arXiv preprint arXiv:1909.06639},
  year   = {2019}
}

Comments

accepted by EMNLP 2019

R2 v1 2026-06-23T11:15:23.191Z