paper-with-me

Papers

SemRegex: A Semantics-Based Approach for Generating Regular Expressions from Natural Language Specifications

2018-10-01 · EMNLP 2018 10 · Zexuan Zhong, Jiaqi Guo, Wei Yang, Jian Peng, Tao Xie, Jian-Guang Lou, Ting Liu, Dongmei Zhang

Recent research proposes syntax-based approaches to address the problem of generating programs from natural language specifications. These approaches typically train a sequence-to-sequence learning model using a syntax-based objective: maximum likelihood estimation (MLE). Such syntax-based approaches do not effectively address the goal of generating semantically correct programs, because these approaches fail to handle Program Aliasing, i.e., semantically equivalent programs may have many syntactically different forms. To address this issue, in this paper, we propose a semantics-based approach named SemRegex. SemRegex provides solutions for a subtask of the program-synthesis problem: generating regular expressions from natural language. Different from the existing syntax-based approaches, SemRegex trains the model by maximizing the expected semantic correctness of the generated regular expressions. The semantic correctness is measured using the DFA-equivalence oracle, random test cases, and distinguishing test cases. The experiments on three public datasets demonstrate the superiority of SemRegex over the existing state-of-the-art approaches.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Program Synthesis

Similar Papers 제목 키워드 기반

SoftRegex: Generating Regex from Natural Language Descriptions using Softened Regex Equivalence

2019-11-01 · IJCNLP 2019 11 · Jun-U Park, Sang-Ki Ko, Marco Cognetta, Yo-Sub Han

We continue the study of generating se-mantically correct regular expressions from natural language descriptions (NL). The current state-of-the-art model SemRegex produces regular expressions from NLs by rewarding the re…

NILE: Formalizing Natural-Language Descriptions of Formal Languages

2026-02-23 · Tristan Kneisel, Marko Schmellenkamp, Fabian Vehlken, Thomas Zeume arxiv

This paper explores how natural-language descriptions of formal languages can be compared to their formal representations and how semantic differences can be explained. This is motivated from educational scenarios where …

Formal Specifications from Natural Language

2022-06-04 · Christopher Hahn, Frederik Schmitt, Julia J. Tillman, Niklas Metzger 외

We study the generalization abilities of language models when translating natural language into formal specifications with complex semantics. In particular, we fine-tune language models on three datasets consisting of En…

Automated Theorem Proving

On Synthesis of Timed Regular Expressions

2025-09-08 · Ziran Wang, Jie An, Naijun Zhan, Miaomiao Zhang 외 arxiv

Timed regular expressions serve as a formalism for specifying real-time behaviors of Cyber-Physical Systems. In this paper, we consider the synthesis of timed regular expressions, focusing on generating a timed regular e…

The Image of the Process Interpretation of Regular Expressions is Not Closed under Bisimulation Collapse

2023-03-15 · Clemens Grabmayer

Axiomatization and expressibility problems for Milner's process semantics (1984) of regular expressions modulo bisimilarity have turned out to be difficult for the full class of expressions with deadlock 0 and empty step…