Skip to main content
QUICK REVIEW

[Paper Review] DecAF: Joint Decoding of Answers and Logical Forms for Question Answering over Knowledge Bases

Donghan Yu, Sheng Zhang|arXiv (Cornell University)|Sep 30, 2022
Topic ModelingComputer Science18 citations
TL;DR

DecAF proposes a joint decoding framework that simultaneously generates logical forms and direct answers for knowledge base question answering, leveraging free-text retrieval instead of entity linking to improve generalization. It achieves state-of-the-art performance on WebQSP, FreebaseQA, and GrailQA by combining execution-based and generation-based answers, outperforming prior methods that rely on constrained decoding or entity linking.

ABSTRACT

Question answering over knowledge bases (KBs) aims to answer natural language questions with factual information such as entities and relations in KBs. Previous methods either generate logical forms that can be executed over KBs to obtain final answers or predict answers directly. Empirical results show that the former often produces more accurate answers, but it suffers from non-execution issues due to potential syntactic and semantic errors in the generated logical forms. In this work, we propose a novel framework DecAF that jointly generates both logical forms and direct answers, and then combines the merits of them to get the final answers. Moreover, different from most of the previous methods, DecAF is based on simple free-text retrieval without relying on any entity linking tools -- this simplification eases its adaptation to different datasets. DecAF achieves new state-of-the-art accuracy on WebQSP, FreebaseQA, and GrailQA benchmarks, while getting competitive results on the ComplexWebQuestions benchmark.

Motivation & Objective

  • Address the limitations of existing KBQA methods that either rely solely on executable logical forms (prone to non-execution) or direct answer generation (lower accuracy on complex questions).
  • Overcome the dependency on entity linking tools, which limits model generalization across different knowledge bases and datasets.
  • Improve answer accuracy by jointly decoding logical forms and direct answers, then combining their outputs via a combiner mechanism.
  • Demonstrate that simple BM25 retrieval can be highly effective when combined with sequence-to-sequence generation, reducing reliance on complex retrieval architectures.

Proposed method

  • DecAF uses a sequence-to-sequence model to jointly generate both logical forms and direct answers from the input question.
  • It linearizes the knowledge base into text documents and employs sparse (BM25) or dense (DPR) retrieval to retrieve relevant subgraphs based on question semantics.
  • The retrieved passages are concatenated with the input question to condition the generation of both logical forms and answers.
  • A combiner mechanism selects the final answer by fusing predictions from logical form execution and direct answer generation, favoring the latter when logical forms are non-executable.
  • The framework treats logical forms as regular text strings during generation, avoiding complex constrained decoding or post-hoc revision.
  • The model is trained end-to-end using a combination of cross-entropy loss for answer generation and logical form generation, with execution feedback used to refine predictions.

Experimental results

Research questions

  • RQ1Can joint decoding of logical forms and direct answers improve KBQA performance compared to methods that rely on only one generation path?
  • RQ2Does replacing entity linking with free-text retrieval improve model generalization across diverse KBQA benchmarks?
  • RQ3Can simple BM25 retrieval achieve competitive performance when combined with sequence-to-sequence generation in KBQA?
  • RQ4How does the combination of execution-based and generation-based answers affect robustness to non-executable logical forms?
  • RQ5To what extent does retrieval quality (BM25 vs. DPR) impact the final answer accuracy across different question types and datasets?

Key findings

  • DecAF achieves new state-of-the-art performance on WebQSP, FreebaseQA, and GrailQA, with reported F1 scores of 89.9, 93.5, and 84.7 respectively on the H@100 metric.
  • On the ComplexWebQuestions benchmark, DecAF achieves competitive results, indicating strong generalization despite the complexity of multi-hop questions.
  • BM25 retrieval alone achieves over 80% hits and recall rates on WebQSP, GrailQA, and FreebaseQA, demonstrating the effectiveness of simple retrieval in this setup.
  • The model's performance improves with more retrieved passages (up to 100), especially for zero-shot questions on GrailQA, where gains are most significant.
  • DecAF outperforms strong baselines like ArcaneQA and RnG-KBQA even when ensembled with them, indicating its superiority in handling non-executable logical forms.
  • The framework shows that direct answer generation can be a better fallback than forcing non-executable logical forms, especially when execution rates are low.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.