arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.04878cs.CLcs.AI
收藏

利用语法归纳实现语言理解与生成

Leveraging Grammar Induction for Language Understanding and Generation

Shanghai Jiao Tong University(上海交通大学)

Jushi Kai, Shengyuan Hou, Yusheng Huang, Zhouhan Lin

AI总结:

本研究提出一种无监督语法归纳方法,将归纳的语法特征作为句法掩码融入Transformer引导自注意力,在机器翻译与自然语言理解任务上性能优于基线模型,且适用于从零训练和预训练场景。

摘要:

语法归纳近年来已取得显著进展,但目前尚不清楚应用归纳出的语法如何提升下游任务的实际性能。本研究提出一种面向语言理解与生成的无监督语法归纳方法:我们构建了一个语法解析器用于归纳成分结构与依存关系,该解析器无需额外句法标注,可在下游任务上同步训练。随后,归纳得到的语法特征会作为句法掩码融入Transformer,以引导自注意力机制。我们在多个机器翻译任务与自然语言理解任务上对该方法进行了评估与应用。结果显示,与原始Transformer及其他经外部解析器增强的模型相比,本方法性能更优,且在从零训练和预训练两种场景下均有效。此外,本研究凸显了显式建模文本语法结构对神经网络模型的增益作用。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑