EMNLP2025

Beyond Seen Data: Improving KBQA Generalization Through Schema-Guided Logical Form Generation

Shengxiang Gao, Jey Han Lau, Jianzhong Qi

Abstract

Knowledge Base Question Answering (KBQA) aims to answer user questions in natural language using rich human knowledge stored in large KBs. As current KBQA methods struggle with unseen knowledge base elements and their novel compositions at test time, we introduce SG-KBQA -a novel model that injects schema contexts into entity retrieval and logical form generation to tackle this issue. It exploits information about the semantics and structure of the knowledge base provided by schema contexts to enhance generalizability. We show that SG-KBQA achieves strong generalizability, outperforming state-of-the-art models on three commonly used benchmark datasets across a variety of test settings. Our source code is available at https://github. com/gaosx2000/SG_KBQA .