arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.04074cs.CLcs.AIcs.LG
收藏

关于通过哈希从语言模型中提取句法的研究

On Eliciting Syntax from Language Models via Hashing

National Institute of Information and Communications Technology (NICT)(日本信息通信研究机构(NICT))

Yiran Wang, Masao Utiyama

AI总结:

该研究探索利用二值表示的信息保留能力从语言模型提取句法,通过升级比特级CKY、采用无监督对比哈希训练及新型损失函数,实现低成本获取高质量句法分析树。

摘要:

无监督句法分析,也称为语法归纳,旨在从原始文本中推断句法结构。近期,二值表示在词汇和句法层面均展现出了卓越的信息保留能力。本文中,我们探究了利用该能力仅依靠模型内部隐式归纳出的语法,从原始文本推导出句法分析树的可能性。为此,我们将比特级CKY从零阶升级为一阶,以在统一的二值表示空间中对词汇和句法进行编码;在对比哈希框架下将训练方式从有监督转为无监督;并提出一种新型损失函数,以施加更强且均衡的对齐信号。我们的模型在多个数据集上表现出具有竞争力的性能,因此我们主张,该方法足够有效且高效,能够以低成本从预训练语言模型中获取高质量句法分析树。

英文摘要:

Unsupervised parsing, also known as grammar induction, aims to infer syntactic structure from raw text. Recently, binary representation has exhibited remarkable information-preserving capabilities at both lexicon and syntax levels. In this paper, we explore the possibility of leveraging this capability to deduce parsing trees from raw text, relying solely on the implicitly induced grammars within models. To achieve this, we upgrade the bit-level CKY from zero-order to first-order to encode the lexicon and syntax in a unified binary representation space, switch training from supervised to unsupervised under the contrastive hashing framework, and introduce a novel loss function to impose stronger yet balanced alignment signals. Our model shows competitive performance on various datasets, therefore, we claim that our method is effective and efficient enough to acquire high-quality parsing trees from pre-trained language models at a low cost.

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

↑