HopPG: Self-Iterative Program Generation for Multi-Hop Question Answering over Heterogeneous Knowledge

Yingyao Wang, Yongwei Zhou, Chaoqun Duan, Junwei Bao, Tiejun ZhaoarXiv 2023 · DOI

Abstract

Multi-hop question answering (QA) requires reasoning across multiple pieces of information, often stored in heterogeneous formats like tables and text. Traditional semantic parsing models often struggle with "single-shot" generation, where the entire reasoning chain must be predicted at once. We present HopPG, a self-iterative framework that generates executable programs one "hop" at a time. By utilizing intermediate execution results to guide subsequent evidence retrieval, HopPG achieves superior accuracy and interpretability. On the MMQA-T² dataset, HopPG outperforms state-of-the-art baselines, particularly in complex multi-hop scenarios.

Introduction

Answering complex questions often necessitates connecting disparate facts. For instance, to identify the birthplace of a specific film director, a system must first determine the director's identity from one source and then locate their biographical details in another. In Knowledge-Based Question Answering (KBQA), semantic parsing (SP) converts natural language into executable programs. However, existing SP models face two primary challenges:

  1. Heterogeneous Knowledge: Reasoning across different data formats, such as transitioning from a table row to a specific sentence in a text passage.
  2. The "Single-Shot" Bottleneck: Most models attempt to generate the entire multi-step program simultaneously. This requires the model to anticipate every step and process a vast amount of candidate facts, often exceeding context windows and reasoning capacities.

HopPG (Self-Iterative Program Generation) addresses these issues by treating program generation as an iterative loop, breaking down complex reasoning into manageable steps.

The HopPG Framework

HopPG decomposes the reasoning process into four distinct modules that operate iteratively:

  1. Supporting Fact Retriever: This module selects the most relevant table or text passage based on the initial question and the execution result of the previous hop.
  2. Program Generator: Utilizing a BART-based architecture with a structure-aware reader, this module generates a program segment for the current hop only.
  3. Program Executor: A symbolic executor runs the generated program to produce an intermediate answer, such as a specific table cell or text span.
  4. Iteration Detector: By examining the outermost operation (e.g., COMPOSE or INTERSECT), this module determines whether further reasoning is required. If so, it triggers another iteration; otherwise, it returns the final answer.
Overview of the HopPG self-iterative framework.

This iterative approach allows the model to "narrow its gaze," focusing exclusively on information relevant to the immediate next step in the reasoning chain.

Experimental Setup

The researchers evaluated HopPG on two primary datasets:

  • MMQA (MultiModalQA): A large-scale dataset requiring reasoning over tables, text, and images.
  • MMQA-T²: A specialized subset curated by the authors to focus on the interplay between tables and text. This dataset includes detailed annotations for intermediate results, facilitating the creation of "pseudo-programs" for training under weak supervision.

Key Results and Insights

HopPG was benchmarked against UniRPG (a single-shot semantic parser) and Implicit-Decomp (a model using implicit semantic reasoning).

Performance Gains

On the MMQA-T² dataset, HopPG achieved an Exact Match (EM) score of 63.76 and an F1 score of 71.14, significantly outperforming UniRPG. The improvements were most notable in multi-hop questions, where HopPG's iterative nature provides a clear advantage.

Performance comparison of HopPG against baseline models on MMQA and MMQA-T² datasets.

Execution-Guided Retrieval

A core innovation of HopPG is using the answer of the first hop as a search query for the second. This "execution-guided" retrieval significantly improves the accuracy of the evidence provided to the generator for subsequent steps.

Robustness and Interpretability

The authors observed that HopPG exhibits a degree of error recovery; in approximately 60.2% of cases where the first-hop program was incorrect, the model still managed to reach the correct final answer. Furthermore, the generation of explicit programs offers high interpretability, allowing researchers to pinpoint exactly where a reasoning chain might fail.

Conclusion and Future Work

HopPG demonstrates that a "one step at a time" approach to program generation effectively handles the complexities of multi-hop QA over heterogeneous data. While the model shows promise, challenges remain regarding error propagation in longer reasoning chains and the dependency on detailed intermediate annotations for training. Future research will explore scaling to more hops and reducing the reliance on supervised intermediate data through reinforcement learning.

Summary updated

BibTeX
@misc{wang2023hoppg,
  author = {Yingyao Wang and Yongwei Zhou and Chaoqun Duan and Junwei Bao and Tiejun Zhao},
  title = {{HopPG: Self-Iterative Program Generation for Multi-Hop Question Answering over Heterogeneous Knowledge}},
  year = {2023},
  eprint = {2308.11257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.11257},
}
Figure