arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2308.06163cs.SEcs.PL
收藏

快速确定性黑盒上下文无关文法推断

Fast Deterministic Black-box Context-free Grammar Inference

Mohammad Rifat Arefin, Suraj Shetiya, Zili Wang, Christoph Csallner

AI总结:

针对黑盒上下文无关文法推断中 Arvada 方法非确定且易违反嵌套规则的问题,本文提出 TreeVada,通过预结构化输入程序并递归应用规则实现确定性推断,获得更快运行时间和更高质量文法。

摘要:

黑盒上下文无关文法推断是一个困难问题,因为在许多实际场景中,它只能访问有限数量的示例程序。最先进的方法 Arvada 从扁平解析树出发,启发式地泛化文法规则,并且是非确定性的,以探索不同的泛化序列。我们观察到 Arvada 的许多泛化步骤违反了常见的语言概念嵌套规则。因此,我们提出按照这些嵌套规则对输入程序进行预结构化,递归地应用学习到的规则,并使黑盒上下文无关文法推断具有确定性。所得到的 TreeVada 在实证比较中展现出更快的运行时间和更高质量的文法。TreeVada 的源代码、脚本、评估参数和训练数据均为开源并公开可用(https://doi.org/10.6084/m9.figshare.23907738)。

英文摘要:

Black-box context-free grammar inference is a hard problem as in many practical settings it only has access to a limited number of example programs. The state-of-the-art approach Arvada heuristically generalizes grammar rules starting from flat parse trees and is non-deterministic to explore different generalization sequences. We observe that many of Arvada's generalization steps violate common language concept nesting rules. We thus propose to pre-structure input programs along these nesting rules, apply learnt rules recursively, and make black-box context-free grammar inference deterministic. The resulting TreeVada yielded faster runtime and higher-quality grammars in an empirical comparison. The TreeVada source code, scripts, evaluation parameters, and training data are open-source and publicly available (https://doi.org/10.6084/m9.figshare.23907738).

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

↑