Knowledge Base Question Answering (KBQA) is the critical task of translating natural language questions into executable logical queries. Despite significant progress, current models struggle with a "Generalization Gap," failing when faced with novel combinations of relations (compositional generalization) or entirely new entities (zero-shot generalization). This paper introduces FC-KBQA, a novel framework that bridges the gap between flexible generalization and strict executability.
The Generalization Gap in KBQA
Existing KBQA models typically fall into two categories, both with significant drawbacks:
- Coarse-grained Entanglement: These models treat logical expressions as single units. While this ensures the query is executable, it often leads to memorization of training patterns, causing failure in zero-shot or compositional scenarios.
- Fine-grained Inexecutability: These models predict individual components (classes, relations) separately. While they generalize better, they often produce "hallucinated" queries where components are not actually connected in the Knowledge Base (KB), making them impossible to run.
The Fine-to-Coarse Framework
FC-KBQA addresses these issues through a three-stage process that ensures both flexibility and validity:
- Fine-grained Component Detection: The model decomposes the question into four parts: Classes, Relations, Entities, and a Logical Skeleton (the "grammar" of the query).
- Middle-grained Component Constraint: This core innovation acts as a bridge. The system checks the KB to identify which detected components can actually connect to one another, forming valid pairs (e.g., Class-Relation). This prunes the search space and ensures the final output is physically possible within the database.
- Coarse-grained Component Composition: A T5-based sequence-to-sequence model takes the question and the filtered "middle-grained" pairs to compose the final executable s-expression. KB constraints are injected into both the encoder and decoder to guide the reasoning process.
Key Results and Efficiency
The authors evaluated FC-KBQA on major benchmarks including GrailQA, WebQSP, and Complex WebQuestions (CWQ). The framework achieved a new state-of-the-art on the GrailQA leaderboard with a 73.2% Exact Match (EM) and 78.7% F1 score.
Beyond accuracy, the model demonstrated superior generalization, outperforming baselines by over 4% on GrailQA's zero-shot settings. Furthermore, by retrieving components rather than enumerating every possible multi-hop query, FC-KBQA is significantly more efficient than its predecessors.
Conclusion
FC-KBQA demonstrates that fine-grained decomposition is the key to solving the generalization challenges in KBQA. By introducing a "middle-grained" constraint layer, the framework ensures that the resulting queries are not only accurate but also strictly executable. While challenges remain in handling highly complex, KB-specific structures, this fine-to-coarse approach sets a new standard for both performance and inference speed in the field.
Summary updated