NAT-NL2GQL: A Novel Multi-Agent Framework for Translating Natural Language to Graph Query Language
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
The emergence of Large Language Models (LLMs) has revolutionized many fields, not only traditional natural language processing (NLP) tasks. Recently, research on applying LLMs to the database field has been booming, and as a typical non-relational database, the use of LLMs in graph database research has naturally gained significant attention. Recent efforts have increasingly focused on leveraging LLMs to translate natural language into graph query language (NL2GQL). Although some progress has been made, these methods have clear limitations, such as their reliance on streamlined processes that often overlook the potential of LLMs to autonomously plan and collaborate with other LLMs in tackling complex NL2GQL challenges. To address this gap, we propose NAT-NL2GQL, a novel multi-agent framework for translating natural language to graph query language. Specifically, our framework consists of three synergistic agents: the Preprocessor agent, the Generator agent, and the Refiner agent. The Preprocessor agent manages data processing as context, including tasks such as name entity recognition, query rewriting, path linking, and the extraction of query-related schemas. The Generator agent is a fine-tuned LLM trained on NL-GQL data, responsible for generating corresponding GQL statements based on queries and their related schemas. The Refiner agent is tasked with refining the GQL or context using error information obtained from the GQL execution results. Given the scarcity of high-quality open-source NL2GQL datasets based on nGQL syntax, we developed StockGQL, a dataset constructed from a financial market graph database. It is available at: https://github.com/leonyuancode/StockGQL. Experimental results on the StockGQL and SpCQL datasets reveal that our method significantly outperforms baseline approaches, highlighting its potential for advancing NL2GQL research.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 25 of its 41 references that are in the map. First posted on arXiv 11 Dec 2024.
Builds on
25 of 41 references.
References · 25
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2017Inductive Representation Learning on Large Graphscited by 6,284
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2016Incorporating Copying Mechanism in Sequence-to-Sequence Learningcited by 217
- 2023Large Language Models for Generative Information Extraction: A Surveycited by 183
- 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
- 2016Language to Logical Form with Neural Attentioncited by 158
13 more
- 2022On the Effectiveness of Parameter-Efficient Fine-Tuningcited by 140
- 2024CHASE-SQL: Multi-Path Reasoning and Preference Optimized Candidate Selection in Text-to-SQLcited by 132
- 2021A Survey on Complex Knowledge Base Question Answering: Methods, Challenges and Solutionscited by 77
- 2024The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Modelscited by 67
- 2022Graph Data Augmentation for Graph Machine Learning: A Surveycited by 61
- 2023Empirical Study of Zero-Shot NER with ChatGPTcited by 60
- 2022Unleashing the Power of Graph Data Augmentation on Covariate Distribution Shiftcited by 38
- 2024E-SQL: Direct Schema Linking via Question Enrichment in Text-to-SQLcited by 35
- 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
- 2023GPTuner: A Manual-Reading Database Tuning System via GPT-Guided Bayesian Optimizationcited by 28
- 2023D-Bot: Database Diagnosis System using Large Language Modelscited by 28
- 2024Aligning Large Language Models to a Domain-specific Graph Database for NL2GQLcited by 14
- 2023R3-NL2GQL: A Model Coordination and Knowledge Graph Alignment Approach for NL2GQLcited by 7
Built on by
Citing papers per year: 2025: 4; 2026: 5.
9 papers.
- 20251-2-3 Check: Enhancing Contextual Privacy in LLM via Multi-Agent Reasoningcited by 16
- 2025LLM/Agent-as-Data-Analyst: A Surveycited by 15
- 2025Enhancing Text2Cypher with Schema Filteringcited by 6
- 2026Text2GraphQuery-Bench: A Text to Graph Query Benchmarkcited by 3
- 2026Achieving Precise Text-To-Cypher Via Grounded Knowledge Graph Data Generationcited by 1
- 2025Multi-turn Natural Language to Graph Query Language Translationcited by 0
- 2026Natural Language Interfaces for Spatial and Temporal Databases: A Comprehensive Overview of Methods, Taxonomy, and Future Directionscited by 0
- 2026Performance Evaluation of LLMs in Automated RDF Knowledge Graph Generationcited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnessescited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnesses28 Sep 2026
- 2026Achieving Precise Text-To-Cypher Via Grounded Knowledge Graph Data Generation12 Jun 2026
- 2026Natural Language Interfaces for Spatial and Temporal Databases: A Comprehensive Overview of Methods, Taxonomy, and Future Directions24 Mar 2026
- 2026Text2GraphQuery-Bench: A Text to Graph Query Benchmark12 Feb 2026
- 2026Performance Evaluation of LLMs in Automated RDF Knowledge Graph Generation6 Feb 2026
- 2025LLM/Agent-as-Data-Analyst: A Survey28 Sep 2025
- 20251-2-3 Check: Enhancing Contextual Privacy in LLM via Multi-Agent Reasoning11 Aug 2025
- 2025Multi-turn Natural Language to Graph Query Language Translation3 Aug 2025
- 2025Enhancing Text2Cypher with Schema Filtering8 May 2025
Similar, not cited
Close in wording, no citation either way
- 2026AgentNLQ: A General-Purpose Agent for Natural Language to SQL
- 2024Towards Evaluating Large Language Models for Graph Query Generation
- 2025ARUQULA -- An LLM based Text2SPARQL Approach using ReAct and Knowledge Graph Exploration Utilities
- 2026Arming Data Agents with Tribal Knowledge
- 2025Agentic NL2SQL to Reduce Computational Costs
- 2025Multilingual Text-to-SQL: Benchmarking the Limits of Language Models with Collaborative Language Agents
- 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback
- 2026An Agentic System for Schema Aware NL2SQL Generation