arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.04627cs.AIcs.CLcs.DBcs.IR
收藏

SPARQL生成:针对生命科学知识图谱问答任务微调OpenLLaMA的分析

SPARQL Generation: an analysis on fine-tuning OpenLLaMA for Question Answering over a Life Science Knowledge Graph

Department of Ecology and Evolution, University of Lausanne, Switzerland(生态与进化系,洛桑大学,瑞士);SIB Swiss Institute of Bioinformatics, Lausanne, Switzerland(瑞士生物信息学研究所,洛桑,瑞士)

Julio C. Rangel, Tarcisio Mendes de Farias, Ana Claudia Sima, Norio Kobayashi

AI总结:

针对特定领域知识图谱问答任务中问题转SPARQL查询训练数据稀缺的问题,本研究提出端到端数据增强方法并评估OpenLlama微调策略,结合语义线索(如有意义变量名)在Bgee图谱上使性能提升33%。

摘要:

大型语言模型(LLM)最近在广泛的自然语言处理应用中取得的成功,为利用LLM构建新型知识图谱问答系统开辟了道路。然而,阻碍其落地的主要障碍之一是将问题转换为对应SPARQL查询这一任务的训练数据稀缺,尤其是在特定领域知识图谱(KG)的情况下。为克服这一挑战,本研究评估了多种针对生命科学知识图谱问答任务微调OpenLlama LLM的策略。具体而言,我们提出一种端到端的数据增强方法,将给定知识图谱上的现有查询集扩展为更大规模的语义增强型问题-SPARQL查询对数据集,即使在这类配对稀缺的数据集上也能实现微调。在此背景下,我们还研究了查询中语义“线索”的作用,例如有意义的变量名和内联注释。最后,我们在真实世界的Bgee基因表达知识图谱上评估了我们的方法,结果显示与使用随机变量名且无注释的基线相比,语义线索可将模型性能提升高达33%。

英文摘要:

The recent success of Large Language Models (LLM) in a wide range of Natural Language Processing applications opens the path towards novel Question Answering Systems over Knowledge Graphs leveraging LLMs. However, one of the main obstacles preventing their implementation is the scarcity of training data for the task of translating questions into corresponding SPARQL queries, particularly in the case of domain-specific KGs. To overcome this challenge, in this study, we evaluate several strategies for fine-tuning the OpenLlama LLM for question answering over life science knowledge graphs. In particular, we propose an end-to-end data augmentation approach for extending a set of existing queries over a given knowledge graph towards a larger dataset of semantically enriched question-to-SPARQL query pairs, enabling fine-tuning even for datasets where these pairs are scarce. In this context, we also investigate the role of semantic "clues" in the queries, such as meaningful variable names and inline comments. Finally, we evaluate our approach over the real-world Bgee gene expression knowledge graph and we show that semantic clues can improve model performance by up to 33% compared to a baseline with random variable names and no comments included.

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

↑