Retrieve, Program, Repeat: Complex Knowledge Base Question Answering via Alternate Meta-learning
Proposes MARL, combining weakly supervised retrieval with meta-learning, achieving SOTA (micro F177.71%) in KBQA
Key Findings
Methodology
This paper introduces MARL, a joint training framework for retrieval and program generation via meta-reinforcement learning. It alternates two phases: fixing the retriever to select similar questions for support, then fixing the generator to optimize retrieval policy based on answer rewards. Weak supervision signals—answer correctness—guide training, utilizing DSSM for semantic similarity and filter softmax to reduce search space. The approach employs Monte Carlo policy gradients and meta-RL to enable rapid adaptation to unseen questions, outperforming traditional imitation and RL methods with a micro F177.71% on CQA dataset.
Key Results
- On the large-scale CQA dataset, MARL achieved a micro F177.71%, surpassing baseline methods by nearly 3%, with only 1% of training data for meta-learning.
- Different retrieval strategies (random, Jaccard) consistently improved performance, confirming the benefit of joint training.
- Ablation studies showed that the synergy between retrieval and program generation significantly boosts accuracy, especially in complex question categories.
Significance
This work advances KBQA by addressing the challenge of generalization across diverse question types. The joint training of retrieval and generation models under weak supervision reduces annotation costs and enhances adaptability. It paves the way for more intelligent, scalable QA systems capable of handling complex reasoning tasks, with broad implications for virtual assistants, customer service, and knowledge inference.
Technical Contribution
The paper pioneers a unified meta-RL framework that trains retrieval and program generation models simultaneously, leveraging weak supervision signals. It introduces a filter softmax for efficient retrieval, and employs meta-learning for fast adaptation, setting a new paradigm in end-to-end KBQA. These innovations improve training efficiency, model robustness, and generalization over prior state-of-the-art methods.
Novelty
This is the first work to jointly train retrieval and program generation models via meta-RL with weak supervision, enabling rapid adaptation to new questions. Unlike previous approaches that rely on annotated retrieval data or separate modules, this integrated framework dynamically learns to find relevant support questions, significantly improving accuracy and efficiency in complex KBQA tasks.
Limitations
- The approach still struggles with multi-hop or highly complex reasoning questions, partly due to reliance on question type classification accuracy.
- Training involves multiple alternating steps, leading to high computational costs and difficulty in real-time deployment.
- Dependence on entity linking accuracy means errors in entity recognition can degrade overall performance.
Future Work
Future directions include integrating multi-modal data (images, tables), reducing computational overhead, and extending to multi-turn dialogues. Improving entity linking robustness and exploring unsupervised or semi-supervised strategies could further enhance scalability and real-world applicability.
AI Executive Summary
Complex question answering over knowledge bases faces the challenge of understanding diverse, multi-step queries and generating precise logical programs. Traditional models often struggle with generalization, especially when faced with unseen question types. To address this, the authors propose MARL, a novel framework that jointly trains a retrieval model and a program generator using meta-reinforcement learning. The key idea is to leverage weak supervision—namely, the answer correctness—as a feedback signal to guide both components. During training, the retriever selects similar questions to support the adaptation of the program generator to new questions, enabling rapid customization. The process involves two alternating phases: fixing the retriever to optimize the generator, then fixing the generator to improve the retriever, with the entire system trained iteratively. Experimental results on the large-scale CQA dataset demonstrate that MARL achieves a micro F177.71%, outperforming previous methods by a significant margin. This indicates that joint, weakly supervised meta-learning can effectively enhance the robustness and accuracy of knowledge base question answering systems. The approach reduces reliance on extensive labeled data, making it scalable and practical for real-world applications. Its ability to adapt quickly to new question types opens new avenues for intelligent virtual assistants and automated reasoning systems. Despite its success, the model faces limitations in handling highly complex multi-hop questions and requires substantial computational resources. Future work will focus on extending the framework to multi-modal inputs, multi-turn dialogues, and improving entity linking robustness, aiming to create more versatile and efficient KBQA solutions.
Deep Analysis
Background
Knowledge base question answering (KBQA) has evolved from rule-based systems to neural models like Memory Networks and Transformer-based approaches. Early methods relied on template matching, but lacked flexibility. Recent advances include end-to-end neural models that directly map questions to logical forms, such as Seq2Seq and semantic parsing techniques. However, these models often struggle with complex, multi-hop, or diverse question types, limiting their generalization. Meta-learning approaches like MAML have been introduced to improve adaptability, but typically require extensive labeled data. Retrieval-based methods, such as S2A, incorporate similar question retrieval to personalize responses, yet face challenges in training efficiency and support set quality. This paper builds upon these foundations, integrating weak supervision and meta-RL to jointly optimize retrieval and program generation, aiming for scalable, accurate, and adaptable KBQA systems.
Core Problem
The core challenge in KBQA is enabling models to understand and generate accurate logical programs for a wide variety of complex questions, especially those unseen during training. Existing methods often depend heavily on annotated data, which is costly and limits scalability. Additionally, models trained as a single monolithic system lack flexibility, leading to poor performance on out-of-distribution questions. Retrieval-based approaches improve this by finding similar questions, but their effectiveness hinges on the quality of support sets. Moreover, traditional training paradigms do not effectively leverage the feedback from answer correctness to guide retrieval strategies, resulting in suboptimal support selection and slow adaptation. Addressing these issues requires a framework that can learn to retrieve relevant support dynamically, adapt quickly to new questions, and do so with minimal supervision.
Innovation
This work introduces several key innovations: 1) joint training of retrieval and program generation models via meta-RL, enabling end-to-end adaptation; 2) weak supervision leveraging answer rewards to guide retrieval policy, reducing annotation costs; 3) a filter softmax mechanism that incorporates question type information, improving retrieval accuracy and efficiency; 4) a two-stage alternating training process that iteratively refines both components for optimal performance. These innovations collectively allow the system to rapidly adapt to unseen questions with minimal labeled data, outperforming prior methods that treat retrieval and generation separately or rely on extensive supervision. The integration of meta-learning with weak supervision marks a significant step forward in scalable, flexible KBQA.
Methodology
- �� Construct a neural encoder-decoder (programmer) and a retriever network, both taking questions as input.
- �� Use a meta-RL approach: in the first stage, fix the retriever, sample support questions, and optimize the programmer via policy gradients based on answer rewards.
- �� In the second stage, fix the programmer, sample support sets using the retriever, and update the retriever policy to maximize the reward difference.
- �� Employ DSSM for semantic similarity, combined with a filter softmax to restrict candidate support questions based on question type.
- �� Use Monte Carlo policy gradient estimation to handle the non-differentiable support set sampling.
- �� Alternate these steps iteratively until convergence, ensuring both models improve jointly.
- �� During inference, adapt the program generator to new questions using retrieved support sets, guided by the learned policies.
Experiments
The model was evaluated on the CQA dataset, containing 944K questions across seven categories. Baselines included KVmem and CIPITR, with metrics like micro and macro F1. The training used only 1% labeled data for pseudo-gold sequences, with additional unlabeled data for meta-learning. Hyperparameters included N=5 support questions, 30 training epochs, and Adam optimizer. Ablation studies confirmed the importance of joint training and the filtering mechanism. Results showed significant improvements over baselines, especially in complex reasoning categories, demonstrating the model’s ability to generalize and adapt with minimal supervision.
Results
MARL achieved a micro F177.71%, outperforming KVmem (31.18%) and CIPITR variants (~60%). Ablation showed that removing the joint training reduced performance by nearly 3%. The support set quality directly correlated with accuracy gains, especially in multi-hop and reasoning-heavy questions. The model maintained robustness across categories, validating the effectiveness of the combined weak supervision and meta-RL approach.
Applications
This framework can be deployed in intelligent virtual assistants, enterprise knowledge systems, and customer support bots, where rapid adaptation to diverse queries is crucial. It requires a knowledge base, natural language understanding, and entity linking modules. Its ability to learn from minimal supervision makes it suitable for large-scale, real-world deployment, reducing annotation costs and improving user experience. Future integration with multi-modal data could further enhance its versatility.
Limitations & Outlook
Despite promising results, the model’s performance on highly complex, multi-hop, or ambiguous questions remains limited. The training process is computationally intensive due to alternating optimization and Monte Carlo sampling. Dependence on entity linking accuracy can lead to errors. Future work should focus on reducing computational costs, improving multi-hop reasoning, and enhancing robustness against noisy inputs.
Plain Language Accessible to non-experts
想象你在一家工厂工作,工厂里有很多不同的机器,每台机器都能做不同的事情。有时候,你需要找到一台合适的机器(检索器),用它帮你找到类似的任务,然后用另一台机器(程序生成器)来完成具体的工作。这个过程就像你在解决问题时,先找一些类似的例子,然后用它们的经验来帮你快速找到答案。每次你遇到新问题时,工厂里的机器会根据之前的经验调整自己,变得更聪明、更快。这样,不管问题多复杂,工厂都能快速找到解决方案,就像一个聪明的助手一样帮你搞定所有难题。
ELI14 Explained like you're 14
想象你在学校里遇到一道新题,你可以先回忆一下以前遇到的类似题,然后用那些题的答案帮你解新题。可是记忆太多题会很麻烦,还容易搞错。现在,有个超级聪明的机器人可以帮你找到和新题最像的几道旧题,然后用它们的答案帮你解答。这个机器人会不断学习,变得越来越聪明。每次它找到的旧题越像新题,它帮你的答案就越准。这样,无论题多难,只要找到合适的旧题,机器人就能帮你快速搞定。就像你有个学习助手,总是能帮你找到最好的解题方法,特别是在题目很多、类型复杂时也不怕。这个方法让机器人变得更聪明,解题也更快更准!
Abstract
A compelling approach to complex question answering is to convert the question to a sequence of actions, which can then be executed on the knowledge base to yield the answer, aka the programmer-interpreter approach. Use similar training questions to the test question, meta-learning enables the programmer to adapt to unseen questions to tackle potential distributional biases quickly. However, this comes at the cost of manually labeling similar questions to learn a retrieval model, which is tedious and expensive. In this paper, we present a novel method that automatically learns a retrieval model alternately with the programmer from weak supervision, i.e., the system's performance with respect to the produced answers. To the best of our knowledge, this is the first attempt to train the retrieval model with the programmer jointly. Our system leads to state-of-the-art performance on a large-scale task for complex question answering over knowledge bases. We have released our code at https://github.com/DevinJake/MARL.