A GAIL Fine-Tuned LLM Enhanced Framework for Low-Resource Knowledge Graph Question Answering
Open Access
- 21 October 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 3300-3309
Abstract
Recent studies on knowledge graph question answering (KGQA) have focused on tackling complex inquiries to enhance the applicability of models in real-life settings. Unfortunately, KGQA models encounter significant challenges due to the lack of high-quality annotated data, making it difficult to accurately answer the diverse range of complex natural language questions posed by users. Inspired by the recent success of Large Language Models (LLMs), the burden associated with manual annotation can be mitigated by utilizing LLMs. However, the data generated directly by LLMs may exhibit a potential distribution discrepancy with real user queries. In this paper, we present an enhancement framework that utilizes Generative Adversarial Imitation Learning (GAIL) to fine-tune LLMs, which can address the challenges inherent in the low-resource KGQA task. Specifically, based on GAIL, the LLMs act as the generator aiming to output samples resembling expert demonstrations. Meanwhile, we utilize a paired discriminator to assess the authenticity of generated sequences and their relevance to the input SPARQL queries. Additionally, proximal policy optimization is leveraged to stabilize the training of the generator. Furthermore, we employ an automated algorithm to controllably sample various SPARQL queries from the knowledge graph, subsequently transforming them into corresponding natural language questions using fine-tuned LLMs. The synthetic dataset can serve as supplementary data for training lightweight KGQA models in real-world scenarios. Experimental results on the WebQuestionsSP, ComplexWebQuestions, and GrailQA show that our framework achieves state-of-the-art performance in a low-resource setting, even approaching the performance of supervised models.Keywords
Funding Information
- National Key Research and Development Program of China (No.2023YFC3304404)
This publication has 21 references indexed in Scilit:
- FlexKBQA: A Flexible LLM-Powered Framework for Few-Shot Knowledge Base Question AnsweringProceedings of the AAAI Conference on Artificial Intelligence, 2024
- LMGFuse: Language Models and Graph reasoning Fuse deeply for question answering2023
- Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Bases2021
- ReTraCk: A Flexible and Efficient Framework for Knowledge Base Question Answering2021
- Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base Embeddings2020
- Learning to Answer Complex Questions over Knowledge Bases with Query Composition2019
- The Web as a Knowledge-Base for Answering Complex Questions2018
- From Freebase to Wikidata2016
- On Generating Characteristic-rich Question Sets for QA Evaluation2016
- Freebase2008