K-DeCore: Facilitating Knowledge Transfer in Continual Structured Knowledge Reasoning via Knowledge Decoupling

Yongrui Chen, Yi Huang, Yunchang Liu, Shenyu Zhang, Junhao He, Tongtong Wu, Guilin Qi, Tianxing Wu

TL;DR

K-DeCore is a novel framework for Continual Structured Knowledge Reasoning (CSKR) that allows AI models to learn new reasoning tasks (like SQL or SPARQL generation) sequentially without forgetting old ones. By decoupling the reasoning process into task-agnostic "schema filtering" and task-specific "query building," it enables effective knowledge transfer across heterogeneous data types while maintaining a fixed, efficient parameter count.

What Problem Does This Paper Address?

Structured Knowledge Reasoning (SKR) is the bread and butter of modern AI assistants; it is what happens when you ask a question in natural language and the model translates it into a structured query (like SQL for databases or SPARQL for knowledge graphs).

The challenge is that real-world environments are continual. A model might first learn to query a relational database, then a knowledge graph, then a dialogue state. Existing approaches struggle with two main issues:

  1. Catastrophic Forgetting: Learning a new task often overwrites the knowledge needed for previous ones.
  2. Heterogeneity & Scaling: Most methods either cannot generalize across different types of structured data or require the model's parameter count to grow linearly with every new task, leading to massive, inefficient models.
Comparison of standard continual learning (left) facing catastrophic forgetting due to huge task gaps, versus K-DeCore's decoupled approach (right) that unifies schema filtering.

Methods

The authors introduce K-DeCore (Knowledge DEcoupling for COntinual REasoning), which relies on three main pillars to solve these challenges:

  • Knowledge Decoupling: Instead of treating query generation as one monolithic step, K-DeCore splits it into two. First, a Schema Filter (task-agnostic) identifies which parts of the data are relevant. Second, a Query Builder (task-specific) constructs the actual code.
  • Unified Schema Representation: To make the Schema Filter work across different data types, the authors "flatten" Knowledge Graphs and Dialogue States into a standardized, database-like format. This allows the model to treat "finding the right table" the same way, whether it is looking at a SQL database or a set of API intents.
  • Dual-Perspective Memory & Synthesis: To prevent forgetting, the model uses a small "replay memory." Crucially, it does not just store old examples; it uses a Structure-guided Query Synthesis strategy. The model "dreams up" novel, complex query structures it hasn't seen before and generates synthetic training data for them, which significantly boosts its ability to generalize to unseen patterns.
The overall K-DeCore framework, illustrating the decoupled reasoning process and the dual-perspective memory consolidation with structure-guided pseudo-data synthesis.

Unlike many prior methods that add new "adapters" for every task, K-DeCore uses a fixed number of tunable parameters (via Parameter-Efficient Fine-Tuning, or PEFT), making it highly scalable.

Datasets

The framework was evaluated on four diverse benchmarks to simulate a "stream" of heterogeneous tasks:

  • Spider: Complex text-to-SQL tasks over relational databases.
  • ComplexWebQuestions (CWQ): Multi-hop reasoning over knowledge graphs using SPARQL.
  • GrailQA: Knowledge graph reasoning using S-expressions.
  • MTOP: Multilingual semantic parsing for task-oriented dialogue (TOP representation).

The researchers curated three different "task streams" (sequences of these datasets) to test how well the model handles different learning orders.

Key Insights and Ideas

  • Filtering is the "Universal Language": The biggest insight is that while SQL and SPARQL look very different, the act of selecting relevant schema elements is remarkably similar across tasks. By isolating this step, K-DeCore creates a bridge for knowledge to flow from one task to the next.
  • Standardization over Specialization: Instead of building specialized architectures for KGs vs. DBs, the paper shows that converting everything to a "DB-like" view allows a single, fixed-size module to handle the heavy lifting of schema navigation.
  • Synthetic Diversity Trumps Raw Replay: Simply replaying old data is often not enough. By synthesizing novel query structures, the model learns the underlying "logic" of structured reasoning rather than just memorizing templates.

Key Results

K-DeCore was tested against several strong baselines (like EMAR and SAPT) using T5, Llama3, and Qwen2.5 as backbone models.

  • Superior Accuracy: On the Llama3-8B backbone, K-DeCore achieved an Average Accuracy (AA) of ~40-41% across task streams, significantly outperforming standard fine-tuning (~22-26%) and previous rehearsal-based methods (~34%).
  • Effective Knowledge Transfer: It showed high Forward Transfer (FWT) scores, meaning that learning an earlier task actually helped the model perform better on a new task it had not seen yet.
  • Efficiency: Despite its performance, K-DeCore maintained a much lower training and testing time overhead compared to PEFT-based methods like C3, which suffer from slow prompt-tuning or complex module merging.

Limitations and Future Work

The authors acknowledge a few areas for growth:

  • Backbone Constraints: Due to resource limits, they did not test on the very latest "reasoning-heavy" models, which might inherently handle these tasks differently.
  • Inference Pipeline: The decoupled nature requires a multi-step inference process (filter then build), which adds a slight amount of complexity compared to end-to-end generation.
  • Real-world Noise: While the benchmarks are diverse, they are still curated. Testing K-DeCore on "messy" real-world schemas with ambiguous naming remains a future challenge.

Summary updated

BibTeX
@inproceedings{chen2025k,
  author = {Yongrui Chen and Yi Huang and Yunchang Liu and Shenyu Zhang and Junhao He and Tongtong Wu and Guilin Qi and Tianxing Wu},
  title = {{K-DeCore: Facilitating Knowledge Transfer in Continual Structured Knowledge Reasoning via Knowledge Decoupling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=stiJen3iNI},
}
Figure