Accurate and Consistent Graph Model Generation from Text with Large Language Models
Not on the map. Why?
Abstract (arXiv)
Graph model generation from natural language description is an important task with many applications in software engineering. With the rise of large language models (LLMs), there is a growing interest in using LLMs for graph model generation. Nevertheless, LLM-based graph model generation typically produces partially correct models that suffer from three main issues: (1) syntax violations: the generated model may not adhere to the syntax defined by its metamodel, (2) constraint inconsistencies: the structure of the model might not conform to some domain-specific constraints, and (3) inaccuracy: due to the inherent uncertainty in LLMs, the models can include inaccurate, hallucinated elements. While the first issue is often addressed through techniques such as constraint decoding or filtering, the latter two remain largely unaddressed. Motivated by recent self-consistency approaches in LLMs, we propose a novel abstraction-concretization framework that enhances the consistency and quality of generated graph models by considering multiple outputs from an LLM. Our approach first constructs a probabilistic partial model that aggregates all candidate outputs and then refines this partial model into the most appropriate concrete model that satisfies all constraints. We evaluate our framework on several popular open-source and closed-source LLMs using diverse datasets for model generation tasks. The results demonstrate that our approach significantly improves both the consistency and quality of the generated graph models.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 19 of its 65 references that are in the map. First posted on arXiv 1 Aug 2025.
Builds on
19 of 65 references.
References · 19
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2024GPT-4o System Cardcited by 4,588
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,457
- 2022Natural Language to Code Translation with Executioncited by 124
- 2022A Survey on Deep Graph Generation: Methods and Applicationscited by 69
- 2023Prompting or Fine-tuning? A Comparative Study of Large Language Models for Taxonomy Constructioncited by 18
7 more
- 2024On the use of Large Language Models in Model-Driven Engineeringcited by 13
- 2024Model Generation with LLMs: From Requirements to UML Sequence Diagramscited by 11
- 2024Atomic Self-Consistency for Better Long Form Generationscited by 10
- 2024Using Grammar Masking to Ensure Syntactic Validity in LLM-based Modeling Taskscited by 6
- 2019Practical Constraint Solving for Generating System Test Datacited by 4
- 2024PAGED: A Benchmark for Procedural Graphs Extraction from Documentscited by 4
- 2024MIDGARD: Self-Consistency Using Minimum Description Length for Structured Commonsense Reasoningcited by 3
Built on by
Citing papers per year: 2025: 2; 2026: 1.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Are Large Language Models Suitable for Graph Computation? Progress and Prospects
- 2023Large Language Models on Graphs: A Comprehensive Survey
- 2023Evaluating Large Language Models on Graphs: Performance Insights and Comparative Analysis
- 2026Evaluating LLMs on Large-Scale Graph Property Estimation via Random Walks
- 2024GUNDAM: Aligning Large Language Models with Graph Understanding
- 2025Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigation
- 2024Exploring the Potential of Large Language Models in Graph Generation
- 2024LangTopo: Aligning Language Descriptions of Graphs with Tokenized Topological Modeling