Search-Based Regular Expression Inference on a GPU
Not on the map. Why?
Abstract (arXiv)
Regular expression inference (REI) is a supervised machine learning and program synthesis problem that takes a cost metric for regular expressions, and positive and negative examples of strings as input. It outputs a regular expression that is precise (i.e., accepts all positive and rejects all negative examples), and minimal w.r.t. to the cost metric. We present a novel algorithm for REI over arbitrary alphabets that is enumerative and trades off time for space. Our main algorithmic idea is to implement the search space of regular expressions succinctly as a contiguous matrix of bitvectors. Collectively, the bitvectors represent, as characteristic sequences, all sub-languages of the infix-closure of the union of positive and negative examples. Mathematically, this is a semiring of (a variant of) formal power series. Infix-closure enables bottom-up compositional construction of larger from smaller regular expressions using the operations of our semiring. This minimises data movement and data-dependent branching, hence maximises data-parallelism. In addition, the infix-closure remains unchanged during the search, hence search can be staged: first pre-compute various expensive operations, and then run the compute intensive search process. We provide two C++ implementations, one for general purpose CPUs and one for Nvidia GPUs (using CUDA). We benchmark both on Google Colab Pro: the GPU implementation is on average over 1000x faster than the CPU implementation on the hardest benchmarks.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 8 of its 47 references that are in the map. First posted on arXiv 29 May 2023.
Builds on
8 of 47 references.
References · 8
- 2017Attention Is All You Needcited by 60,361
- 2021The Benchmark Lotterycited by 136
- 2016Neural Generation of Regular Expressions from Natural Language with Minimal Domain Knowledgecited by 24
- 2021Rewrite Rule Inference Using Equality Saturationcited by 10
- 2018The ARM Scalable Vector Extensioncited by 9
- 2020TransRegex: Multi-modal Regular Expression Synthesis by Generate-and-Repaircited by 8
- 2016Virtual Machine Warmup Blows Hot and Coldcited by 4
- 2020WarpCore: A Library for fast Hash Tables on GPUscited by 4
Built on by
Citing papers per year: 2023: 1; 2024: 2; 2025: 2; 2026: 1.
6 papers.
- 2024LTL learning on GPUscited by 6
- 2024Boolean Matrix Logic Programming on the GPUcited by 1
- 2025GPU accelerated program synthesis: Enumerate semantics, not syntax!cited by 1
- 2025LTLf Learning Meets Boolean Set Covercited by 1
- 2023Correct and Optimal: the Regular Expression Inference Challengecited by 0
- 2026GPU-Accelerated Synthesis of Mixed-Boolean Arithmetic: Beyond Cachingcited by 0
- 2026GPU-Accelerated Synthesis of Mixed-Boolean Arithmetic: Beyond Caching7 May 2026
- 2025LTLf Learning Meets Boolean Set Cover29 Sep 2025
- 2025GPU accelerated program synthesis: Enumerate semantics, not syntax!26 Apr 2025
- 2024Boolean Matrix Logic Programming on the GPU19 Aug 2024
- 2024LTL learning on GPUs19 Feb 2024
- 2023Correct and Optimal: the Regular Expression Inference Challenge15 Aug 2023