ReSyn:一种通用的递归正则表达式合成框架
ReSyn: A Generalized Recursive Regular Expression Synthesis Framework
AI总结:
提出ReSyn框架,通过分治策略将复杂正则表达式合成问题分解为子问题,并结合Set2Regex合成器,在真实基准上达到最先进性能。
摘要:
现有的编程示例(PBE)系统通常依赖于简化的基准测试,未能捕捉真实世界正则表达式的高结构复杂性,例如更深的嵌套和频繁的联合操作使用。为了克服由此导致的性能下降,我们提出了ReSyn,一种与合成器无关的分治框架,将复杂的合成问题分解为可管理的子问题。我们还引入了Set2Regex,一种参数高效的合成器,捕捉示例的排列不变性。实验结果表明,ReSyn显著提高了各种合成器的准确性,并且其与Set2Regex的组合在具有挑战性的真实世界基准测试上建立了新的最先进水平。完整的源代码、数据集和预训练模型检查点可在此https URL公开获取。
英文摘要:
Existing Programming-By-Example (PBE) systems often rely on simplified benchmarks that fail to capture the high structural complexity of real-world regexes, such as deeper nesting and frequent use of union operations. To overcome the resulting performance drop, we propose ReSyn, a synthesizer-agnostic divide-and-conquer framework that decomposes complex synthesis problem 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. The complete source code, datasets, and pre-trained model checkpoints are publicly available at https://github.com/mrseongminkim/ReSyn.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。