Papers › SPARKLE: Enhancing SPARQL Generation with Direct KG Integration in Decoding

SPARKLE: Enhancing SPARQL Generation with Direct KG Integration in Decoding

29 Jun 2024arXiv:2407.01626archive 2025-07-28

Jaebok Lee, Hyeonjeong Shin

Existing KBQA methods have traditionally relied on multi-stage methodologies, involving tasks such as entity linking, subgraph retrieval and query structure generation. However, multi-stage approaches are dependent on the accuracy of preceding steps, leading to cascading errors and increased inference time. Although a few studies have explored the use of end-to-end models, they often suffer from lower accuracy and generate inoperative query that is not supported by the underlying data. Furthermore, most prior approaches are limited to the static training data, potentially overlooking the evolving nature of knowledge bases over time. To address these challenges, we present a novel end-to-end natural language to SPARQL framework, SPARKLE. Notably SPARKLE leverages the structure of knowledge base directly during the decoding, effectively integrating knowledge into the query generation. Our study reveals that simply referencing knowledge base during inference significantly reduces the occurrence of inexecutable query generations. SPARKLE achieves new state-of-the-art results on SimpleQuestions-Wiki and highest F1 score on LCQuAD 1.0 (among models not using gold entities), while getting slightly lower result on the WebQSP dataset. Finally, we demonstrate SPARKLE's fast inference speed and its ability to adapt when the knowledge base differs between the training and inference stages.

PaperPDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

zzaebok/sparkle officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Entity LinkingKnowledge Base Question Answering

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Knowledge Base Question Answering LC-QuAD 1.0 SPARKLE F1 72.2 #3 of 7 Archive leaderboard report
Knowledge Base Question Answering SimpleQuestionsWikiData SPARKLE F1 79.6 #1 of 5 Archive leaderboard report
Knowledge Base Question Answering WebQuestionsSP SPARKLE F1 71.1 #8 of 8 Archive leaderboard report
Knowledge Base Question Answering WebQuestionsSP SPARKLE Hits@1 71.2 #8 of 8 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

BASESPEED

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections