ReSyn: A Generalized Recursive Regular Expression Synthesis Framework

πŸ“… 2026-03-24
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
This work addresses the significant performance degradation of existing Programming-by-Example (PBE) systems when synthesizing real-world regular expressions characterized by high structural complexity, such as deep nesting and frequent unions. To overcome this limitation, the authors propose ReSynβ€”a general, synthesizer-agnostic recursive divide-and-conquer framework that decomposes complex synthesis tasks into manageable subproblems. Complementing this framework, they introduce Set2Regex, a parameter-efficient neural synthesizer that explicitly models the permutation invariance of input examples. The combined approach substantially improves the accuracy of diverse synthesizers on challenging regular expression synthesis tasks, achieving a new state-of-the-art result on a difficult benchmark.

Technology Category

Natural Language Processing: Code Generation / Program Synthesis from Natural LanguageSearch and Optimization: Mixed Discrete/Continuous SearchKnowledge Representation and Reasoning: Computational Complexity of Reasoning

Application Category

Search and Retrieval-Augmented AI: Web learning to rank, online learning, and counterfactual learning for rankingGraph Algorithms and Modeling for the Web: Representation, reconstruction, and subgraph or motif discovery in Web-related graphsEconomics, Online Markets and Human Computation: Incentives in network design for Web infrastructures and ecosystems
πŸ“ Abstract
Existing Programming-By-Example (PBE) systems often rely on simplified benchmarks that fail to capture the high structural complexity-such as deeper nesting and frequent Unions-of real-world regexes. To overcome the resulting performance drop, we propose ReSyn, a synthesizer-agnostic divide-and-conquer framework that decomposes complex synthesis problems into manageable sub-problems. We also introduce Set2Regex, a parameter-efficient synthesizer capturing the permutation invariance of examples. Experimental results demonstrate that ReSyn significantly boosts accuracy across various synthesizers, and its combination with Set2Regex establishes a new state-of-the-art on challenging real-world benchmark.
Problem

Research questions and friction points this paper is trying to address.

regular expression synthesis
Programming-by-Example
structural complexity
nested regexes
Unions
Innovation

Methods, ideas, or system contributions that make the work stand out.

Recursive Regular Expression Synthesis
Programming-by-Example
Divide-and-Conquer Framework
Permutation Invariance
Set2Regex
πŸ”Ž Similar Papers
No similar papers found.