arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.14202cs.CL
收藏

基于Wikidata的少样本序列到序列语义解析:微调后的大语言模型知识更丰富、幻觉更少

Fine-tuned LLMs Know More, Hallucinate Less with Few-Shot Sequence-to-Sequence Semantic Parsing over Wikidata

Stanford University(斯坦福大学)

Silei Xu, Shicheng Liu, Theo Culhane, Elizaveta Pertseva, Meng-Hsi Wu, Sina J. Semnani, Monica S. Lam

AI总结:

本研究提出面向Wikidata的少样本序列到序列语义解析器,构建WikiWebQuestions基准,微调LLaMA实现强基线,结合GPT-3提升问答覆盖率,在QALD-7数据集上F1值超SOTA3.6%。

摘要:

尽管大语言模型(LLM)能正确回答许多问题,但它们也会产生幻觉并给出错误答案。拥有超过120亿条事实的Wikidata可用于为LLM提供事实支撑,提升其事实准确性。本文提出了WikiWebQuestions,一个面向Wikidata的高质量问答基准,它由源自Freebase的WebQuestions迁移而来,包含带SPARQL标注的真实世界数据。\n本文提出了一种面向Wikidata的少样本序列到序列语义解析器。我们修改了SPARQL,使用唯一的领域和属性名称而非其ID。我们训练解析器使用实体链接器的结果或查询中的提及内容。我们通过将少样本训练数据添加到Alpaca微调所用的数据集中,对LLaMA进行微调。\n实验结果证明了该方法的有效性,在WikiWebQuestions的验证集和测试集上分别取得了76%和65%的回答准确率,建立了强有力的基线。通过将我们的语义解析器与GPT-3结合,我们将可验证的结果与合格的GPT-3猜测相结合,为验证集中96%的问题提供了有效答案。我们还表明,我们的方法在QALD-7 Wikidata数据集上的F1分数比当前最优方法高出3.6%。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑