Abstract
Knowledge-Based Question Answering (KBQA) systems typically operate under the assumption of a static world. However, real-world knowledge bases (KBs) are dynamic, requiring frequent updates. Traditional fine-tuning on new data often leads to catastrophic forgetting of previously learned facts. This paper presents an incremental learning framework for KBQA that utilizes a novel margin-distilled loss and collaborative exemplar selection. Experimental results on a newly constructed Incremental SimpleQuestion dataset demonstrate that the proposed approach effectively retains old knowledge while learning new information, achieving performance near the upper bound of full re-training with significantly reduced computational overhead.
Introduction
Knowledge bases such as Wikidata and DBpedia serve as structured repositories of facts, typically represented as triples. While these KBs are essential for modern AI, they are constantly evolving as new information emerges. Current KBQA models face a significant challenge: they are often static. When updated with new facts via fine-tuning, these models suffer from catastrophic forgetting, where performance on older data degrades sharply. Conversely, re-training models from scratch on the entire updated KB is computationally prohibitive.
To address this, we propose an incremental KBQA framework. This approach allows models to expand their knowledge base progressively, similar to human learning, by integrating new facts without losing the ability to answer questions about previously established data.
Methodology
The proposed framework treats KBQA as a semantic matching problem between questions and KB triples. It introduces two primary innovations to facilitate incremental learning:
Margin-Distilled Loss
To balance the acquisition of new knowledge with the preservation of old facts, a hybrid loss function is employed. For new data, a margin loss is used to ensure the model ranks correct triples higher than incorrect ones. For historical data (exemplars), a Mean Squared Error (MSE) loss acts as a distillation mechanism. This forces the current model to produce similarity scores consistent with the previous iteration, effectively anchoring the model's weights and preventing drastic shifts that cause forgetting.
Collaborative Exemplar Selection
The framework maintains a small set of representative samples, or exemplars, from previous learning phases. Unlike standard methods that select random or average samples (e.g., herding), our collaborative exemplar selection focuses on semantic relationships between relations. By identifying "boundary" samples—questions that are semantically similar to multiple relations—the model learns to better distinguish between closely related facts, which is more informative for maintaining decision boundaries over time.
Experimental Evaluation
As no standard benchmark existed for incremental KBQA, we developed the Incremental SimpleQuestion (Incremental SQ) dataset. Derived from the SimpleQuestion dataset (108,442 questions), the relation types were split into five distinct sets ($D_0$ to $D_4$) to simulate a streaming data environment across five successive phases.
Performance and Accuracy
The proposed model was compared against several state-of-the-art KBQA baselines adapted for incremental learning. Our approach achieved an average accuracy of 85.25% across all phases, significantly outperforming baselines such as Hao et al. (81.09%) and standard fine-tuning (77.34%).
Notably, the model demonstrated exceptional resilience to forgetting. In the final phase ($D_4$), while baseline accuracy on the initial question set ($T_{est0}$) dropped to 58.52%, our model maintained 87.64% accuracy. This performance is remarkably close to the "Upper Bound" of 86.17% achieved by re-training on the full dataset at every step.
Efficiency
Beyond accuracy, the incremental approach offers substantial gains in efficiency. As the KB grows, the time and memory required for incremental updates remain relatively stable compared to the linear increase seen in full re-training. This makes the framework highly practical for large-scale, frequently updated production environments.
Conclusion and Future Work
This research demonstrates that incremental learning is a viable and efficient strategy for maintaining KBQA systems in dynamic environments. By focusing on boundary-case exemplars and utilizing distillation loss, models can grow their knowledge without catastrophic forgetting.
Future work will explore extending this framework to handle complex, multi-hop questions and more continuous data streams. Additionally, addressing the observed decline in entity linking performance during early incremental phases remains a key area for improvement to ensure robust end-to-end performance.
Summary updated