Neuro-Symbolic Regex Synthesis Framework via Neural Example Splitting
Not on the map. Why?
Abstract (arXiv)
Due to the practical importance of regular expressions (regexes, for short), there has been a lot of research to automatically generate regexes from positive and negative string examples. We tackle the problem of learning regexes faster from positive and negative strings by relying on a novel approach called `neural example splitting'. Our approach essentially split up each example string into multiple parts using a neural network trained to group similar substrings from positive strings. This helps to learn a regex faster and, thus, more accurately since we now learn from several short-length strings. We propose an effective regex synthesis framework called `SplitRegex' that synthesizes subregexes from `split' positive substrings and produces the final regex by concatenating the synthesized subregexes. For the negative sample, we exploit pre-generated subregexes during the subregex synthesis process and perform the matching against negative strings. Then the final regex becomes consistent with all negative strings. SplitRegex is a divided-and-conquer framework for learning target regexes; split (=divide) positive strings and infer partial regexes for multiple parts, which is much more accurate than the whole string inferring, and concatenate (=conquer) inferred regexes while satisfying negative strings. We empirically demonstrate that the proposed SplitRegex framework substantially improves the previous regex synthesis approaches over four benchmark datasets.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 9 of its 28 references that are in the map. First posted on arXiv 20 May 2022.
Builds on
9 of 28 references.
References · 9
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
- 2018Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networkscited by 132
- 2016Neural Generation of Regular Expressions from Natural Language with Minimal Domain Knowledgecited by 24
- 2020Just-in-Time Learning for Bottom-Up Enumerative Synthesiscited by 18
- 2019Multi-modal Synthesis of Regular Expressionscited by 13
- 2020TransRegex: Multi-modal Regular Expression Synthesis by Generate-and-Repaircited by 8
- 2021Learning to Combine Per-Example Solutions for Neural Program Synthesiscited by 8
- 2021Why Aren't Regular Expressions a Lingua Franca? An Empirical Study on the Re-use and Portability of Regular Expressionscited by 4
Built on by
Not cited yet.