paper-with-me

Papers

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 learners describe a formal language (presented, e.g., by a finite state automaton, regular expression, pushdown automaton, context-free grammar or in set notation) in natural language, and an educational support system has to (1) judge whether the natural-language description accurately describes the formal language, and to (2) provide explanations why descriptions are not accurate. To address this question, we introduce a representation language for formal languages, Nile, which is designed so that Nile expressions can mirror the syntactic structure of natural-language descriptions of formal languages. Nile is sufficiently expressive to cover a broad variety of formal languages, including all regular languages and fragments of context-free languages typically used in educational contexts. Generating Nile expressions that are syntactically close to natural-language descriptions then allows to provide explanations for inaccuracies in the descriptions algorithmically. In experiments on an educational data set, we show that LLMs can translate natural-language descriptions into equivalent, syntactically close Nile expressions with high accuracy - allowing to algorithmically provide explanations for incorrect natural-language descriptions. Our experiments also show that while natural-language descriptions can also be translated into regular expressions (but not context-free grammars), the expressions are often not syntactically close and thus not suitable for providing explanations.

📄 PDF Abstract BibTeX arXiv:2602.19743

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Autoformalizing and Simulating Game-Theoretic Scenarios using LLM-augmented Agents

2024-12-11 · Agnieszka Mensfelt, Kostas Stathis, Vince Trencsenyi

Game-theoretic simulations are a versatile tool for exploring interactions of both natural and artificial agents. However, modelling real-world scenarios and developing simulations often require substantial human experti…

NL2CA: Auto-formalizing Cognitive Decision-Making from Natural Language Using an Unsupervised CriticNL2LTL Framework

2025-12-20 · Zihao Deng, Yijia Li, Renrui Zhang, Peijun Ye arxiv

Cognitive computing models offer a formal and interpretable way to characterize human's deliberation and decision-making, yet their development remains labor-intensive. In this paper, we propose NL2CA, a novel method for…

Reinforcement Learning

Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistency

2024-10-28 · Zenan Li, Yifan Wu, Zhaoyu Li, Xinming Wei 외

Autoformalization, the task of automatically translating natural language descriptions into a formal language, poses a significant challenge across various domains, especially in mathematics. Recent advancements in large…

Math

Using (Not so) Large Language Models for Generating Simulation Models in a Formal DSL -- A Study on Reaction Networks

2025-03-03 · Justin N. Kreikemeyer, Miłosz Jankowski, Pia Wilsdorf, Adelinde M. Uhrmacher

Formal languages are an integral part of modeling and simulation. They allow the distillation of knowledge into concise simulation models amenable to automatic execution, interpretation, and analysis. However, the arguab…

Large Language Model

NILE : Natural Language Inference with Faithful Natural Language Explanations

2020-05-25 · ACL 2020 6 · Sawan Kumar, Partha Talukdar

The recent growth in the popularity and success of deep learning models on NLP classification tasks has accompanied the need for generating some form of natural language explanation of the predicted labels. Such generate…

Decision MakingNatural Language InferenceSensitivity