paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Incremental Context-free Grammar Inference in Black Box Settings

黑盒设置下的增量上下文无关文法推断
ASE Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering2024匹配度 3/10 · 该论文研究黑盒上下文无关文法推断,属于程序语言与语法推断方向,但与用户核心关注的 PL+AI/LLM、Agentic 程序静态分析、浮点程序分析或贝叶斯程序分析均无直接关联。论文未涉及 LLM/Agent 或相应交叉应用,匹配度较低。引用 5 inbox
Feifei Li, Xiao Chen, Xi Xiao, Xiaoyu Sun, Chuan Chen, Shaohua Wang, Jitao Han
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 Kedavra,通过分段示例字符串并增量推断,提升黑盒上下文无关文法推断的质量、速度与可读性。

黑盒上下文无关文法推断在只能访问少量示例程序的场景中十分困难。现有 Arvada 与 Treevada 从扁平解析树出发,用启发式搜索泛化序列,但需处理完整示例字符串,导致复杂、缓慢且生成的文法质量与可读性不佳。本文提出 Kedavra:先将示例字符串切分为较小单元,再增量地推断文法规则,以降低处理复杂度并逐步泛化。实证比较表明,该方法在文法质量(精确率与召回率)、运行速度和文法可读性上均优于现有方法。

问题
在示例程序有限的真实黑盒场景中,如何高质量、高效地推断上下文无关文法。
方法
将示例字符串分段,并增量式推断文法规则,替代对完整字符串的启发式泛化。
评估
与 Arvada、Treevada 等 SOTA 进行实证比较,报告精确率、召回率、运行时间与可读性。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{Li0X0C0H24,
  title = {Incremental Context-free Grammar Inference in Black Box Settings},
  author = {Feifei Li and Xiao Chen and Xi Xiao and Xiaoyu Sun and Chuan Chen and Shaohua Wang and Jitao Han},
  booktitle = {ASE},
  year = {2024},
  doi = {10.1145/3691620.3695494}
}