mlsanityData to 7 Oct 2026

InfeRE: Step-by-Step Regex Generation via Chain of Inference

arXiv 2308.04041 ↗First posted 8 Aug 2023cs.AI cs.CLcited by 5

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  5. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  6. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  7. 2022Large Language Models Are Reasoning Teacherscited by 318
  8. 2020WT5?! Training Text-to-Text Models to Explain their Predictionscited by 148
  9. 2021Reframing Human-AI Collaboration for Generating Free-Text Explanationscited by 125
  10. 2022Rationale-Augmented Ensembles in Language Modelscited by 111
  11. 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
  12. 2016Neural Generation of Regular Expressions from Natural Language with Minimal Domain Knowledgecited by 24
9 more
  1. 2020Optimal Neural Program Synthesis from Multimodal Specificationscited by 15
  2. 2019Multi-modal Synthesis of Regular Expressionscited by 13
  3. 2022Incorporating Domain Knowledge through Task Augmentation for Front-End JavaScript Code Generationcited by 11
  4. 2019Sketch-Driven Regular Expression Generation from Natural Language and Examplescited by 10
  5. 2020Benchmarking Multimodal Regex Synthesis with Complex Structurescited by 10
  6. 2020TransRegex: Multi-modal Regular Expression Synthesis by Generate-and-Repaircited by 8
  7. 2018Marrying up Regular Expressions with Neural Networks: A Case Study for Spoken Language Understandingcited by 7
  8. 2022The impact of lexical and grammatical processing on generating code from natural languagecited by 6
  9. 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

Cited by year

Citing papers per year: 2024: 1; 2025: 4.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025RegexPSPACE: A Benchmark for Evaluating LLM Reasoning on PSPACE-complete Regex Problems
  2. 2026Counterexample Guided Learning in the Large using Reasoning Agents
  3. 2026Reason and Verify: A Framework for Faithful Retrieval-Augmented Generation
  4. 2025InPars+: Supercharging Synthetic Data Generation for Information Retrieval Systems
  5. 2026Thinking Before Constraining: A Unified Decoding Framework for Large Language Models
  6. 2024Improving Open-Ended Text Generation via Adaptive Decoding
  7. 2023InPars Toolkit: A Unified and Reproducible Synthetic Data Generation Pipeline for Neural Information Retrieval
  8. 2025MERGE: Minimal Expression-Replacement GEneralization Test for Natural Language Inference