Incremental Context-free Grammar Inference in Black Box Settings
Feifei Li, Xiao Chen, Xi Xiao, Xiaoyu Sun, Chuan Chen, Shaohua Wang, Jitao Han
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Learning Highly Recursive Input Grammars 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
- Learning Highly Recursive Input Grammars 引用了 GRIMOIRE: Synthesizing Structure while Fuzzing
- Context-Free Grammar Inference for Complex Programming Languages in Black Box Settings 引用了 Learning Highly Recursive Input Grammars
- Context-Free Grammar Inference for Complex Programming Languages in Black Box Settings 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
- Context-Free Grammar Inference for Complex Programming Languages in Black Box Settings 引用了 GRIMOIRE: Synthesizing Structure while Fuzzing
- Context-Free Grammar Inference for Complex Programming Languages in Black Box Settings 引用了 Gramatron: effective grammar-aware fuzzing
- GRIMOIRE: Synthesizing Structure while Fuzzing 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
- Gramatron: effective grammar-aware fuzzing 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
引用它的顶会 Paper2
- Deployability-Centric Infrastructure-as-Code Generation: Fail, Learn, Refine, and Succeed through LLM-Empowered DevOps SimulationTianyi Zhang, Shidong Pan, Zejun Zhang, Zhenchang Xing 等FSE 2026 · 1 次引用
- Context-Free Grammar Inference for Complex Programming Languages in Black Box SettingsFeifei Li, Xiao Chen, Xiaoyu Sun, Xi Xiao 等ICSE 2026
它引用的 Paper9
- NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig 等NDSS 2019 · 291 次引用
- GRIMOIRE: Synthesizing Structure while FuzzingTim Blazytko, Cornelius Aschermann, Moritz Schlögel, Ali Abbasi 等USENIX Security 2019 · 123 次引用
- Gramatron: effective grammar-aware fuzzingPrashast Srivastava, Mathias PayerISSTA 2021 · 51 次引用
- Input invariantsDominic Steinhöfel, Andreas ZellerFSE 2022 · 47 次引用
- Learning Highly Recursive Input GrammarsNeil Kulkarni, Caroline Lemieux, Koushik SenASE 2021 · 24 次引用
相关 Paper
- Fast Deterministic Black-box Context-free Grammar InferenceMohammad Rifat Arefin, Suraj Shetiya, Zili Wang, Christoph CsallnerICSE 2024 · 4 次引用
- Mining input grammars from dynamic control flowRahul Gopinath, Björn Mathis, Andreas ZellerFSE 2020 · 60 次引用
- Static Inference of Regular Grammars for Ad Hoc ParsersMichael Schröder, Jürgen CitoOOPSLA 2025 · 1 次引用
- "Synthesizing input grammars": a replication studyBachir Bendrissou, Rahul Gopinath, Andreas ZellerPLDI 2022 · 8 次引用
- Grammar Repair with Examples and Tree AutomataYunjeong Lee, Gokul Rajiv, Ilya SergeyOOPSLA 2026
