Lune

ASE2021Top-tier venue

Learning Highly Recursive Input Grammars

Neil Kulkarni, Caroline Lemieux, Koushik Sen

Abstract

This paper presents ARVADA, an algorithm for learning context-free grammars from a set of positive examples and a Boolean-valued oracle. ARVADA learns a context-free grammar by building parse trees from the positive examples. Starting from initially flat trees, ARVADA builds structure to these trees with a key operation: it bubbles sequences of sibling nodes in the trees into a new node, adding a layer of indirection to the tree. Bubbling operations enable recursive generalization in the learned grammar. We evaluate ARVADA against GLADE and find it achieves on average increases of 4.98× in recall and 3.13× in F1 score, while incurring only a 1.27× slowdown and requiring only 0.87× as many calls to the oracle. ARVADA has a particularly marked improvement over GLADE on grammars with highly recursive structure, like those of programming languages. • We introduce ARVADA, which learns grammars from inputs strings and oracle via bubble-and-merge operations. • We distribute ARVADA's implementation as open source: https://github.com/neil-kulkarni/arvada . • We evaluate ARVADA on a variety of benchmarks against the state-of-the-art method GLADE. II. MOTIVATING EXAMPLE ARVADA takes as input a set of example strings S and an oracle O. The oracle returns True if its input string is valid and False otherwise. ARVADA's goal is to learn a grammar

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • V-Star: Learning Visibly Pushdown Grammars from Program Inputs cites "Synthesizing input grammars": a replication study
  • GRIMOIRE: Synthesizing Structure while Fuzzing cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • Mining input grammars from dynamic control flow cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • Mining input grammars from dynamic control flow cites GRIMOIRE: Synthesizing Structure while Fuzzing
  • "Synthesizing input grammars": a replication study cites Mining input grammars from dynamic control flow
  • Fast Deterministic Black-box Context-free Grammar Inference cites GRIMOIRE: Synthesizing Structure while Fuzzing
  • Fast Deterministic Black-box Context-free Grammar Inference cites Mining input grammars from dynamic control flow
  • Fast Deterministic Black-box Context-free Grammar Inference cites "Synthesizing input grammars": a replication study
  • Fast Deterministic Black-box Context-free Grammar Inference cites Finding Short Slow Inputs Faster with Grammar-Based Search
  • AsFuzzer: Differential Testing of Assemblers with Error-Driven Grammar Inference cites Mining input grammars from dynamic control flow
  • Finding Short Slow Inputs Faster with Grammar-Based Search cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • Finding Short Slow Inputs Faster with Grammar-Based Search cites Mining input grammars from dynamic control flow
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. "Synthesizing input grammars": a replication studyBachir Bendrissou, Rahul Gopinath, Andreas ZellerPLDI 2022 · 8 citations
  2. V-Star: Learning Visibly Pushdown Grammars from Program InputsXiaodong Jia, Gang TanPLDI 2024 · 4 citations
  3. Fast Deterministic Black-box Context-free Grammar InferenceMohammad Rifat Arefin, Suraj Shetiya, Zili Wang, Christoph CsallnerICSE 2024 · 4 citations
  4. Finding Short Slow Inputs Faster with Grammar-Based SearchZiyad Alsaeed, Michal YoungISSTA 2023 · 4 citations
  5. AsFuzzer: Differential Testing of Assemblers with Error-Driven Grammar InferenceHyungseok Kim, Soomin Kim, Jungwoo Lee, Sang Kil ChaISSTA 2024 · 2 citations

Builds on3

  1. NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig et al.NDSS 2019 · 291 citations
  2. GRIMOIRE: Synthesizing Structure while FuzzingTim Blazytko, Cornelius Aschermann, Moritz Schlögel, Ali Abbasi et al.USENIX Security 2019 · 123 citations
  3. Mining input grammars from dynamic control flowRahul Gopinath, Björn Mathis, Andreas ZellerFSE 2020 · 60 citations

Related papers

  1. Incremental Context-free Grammar Inference in Black Box SettingsFeifei Li, Xiao Chen, Xi Xiao, Xiaoyu Sun et al.ASE 2024 · 1 citation
  2. Context-Free Grammar Inference for Complex Programming Languages in Black Box SettingsFeifei Li, Xiao Chen, Xiaoyu Sun, Xi Xiao et al.ICSE 2026
  3. Grammar Repair with Examples and Tree AutomataYunjeong Lee, Gokul Rajiv, Ilya SergeyOOPSLA 2026
  4. Faster general parsing through context-free memoizationGrzegorz HermanPLDI 2020 · 4 citations
  5. Categorial grammar induction from raw dataChristian Clark, William SchulerACL Findings 2023
Dusk over the sea between two cliffs drawn in fine vertical lines