Leveraging Grammar Induction for Language Understanding and Generation

Jushi Kai, Shengyuan Hou, Yusheng Huang, Zhouhan Lin
10/7/2024
cs.CLcs.AI

No official code found. Best implementation: LUMIA-Group/Leveraging-Grammar-Induction (2 stars, MIT, last commit 2024-10-08).

Abstract

Grammar induction has made significant progress in recent years. However, it is not clear how the application of induced grammar could enhance practical performance in downstream tasks. In this work, we introduce an unsupervised grammar induction method for language understanding and generation. We construct a grammar parser to induce constituency structures and dependency relations, which is simultaneously trained on downstream tasks without additional syntax annotations. The induced grammar features are subsequently incorporated into Transformer as a syntactic mask to guide self-attention. We evaluate and apply our method to multiple machine translation tasks and natural language understanding tasks. Our method demonstrates superior performance compared to the original Transformer and other models enhanced with external parsers. Experimental results indicate that our method is effective in both from-scratch and pre-trained scenarios. Additionally, our research highlights the contribution of explicitly modeling the grammatical structure of texts to neural network models.

View on arXivView PDF

Code Implementations(1)

MIT

The official implementation of the paper "Leveraging Grammar Induction for Language Understanding and Generation" (EMNLP 2024 Findings).

20C++, LuaOct 7, 20242 years agoMIT

Similar Papers

Cite this paper

@article{kai2024leveraging,
  title  = {Leveraging Grammar Induction for Language Understanding and Generation},
  author = {Jushi Kai and Shengyuan Hou and Yusheng Huang and Zhouhan Lin},
  year   = {2024},
  eprint = {2410.04878},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.04878v1}
}

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/2410.04878.svg)](https://codeofpaper.com/paper/2410.04878)

Discussion