HPE: Answering Complex Questions over Text by Hybrid Question Parsing and Execution

Ye Liu, Semih Yavuz, Rui Meng, Dragomir Radev, Caiming Xiong, Shafiq Joty, Yingbo Zhou

TL;DR

This paper introduces HPE, a novel framework for answering complex questions over text by combining neural question parsing with symbolic execution. HPE breaks down complex questions into a structured "H-expression" and then uses a hybrid approach to execute it, achieving state-of-the-art results across various QA settings and offering improved interpretability.

What Problem Does This Paper Address?

End-to-end neural models have become the go-to for question answering (QA) over text, excelling at simple questions. However, they struggle with complex, multi-hop questions that require intricate reasoning. This is in contrast to semantic parsing methods used with structured data (like databases), which convert questions into logical forms for execution, offering better interpretability and precision. The challenge is to bridge this gap, combining the flexibility of neural models with the robustness and explainability of symbolic reasoning for complex textual QA.

Methods

HPE tackles this by introducing a two-pronged approach:

  1. Hybrid Question Parsing (H-parser): A neural network (specifically, a T5-based Seq2Seq model) parses complex questions into an intermediate representation called an "H-expression." This H-expression is a hierarchical structure where primitive, single-hop questions form the leaves, and symbolic operations (like JOIN, UNION, COMP_=) act as internal nodes, defining how to combine answers. This parsing is context-independent, aiming to capture the question's inherent structure.
  2. Hybrid Execution (H-executor): This component takes the generated H-expression and executes it. It uses a "drop-in" neural reader to answer the primitive single-hop questions. Deterministic symbolic rules, defined by the operations in the H-expression, then hierarchically combine these answers in a bottom-up fashion to produce the final answer. This process is akin to a top-down parse followed by a bottom-up answer backtracking.

Datasets

The paper evaluates HPE on several standard datasets:

  • MuSiQue: A multi-hop, multi-passage textual QA dataset with various reasoning types.
  • 2WikiMultiHopQA (2WikiQA): Another multi-hop QA dataset requiring reasoning over passages.
  • HotpotQA: Used for zero-shot evaluation, featuring distractor passages and requiring reasoning across two passages.
  • Natural Questions (NQ): Used for zero-shot evaluation, treated as a dataset that can involve multi-hop reasoning.

The authors also mention using datasets like TriviaQA, SQuAD, and BoolQ for pre-training the reader network.

Key Insights and Ideas

  • Decomposition is Key: Breaking down complex questions into simpler, executable sub-questions is crucial for robust reasoning. HPE demonstrates that this decomposition, when represented symbolically, significantly improves performance.
  • Symbolic Structure Guides Neural Execution: The H-expression acts as a blueprint, guiding the neural reader and ensuring that the reasoning process is deterministic and interpretable, unlike purely end-to-end neural approaches.
  • Modularity for Adaptability: The H-executor's design allows for easy replacement of the neural reader, meaning the symbolic framework can adapt to new reader models without retraining the entire system.
  • Generalization through Structure: By disentangling parsing from simple question answering, HPE shows better generalization capabilities, especially in few-shot and zero-shot settings, compared to end-to-end models.

Key Results

HPE achieved state-of-the-art performance across supervised, few-shot, and zero-shot settings on the evaluated datasets.

  • Supervised: HPE outperformed existing models on MuSiQue and 2WikiQA, showing significant gains over the baseline FiD model.
  • Few-Shot: HPE demonstrated better generalization than end-to-end models, achieving comparable or better performance with limited training data.
  • Zero-Shot: On HotpotQA, HPE showed a significant gain (around 15% absolute) when combined with FiD, indicating its ability to handle unseen questions and reasoning types. It also showed promising results on NQ, suggesting that even "simple" questions can benefit from decomposition.
  • Interpretability: The framework naturally exposes its reasoning process through the H-expression and execution trace, facilitating error analysis and debugging.

Limitations and Future Work

The authors acknowledge several limitations and suggest future directions:

  • Maturity of H-expression: While the defined H-expression covers various reasoning types, it's not yet mature for all possible reasoning types. Retraining the question parser is needed for new types. Future work aims to leverage in-context learning in large language models to generate H-expressions for new reasoning types without retraining.
  • Exposure Bias: The bottom-up execution process can suffer from exposure bias, where errors in earlier steps propagate. The authors suggest using beam search to generate multiple answers at each step to mitigate this.
  • Global Question Parser: Developing a truly generalizable global question parser that can accurately decompose any unseen question remains a challenge. The paper conjectures that incorrect H-expression generation by the parser is a reason for some errors.
  • Extensibility: The authors suggest that the framework can be extended to solve knowledge base and table QA by replacing the text reader with KB or table-based neural networks.

Summary updated

Abstract

The dominant paradigm of textual question answering systems is based on end-to-end neural networks, which excels at answering natural language questions but falls short on complex ones. This stands in contrast to the broad adaptation of semantic parsing approaches over structured data sources (e.g., relational database, knowledge graphs), that convert natural language questions to logical forms and execute them with query engines. Towards combining the strengths of neural and symbolic methods, we propose a framework of question parsing and execution on textual QA. It comprises two central pillars: (1) We parse the question of varying complexity into an intermediate representation, named H-expression, which is composed of simple questions as the primitives and symbolic operations representing the relationships among them; (2) To execute the resulting H-expressions, we design a hybrid executor, which integrates the deterministic rules to translate the symbolic operations with a drop-in neural reader network to answer each decomposed simple question. Hence, the proposed framework can be viewed as a top-down question parsing followed by a bottom-up answer backtracking. The resulting H-expressions closely guide the execution process, offering higher precision besides better interpretability while still preserving the advantages of the neural readers for resolving its primitive elements. Our extensive experiments on MuSiQue, 2WikiQA, HotpotQA, and NQ show that the proposed parsing and hybrid execution framework outperforms existing approaches in supervised, few-shot, and zero-shot settings, while also effectively exposing its underlying reasoning process.
BibTeX
@inproceedings{liu2023hpe,
  author = {Ye Liu and Semih Yavuz and Rui Meng and Dragomir Radev and Caiming Xiong and Shafiq Joty and Yingbo Zhou},
  title = {{HPE: Answering Complex Questions over Text by Hybrid Question Parsing and Execution}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.293},
}
Figure