[Paper Review] Knowledge Base Question Answering by Case-based Reasoning over Subgraphs
A semiparametric KBQA model (Cbr-subg) retrieves similar training queries to construct query-specific subgraphs and uses a GNN-based reasoning module to identify answers, enabling subgraph-level reasoning and scalability to large KBs.
Question answering (QA) over knowledge bases (KBs) is challenging because of the diverse, essentially unbounded, types of reasoning patterns needed. However, we hypothesize in a large KB, reasoning patterns required to answer a query type reoccur for various entities in their respective subgraph neighborhoods. Leveraging this structural similarity between local neighborhoods of different subgraphs, we introduce a semiparametric model (CBR-SUBG) with (i) a nonparametric component that for each query, dynamically retrieves other similar $k$-nearest neighbor (KNN) training queries along with query-specific subgraphs and (ii) a parametric component that is trained to identify the (latent) reasoning patterns from the subgraphs of KNN queries and then apply them to the subgraph of the target query. We also propose an adaptive subgraph collection strategy to select a query-specific compact subgraph, allowing us to scale to full Freebase KB containing billions of facts. We show that CBR-SUBG can answer queries requiring subgraph reasoning patterns and performs competitively with the best models on several KBQA benchmarks. Our subgraph collection strategy also produces more compact subgraphs (e.g. 55\% reduction in size for WebQSP while increasing answer recall by 4.85\%)\footnote{Code, model, and subgraphs are available at \url{https://github.com/rajarshd/CBR-SUBG}}.
Motivation & Objective
- Motivate KBQA that requires complex subgraph reasoning patterns beyond simple paths.
- Introduce a semiparametric CBR-based model that uses KNN retrieval of similar queries and query-specific subgraphs.
- Develop an adaptive subgraph collection strategy to scale to billion-edge KBs like Freebase.
- Propose a GNN-based reasoning mechanism that transfers reasoning patterns from KNN subgraphs to the target query.
Proposed method
- Retrieve k nearest neighbor training queries using masked-entity query representations and RoBERTa-based embeddings.
- For each query, construct query-specific subgraphs by following relation chains from the retrieved cases, forming a compact subgraph.
- Encode subgraphs with a Relational Graph Convolutional Network to obtain node representations.
- Identify answer nodes by nearest-neighbor matching between target query subgraph answer representations and those from KNN subgraphs, trained with a contrastive loss.
- Train with a loss that encourages answer nodes in the target subgraph to align with answer nodes in retrieved subgraphs (NT-Xent style).
- During inference, run message passing over the target and KNN subgraphs and select the highest-scoring node as the answer.
Experimental results
Research questions
- RQ1Can Cbr-subg learn and apply latent subgraph reasoning patterns without annotated reasoning graphs?
- RQ2Does retrieving similar queries and constructing query-specific subgraphs improve KBQA performance on large KBs?
- RQ3Can the nonparametric subgraph collection enable processing of unseen entities and new evidence?
- RQ4Is reasoning over subgraphs of KNN queries superior to path-based or purely parametric approaches?
Key findings
- Cbr-subg achieves competitive performance on several KBQA benchmarks, notably outperforming many baselines on FreebaseQA in the reported results.
- The subgraph collection strategy yields compact subgraphs and improves recall (e.g., a 55% size reduction for WebQSP with a 4.85% recall gain).
- The model demonstrates strong capability to model latent subgraph reasoning patterns and to reason with new entities due to sparse, relation-centric node representations.
- Compared to purely parametric models (e.g., GNN+TransE), Cbr-subg consistently improves performance across tested pattern types.
- Reasoning over subgraphs (CBR-subg) outperforms a path-based variant (CBR-path) by substantial margins, especially for complex patterns requiring composition and intersection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.