A Comprehensive Evaluation of Neural SPARQL Query Generation from Natural Language Questions

Papa Abdou Karim Karou Diallo, Samuel Reyd, Amal Zouaq
4/16/2023
cs.CLcs.LG

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

In recent years, the field of neural machine translation (NMT) for SPARQL query generation has witnessed significant growth. Incorporating the copy mechanism with traditional encoder-decoder architectures and using pre-trained encoder-decoders and large language models have set new performance benchmarks. This paper presents various experiments that replicate and expand upon recent NMT-based SPARQL generation studies, comparing pre-trained language models (PLMs), non-pre-trained language models (NPLMs), and large language models (LLMs), highlighting the impact of question annotation and the copy mechanism and testing various fine-tuning methods using LLMs. In particular, we provide a systematic error analysis of the models and test their generalization ability. Our study demonstrates that the copy mechanism yields significant performance enhancements for most PLMs and NPLMs. Annotating the data is pivotal to generating correct URIs, with the "tag-within" strategy emerging as the most effective approach. Additionally, our findings reveal that the primary source of errors stems from incorrect URIs in SPARQL queries that are sometimes replaced with hallucinated URIs when using base models. This does not happen using the copy mechanism, but it sometimes leads to selecting wrong URIs among candidates. Finally, the performance of the tested LLMs fell short of achieving the desired outcomes.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{diallo2023comprehensive,
  title  = {A Comprehensive Evaluation of Neural SPARQL Query Generation from Natural Language Questions},
  author = {Papa Abdou Karim Karou Diallo and Samuel Reyd and Amal Zouaq},
  year   = {2023},
  eprint = {2304.07772},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.07772v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.07772.svg)](https://codeofpaper.com/paper/2304.07772)

Discussion