Leveraging Grammar Induction for Language Understanding and Generation

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Kai, Jushi, Hou, Shengyuan, Huang, Yusheng, Lin, Zhouhan
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909338420903936
author Kai, Jushi
Hou, Shengyuan
Huang, Yusheng
Lin, Zhouhan
author_facet Kai, Jushi
Hou, Shengyuan
Huang, Yusheng
Lin, Zhouhan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_04878
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Leveraging Grammar Induction for Language Understanding and Generation
Kai, Jushi
Hou, Shengyuan
Huang, Yusheng
Lin, Zhouhan
Computation and Language
Artificial Intelligence
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.
title Leveraging Grammar Induction for Language Understanding and Generation
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2410.04878