Reproduce “NAT-NL2GQL: A Novel Multi-Agent Framework for Translating Natural Language to Graph Query Language” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yuanyuan Liang, Tingyu Xie, Gan Peng, Zihao Huang, Yunshi Lan, Weining Qian

A multi-agent framework, NAT-NL2GQL, is introduced to translate natural language to graph query language, mitigating error propagation in sequential LLM-based methods through iterative refinement. The system achieves state-of-the-art performance on the new StockGQL dataset with 85.44% Exact Match and on the SpCQL dataset with 59.99% Exact Match, also providing the first open-source nGQL dataset.

Key insights

  • Accurate related schema extraction is critically important, as errors in this stage account for nearly half of the total query generation failures.
  • Fine-tuning the Generator agent is essential for high performance in NL2GQL, significantly outperforming In-Context Learning (ICL) methods.
  • A multi-agent, iterative framework with feedback loops effectively mitigates error accumulation and enhances overall system robustness.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.