keqing: knowledge-based question answering is a nature chain-of-thought mentor of LLM
Authors:
- Chaojie WangCWChaojie Wang
- Yishi XuYXYishi Xu
- Zhong PengZPZhong Peng
- Chenxi ZhangCZChenxi Zhang
- Bo ChenBCBo Chen
- Xinrun WangXWXinrun Wang
- Lei FengLFLei Feng
- Bo AnBABo An
Preprint
Abstract
Large language models (LLMs) have exhibited remarkable performance on various natural language processing (NLP) tasks, especially for question answering. However, in the face of problems beyond the scope of knowledge, these LLMs tend to talk nonsense with a straight face, where the potential solution could be incorporating an Information Retrieval (IR) module and generating response based on these retrieved knowledge. In this paper, we present a novel framework to assist LLMs, such as ChatGPT, to retrieve question-related structured information on the knowledge graph, and demonstrate that Knowledge-based question answering (Keqing) could be a nature Chain-of-Thought (CoT) mentor to guide the LLM to sequentially find the answer entities of a complex question through interpretable logical chains. Specifically, the workflow of Keqing will execute decomposing a complex question according to predefined templates, retrieving candidate entities on knowledge graph, reasoning answers of sub-questions, and finally generating response with reasoning paths, which greatly improves the reliability of LLM's response. The experimental results on KBQA datasets show that Keqing can achieve competitive performance and illustrate the logic of answering each question.Keywords
All Related Versions
This publication has 14 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
- Sources of Hallucination by Large Language Models on Inference Tasks2023
- StructGPT: A General Framework for Large Language Model to Reason over Structured Data2023
- Few-shot In-context Learning on Knowledge Base Question Answering2023
- Don’t Generate, Discriminate: A Proposal for Grounding Language Models to Real-World Environments2023
- Self-Instruct: Aligning Language Models with Self-Generated Instructions2023
- UniK-QA: Unified Representations of Structured and Unstructured Knowledge for Open-Domain Question Answering2022
- Dense Passage Retrieval for Open-Domain Question Answering2020
- Query Graph Generation for Answering Multi-hop Complex Questions from Knowledge Bases2020
- The Probabilistic Relevance Framework: BM25 and BeyondFoundations and Trends® in Information Retrieval, 2009