Structured Context and High-Coverage Grammar for Conversational Question Answering over Knowledge Graphs

Pierre Marion, Pawel Krzysztof Nowak, Francesco Piccinno

Structured Context and High-Coverage Grammar for Conversational Question Answering over Knowledge Graphs

Abstract: Pierre Marion, Pawel Nowak, Francesco Piccinno. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.

2021.

Researchers at Google and Sorbonne Université have developed the Object-Aware Transformer (OAT), a new model for conversational question answering over Knowledge Graphs (KGs). By introducing a high-coverage logical grammar and a model architecture that treats structured graph data as a first-class citizen, they achieved a significant jump in accuracy on complex benchmarks like CSQA.

The Challenge of Conversational QA

Answering questions using a Knowledge Graph (like Wikidata) is difficult, but doing it in a conversation is even harder. The system must handle:

  1. Coreference: Knowing that "he" refers to the person mentioned in the previous turn.
  2. Ambiguity: Distinguishing between "Marie Curie" the scientist and "Marie Curie" the research program.
  3. Complex Logic: Handling questions that require counting, comparing, or navigating multiple "hops" across the graph.

Most existing systems either ignore the rich structure of the KG when processing the question or use "Logical Form" (LF) grammars that are too restrictive. This paper tackles the "weakly-supervised" setting, where the model isn't given the correct "code" (logical form) to find the answer; it only sees the final answer and must figure out the logic itself.

The Object-Aware Transformer (OAT)

Standard Transformers take flat text as input. OAT, however, accepts a structured input including the current question, the conversation history, and a "KG context"—a list of relevant entities and properties retrieved from the graph.

The OAT architecture overview, showing the flow from structured input to logical form decoding.

To bridge the gap between structured data and neural embeddings, the authors use a Flattener layer. It recursively computes embeddings for tree-like structures, allowing the model to "understand" the relationships between entities, their IDs, and their names. Additionally, ID Randomization is used during training to prevent the model from memorizing specific entity IDs, forcing it to learn the logic of picking the right entity from the provided context.

Expressive Grammar and Silver Data

The authors designed a more expressive grammar for Logical Forms, including "meta-operators" like for_each and argmax. This expanded the grammar coverage on the CSQA dataset from 80% to 96.2%. Since "gold" logical forms don't exist for these datasets, the authors used a Breadth-First Search (BFS) to find "silver" LFs—programs that happen to result in the correct answer—and filtered out "spurious" results using complexity heuristics.

Key Results

The model was evaluated on two major benchmarks: CSQA (1.6M turns) and ConvQuestions (56k turns). On CSQA, the OAT model increased execution accuracy from 70.6% to 75.6%, a significant leap over previous state-of-the-art models like MaSP.

Detailed performance breakdown of OAT vs. baselines across different question types on the CSQA dataset.

As shown in the results table, the model showed massive gains in "Comparative" and "Quantitative" questions. For example, in "Comparative (Count)" questions, accuracy jumped from ~22% to 36%. On ConvQuestions, the model achieved a 4.7% improvement in precision over the CONVEX baseline, proving that the approach generalizes to more natural, less "templated" conversations.

Limitations and Future Work

The biggest source of error remains Named Entity Linking (NEL). If the system fails to identify which "Marie Curie" the user is talking about at the start, the model cannot recover. The authors noted that using perfect entity linking would boost scores by another 10%. Future directions include integrating richer KG context and exploring multi-task learning to solve entity linking and semantic parsing simultaneously.

Summary updated

BibTeX
@inproceedings{marion2021structured,
  author = {Pierre Marion and Pawel Krzysztof Nowak and Francesco Piccinno},
  title = {{Structured Context and High-Coverage Grammar for Conversational Question Answering over Knowledge Graphs}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  url = {https://openreview.net/forum?id=_9xQSiBvKIj},
}
Figure