Fast Deterministic Black-box Context-free Grammar Inference
Mohammad Rifat Arefin, Suraj Shetiya, Zili Wang, Christoph Csallner

TL;DR
This paper introduces TreeVada, a deterministic approach for black-box context-free grammar inference that pre-structures input programs based on nesting rules, resulting in faster and higher-quality grammar inference.
Contribution
The paper presents TreeVada, a novel deterministic method that improves grammar inference by leveraging nesting rules, contrasting with the non-deterministic state-of-the-art Arvada.
Findings
TreeVada outperforms Arvada in speed and grammar quality.
Pre-structuring input programs enhances inference accuracy.
Open-source implementation available for reproducibility.
Abstract
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).
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Machine Learning and Algorithms · Topic Modeling
