R2D2: Recursive Transformer based on Differentiable Tree for Interpretable Hierarchical Language Modeling

Xiang Hu, Haitao Mi, Zujie Wen, Yafang Wang, Yi Su +2 more
7/2/2021
cs.CLcs.LG
transformer-attention

Official code: ant-research/StructuredLM_RTDT (80 stars, Python, Apache-2.0, last commit 2024-08-12).

Abstract

Human language understanding operates at multiple levels of granularity (e.g., words, phrases, and sentences) with increasing levels of abstraction that can be hierarchically combined. However, existing deep models with stacked layers do not explicitly model any sort of hierarchical process.

Show full abstract

This paper proposes a recursive Transformer model based on differentiable CKY style binary trees to emulate the composition process. We extend the bidirectional language model pre-training objective to this architecture, attempting to predict each word given its left and right abstraction nodes. To scale up our approach, we also introduce an efficient pruned tree induction algorithm to enable encoding in just a linear number of composition steps. Experimental results on language modeling and unsupervised parsing show the effectiveness of our approach.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A library for building hierarchical text representation and corresponding downstream applications.

8015Python, C++May 20, 20212 years agoApache-2.0

Similar Papers

Cite this paper

@article{hu2021rd,
  title  = {R2D2: Recursive Transformer based on Differentiable Tree for Interpretable Hierarchical Language Modeling},
  author = {Xiang Hu and Haitao Mi and Zujie Wen and Yafang Wang and Yi Su and Jing Zheng and Gerard de Melo},
  year   = {2021},
  eprint = {2107.00967},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.00967}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.00967.svg)](https://codeofpaper.com/paper/2107.00967)

Discussion