Before Blaming the LLM, Diagnose the Workflow: A Role-Level Difficulty Profile for Translating Natural Language into Ontology-Grounded Statements
Liang Zhang, Beno\^{i}t Daireaux, Sergey Alyaev
Key points
From the paper's conclusion- We propose a role-level difficulty profile for diagnosing difficulty in ontology-grounded NL-to-DSL semantic parsing at the workflow level.
Abstract
Natural-language-to-domain-specific-language (NL-to-DSL) semantic parsing systems increasingly translate informal user descriptions into structured artifacts such as Structured Query Language (SQL) queries, Application Programming Interface (API) calls, workflows, formal specifications, and ontology-grounded domain-specific language (DSL) statements. This paper focuses on ontology-grounded Assertion Box (ABox) DSL generation: the translation of natural language domain descriptions into assertion-level DSL statements grounded in a pre-existing ontology vocabulary. In this setting, syntactic validity is often easier to achieve than semantic adequacy. Failures are frequently attributed to weak generator models, but recurring sources of difficulty are also structural: insufficient input, weak domain grounding, output template and vocabulary gaps, weak validation, and non-local repair. We propose a role-level difficulty profile for diagnosing difficulty in ontology-grounded NL-to-DSL semantic parsing at the workflow level. The profile organizes diagnostic variables across five recurring workflow roles: Input, Generator, Output, Validator, and Repairer. The seven variables are input sufficiency, context availability, grounding complexity, template fit, vocabulary coverage, validation strength, and error observability. Practitioners construct the difficulty profile through qualitative judgment over available evidence. This experience-informed, non-exhaustive difficulty profile is intended to support workflow diagnosis and guide redesign or human-in-the-loop intervention.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- DSL-Bench: Evaluating and Explaining LLM Code Generation Across Domain-Specific LanguagesarXiv · 2026
- OntoPDDL: A PDDL Generation Method Based on Domain Ontologies and Large Language ModelsMathematics · 2026
- DatalogBench: Evaluating Large Language Models on Text-to-Datalog SynthesisarXiv · 2026
- Where LLMs Fail with Visualization DSLsarXiv · 2026
- FALCON: A Model and Dataset Agnostic Framework for Synthetic Data Generation for NL2SQL PairsarXiv · 2026
- From Language-Specific to Cross-DSL: Semantic-Role-Guided Model Completion with LLMsarXiv · 2026