arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.16706cs.PLcs.SE
收藏

黑盒环境下的增量上下文无关文法推断

Incremental Context-free Grammar Inference in Black Box Settings

Feifei Li, Xiao Chen, Xi Xiao, Xiaoyu Sun, Chuan Chen, Shaohua Wang, Jitao Han

AI总结:

针对黑盒环境下上下文无关文法推断因处理完整字符串导致质量低且计算慢的问题,提出将字符串分割为小单元并增量推断文法的新方法Kedavra,在文法质量、运行速度和可读性上均优于现有方法。

摘要:

由于对示例程序的访问受限,黑盒上下文无关文法推断在许多实际场景中是一项重大挑战。最先进的方法Arvada和Treevada采用启发式方法来泛化文法规则,从扁平解析树开始并探索各种泛化序列。我们观察到,这些方法的质量和可读性较差,主要是因为它们处理整个示例字符串,增加了复杂性并大大减慢了计算速度。为了克服这些限制,我们提出了一种新方法,将示例字符串分割成更小的单元并增量推断文法。我们的方法名为Kedavra,通过实证比较证明了其在文法质量(提高精确率和召回率)、更快的运行时间和更好的可读性方面具有优越性。

英文摘要:

Black-box context-free grammar inference presents a significant challenge in many practical settings due to limited access to example programs. The state-of-the-art methods, Arvada and Treevada, employ heuristic approaches to generalize grammar rules, initiating from flat parse trees and exploring diverse generalization sequences. We have observed that these approaches suffer from low quality and readability, primarily because they process entire example strings, adding to the complexity and substantially slowing down computations. To overcome these limitations, we propose a novel method that segments example strings into smaller units and incrementally infers the grammar. Our approach, named Kedavra, has demonstrated superior grammar quality (enhanced precision and recall), faster runtime, and improved readability through empirical comparison.

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

↑