Fine-tuned LLMs Know More, Hallucinate Less with Few-Shot Sequence-to-Sequence Semantic Parsing over Wikidata
Xu, Silei, Liu, Shicheng, Culhane, Theo, Pertseva, Elizaveta, Wu, Meng-Hsi, Semnani, Sina J., Lam, Monica S.
–arXiv.org Artificial Intelligence
While large language models (LLMs) can answer many questions correctly, they can also hallucinate and give wrong answers. Wikidata, with its over 12 billion facts, can be used to ground LLMs to improve their factuality. This paper presents WikiWebQuestions, a high-quality question answering benchmark for Wikidata. Ported over from WebQuestions for Freebase, it consists of real-world data with SPARQL annotation. This paper presents a few-shot sequence-to-sequence semantic parser for Wikidata. We modify SPARQL to use the unique domain and property names instead of their IDs. We train the parser to use either the results from an entity linker or mentions in the query. We fine-tune LLaMA by adding the few-shot training data to that used to fine-tune Alpaca. Our experimental results demonstrate the effectiveness of this methodology, establishing a strong baseline of 76% and 65% answer accuracy in the dev and test sets of WikiWebQuestions, respectively. By pairing our semantic parser with GPT-3, we combine verifiable results with qualified GPT-3 guesses to provide useful answers to 96% of the questions in dev. We also show that our method outperforms the state-of-the-art for the QALD-7 Wikidata dataset by 3.6% in F1 score.
arXiv.org Artificial Intelligence
Nov-5-2023
- Country:
- Africa > Middle East
- Egypt (0.04)
- Asia
- China
- Beijing > Beijing (0.04)
- Guangxi Province > Nanning (0.04)
- Hong Kong (0.04)
- Middle East > UAE
- Abu Dhabi Emirate > Abu Dhabi (0.04)
- Russia (0.04)
- China
- Europe
- Belgium > Brussels-Capital Region
- Brussels (0.04)
- France (0.04)
- Germany (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Russia (0.04)
- Belgium > Brussels-Capital Region
- North America
- Canada > Ontario
- Toronto (0.04)
- Dominican Republic (0.04)
- United States
- California
- Louisiana > Orleans Parish
- New Orleans (0.04)
- New Jersey (0.04)
- New Mexico > Santa Fe County
- Santa Fe (0.04)
- New York > New York County
- New York City (0.04)
- Texas > Travis County
- Austin (0.04)
- Washington > King County
- Seattle (0.14)
- Canada > Ontario
- Africa > Middle East
- Genre:
- Research Report > New Finding (0.48)
- Industry:
- Technology: