paper-with-me

홈 › Papers

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

2023-08-08 · Shuai Zhang, Xiaodong Gu, Yuting Chen, Beijun Shen

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.

📄 PDF Abstract BibTeX arXiv:2308.04041

Code (1)

smallqqqq/infere 공식 구현 pytorch

Tasks

Text Matching

Similar Papers 제목 키워드 기반

BlockBPE: Parallel BPE Tokenization

2025-07-16 · Amos You arxiv

Tokenization is a critical preprocessing step in large language model pipelines, yet widely-used implementations remain CPU-bound and suboptimal for batch inference workflows on GPU. We present BlockBPE, a parallel GPU i…

StepChain GraphRAG: Reasoning Over Knowledge Graphs for Multi-Hop Question Answering

2025-10-03 · Tengjun Ni, Xin Yuan, Shenghong Li, Kai Wu 외 arxiv

Recent progress in retrieval-augmented generation (RAG) has led to more accurate and interpretable multi-hop question answering (QA). Yet, challenges persist in integrating iterative reasoning steps with external knowled…

Multi-hop Question AnsweringKnowledge Graphs

GCoT: Chain-of-Thought Prompt Learning for Graphs

2025-02-12 · Xingtong Yu, Chang Zhou, Zhongwei Kuai, Xinming Zhang 외

Chain-of-thought (CoT) prompting has achieved remarkable success in natural language processing (NLP). However, its vast potential remains largely unexplored for graphs. This raises an interesting question: How can we de…

Prompt Learning

Let's reward step by step: Step-Level reward model as the Navigators for Reasoning

2023-10-16 · Qianli Ma, Haotian Zhou, Tingkai Liu, Jianbo Yuan 외

Recent years have seen considerable advancements in multi-step reasoning with Large Language Models (LLMs). The previous studies have elucidated the merits of integrating feedback or search mechanisms during model infere…

Code GenerationGSM8KMathMathematical Reasoning

Benchmarking Multimodal Regex Synthesis with Complex Structures

2020-05-02 · ACL 2020 6 · Xi Ye, Qiaochu Chen, Isil Dillig, Greg Durrett

Existing datasets for regular expression (regex) generation from natural language are limited in complexity; compared to regex tasks that users post on StackOverflow, the regexes in these datasets are simple, and the lan…

Benchmarking