InfeRE: Step-by-Step Regex Generation via Chain of Inference
Not on the map. Why?
Abstract (arXiv)
Automatically generating regular expressions (abbrev. regexes) from natural language description (NL2RE) has been an emerging research area. Prior studies treat regex as a linear sequence of tokens and generate the final expressions autoregressively in a single pass. They did not take into account the step-by-step internal text-matching processes behind the final results. This significantly hinders the efficacy and interpretability of regex generation by neural language models. In this paper, we propose a new paradigm called InfeRE, which decomposes the generation of regexes into chains of step-by-step inference. To enhance the robustness, we introduce a self-consistency decoding mechanism that ensembles multiple outputs sampled from different models. We evaluate InfeRE on two publicly available datasets, NL-RX-Turk and KB13, and compare the results with state-of-the-art approaches and the popular tree-based generation approach TRANX. Experimental results show that InfeRE substantially outperforms previous baselines, yielding 16.3% and 14.7% improvement in DFA@5 accuracy on two datasets, respectively. Particularly, InfeRE outperforms the popular tree-based generation approach by 18.1% and 11.3% on both datasets, respectively, in terms of DFA@5 accuracy.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 21 of its 38 references that are in the map. First posted on arXiv 8 Aug 2023.
Builds on
21 of 38 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2022Large Language Models Are Reasoning Teacherscited by 318
- 2020WT5?! Training Text-to-Text Models to Explain their Predictionscited by 148
- 2021Reframing Human-AI Collaboration for Generating Free-Text Explanationscited by 125
- 2022Rationale-Augmented Ensembles in Language Modelscited by 111
- 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
- 2016Neural Generation of Regular Expressions from Natural Language with Minimal Domain Knowledgecited by 24
9 more
- 2020Optimal Neural Program Synthesis from Multimodal Specificationscited by 15
- 2019Multi-modal Synthesis of Regular Expressionscited by 13
- 2022Incorporating Domain Knowledge through Task Augmentation for Front-End JavaScript Code Generationcited by 11
- 2019Sketch-Driven Regular Expression Generation from Natural Language and Examplescited by 10
- 2020Benchmarking Multimodal Regex Synthesis with Complex Structurescited by 10
- 2020TransRegex: Multi-modal Regular Expression Synthesis by Generate-and-Repaircited by 8
- 2018Marrying up Regular Expressions with Neural Networks: A Case Study for Spoken Language Understandingcited by 7
- 2022The impact of lexical and grammatical processing on generating code from natural languagecited by 6
- 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
Citing papers per year: 2024: 1; 2025: 4.
5 papers.
- 2024Can Language Models Pretend Solvers? Logic Code Simulation with LLMscited by 4
- 2025COSMosFL: Ensemble of Small Language Models for Fault Localisationcited by 3
- 2025Empowering AI to Generate Better AI Code: Guided Generation of Deep Learning Projects with LLMscited by 2
- 2025Lost in Translation? Converting RegExes for Log Parsing into Dynatrace Pattern Languagecited by 0
- 2025Neurosymbolic Characterization for Reliable Access Control Policy Analysiscited by 0
- 2025Neurosymbolic Characterization for Reliable Access Control Policy Analysis23 Oct 2025
- 2025Lost in Translation? Converting RegExes for Log Parsing into Dynatrace Pattern Language24 Jun 2025
- 2025Empowering AI to Generate Better AI Code: Guided Generation of Deep Learning Projects with LLMs21 Apr 2025
- 2025COSMosFL: Ensemble of Small Language Models for Fault Localisation5 Feb 2025
- 2024Can Language Models Pretend Solvers? Logic Code Simulation with LLMs24 Mar 2024
Similar, not cited
Close in wording, no citation either way
- 2025RegexPSPACE: A Benchmark for Evaluating LLM Reasoning on PSPACE-complete Regex Problems
- 2026Counterexample Guided Learning in the Large using Reasoning Agents
- 2026Reason and Verify: A Framework for Faithful Retrieval-Augmented Generation
- 2025InPars+: Supercharging Synthetic Data Generation for Information Retrieval Systems
- 2026Thinking Before Constraining: A Unified Decoding Framework for Large Language Models
- 2024Improving Open-Ended Text Generation via Adaptive Decoding
- 2023InPars Toolkit: A Unified and Reproducible Synthetic Data Generation Pipeline for Neural Information Retrieval
- 2025MERGE: Minimal Expression-Replacement GEneralization Test for Natural Language Inference