FC-KBQA: A Fine-to-Coarse Composition Framework for Knowledge Base Question Answering

Lingxi Zhang, Jing Zhang, Yanling Wang, Shulin Cao, Xinmei Huang, Cuiping Li, Hong Chen, Juanzi Li

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:

  1. 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.
  2. 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:

  1. Fine-grained Component Detection: The model decomposes the question into four parts: Classes, Relations, Entities, and a Logical Skeleton (the "grammar" of the query).
  2. 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.
  3. 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.
The three-stage FC-KBQA framework: Fine-grained detection, Middle-grained constraints, and Coarse-grained composition.

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.

Inference time comparison showing FC-KBQA is approximately 4x faster than previous leading methods like RNG-KBQA.

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

BibTeX
@inproceedings{zhang2023fc,
  author = {Lingxi Zhang and Jing Zhang and Yanling Wang and Shulin Cao and Xinmei Huang and Cuiping Li and Hong Chen and Juanzi Li},
  title = {{FC-KBQA: A Fine-to-Coarse Composition Framework for Knowledge Base Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.57},
}
Figure