Bayesian Inference of Regular Expressions from Human-Generated Example Strings

05/22/2018
by   Long Ouyang, et al.
0

In programming by example, users "write" programs by generating a small number of input-output examples and asking the computer to synthesize consistent programs. We consider an unsolved problem in this domain: learning regular expressions (regexes) from positive and negative example strings. This problem is challenging, as (1) user-generated examples may not be informative enough to sufficiently constrain the hypothesis space, and (2) even if user-generated examples are in principle informative, there is still a massive search space to examine. We frame regex induction as the problem of inferring a probabilistic regular grammar and propose an efficient inference approach that uses a novel stochastic process recognition model. This model incrementally "grows" a grammar using positive examples as a scaffold. We show that this approach is competitive with human ability to learn regexes from examples.

READ FULL TEXT
research
05/20/2022

Neuro-Symbolic Regex Synthesis Framework via Neural Example Splitting

Due to the practical importance of regular expressions (regexes, for sho...
research
05/29/2023

Search-Based Regular Expression Inference on a GPU

Regular expression inference (REI) is a supervised machine learning and ...
research
09/23/2022

A Neural Model for Regular Grammar Induction

Grammatical inference is a classical problem in computational learning t...
research
08/13/2023

The Usability of Pragmatic Communication in Regular Expression Synthesis

Programming-by-example (PBE) systems aim to alleviate the burden of prog...
research
09/17/2012

Textual Features for Programming by Example

In Programming by Example, a system attempts to infer a program from inp...
research
12/08/2018

Efficient Concept Induction for Description Logics

Concept Induction refers to the problem of creating complex Description ...
research
09/23/2014

A Concept Learning Approach to Multisensory Object Perception

This paper presents a computational model of concept learning using Baye...

Please sign up or login with your details

Forgot password? Click here to reset