Question Answering via Integer Programming over Semi-Structured Knowledge

Daniel Khashabi, Tushar Khot, Ashish Sabharwal, Peter Clark, Oren Etzioni, Dan Roth

Abstract

Answering science questions posed in natural language is an important AI challenge. Answering such questions often requires non-trivial inference and knowledge that goes beyond factoid retrieval. Yet, most systems for this task are based on relatively shallow Information Retrieval (IR) and statistical correlation techniques operating on large unstructured corpora. We propose a structured inference system for this task, formulated as an Integer Linear Program (ILP), that answers natural language questions using a semi-structured knowledge base derived from text, including questions requiring multi-step inference and a combination of multiple facts. On a dataset of real, unseen science questions, our system significantly outperforms (+14%) the best previous attempt at structured reasoning for this task, which used Markov Logic Networks (MLNs). It also improves upon a previous ILP formulation by 17.7%. When combined with unstructured inference methods, the ILP system significantly boosts overall performance (+10%). Finally, we show our approach is substantially more robust to a simple answer perturbation compared to statistical correlation methods.

Introduction

Modern Question Answering (QA) systems have achieved remarkable success in "factoid" retrieval, where answers can be found directly within a single sentence of a large corpus. However, elementary science questions frequently demand more than simple keyword matching; they require inference. For instance, determining that the longest day in New York occurs in June requires linking facts about New York's hemisphere, the nature of the summer solstice, and the timing of that solstice in the Northern Hemisphere.

While Information Retrieval (IR) and statistical methods like Pointwise Mutual Information (PMI) are powerful, they often struggle with these multi-step reasoning tasks. Conversely, formal logic approaches like Markov Logic Networks (MLNs) can be too brittle or computationally expensive for natural language. This paper introduces TableILP, a system designed to bridge this gap by performing structured reasoning over semi-structured tables.

The TableILP Approach

The core innovation of TableILP is framing QA as a subgraph optimization problem solved via Integer Linear Programming (ILP).

Knowledge Representation

Instead of raw text, the system utilizes semi-structured tables. These tables represent n-ary relations (e.g., columns for Country, Hemisphere, and Month of Summer Solstice), providing enough structure to guide inference without the overhead of full first-order logic.

Inference as Subgraph Optimization

TableILP treats the question, answer options, and available tables as a large graph. The goal is to find the "best" connected subgraph—a "support graph"—that links the question constituents to a specific answer option through table cells.

An example of a multi-step inference problem solved by chaining facts across multiple tables.

The ILP formulation enforces several constraints to ensure valid reasoning:

  • Connectivity: The support graph must be connected.
  • Sparsity: Limits are placed on the number of rows used from a single table to minimize noise.
  • Semantic Alignment: The system uses WordNet-based alignment and entailment scores to handle lexical variations (e.g., matching "canine" to "dog").

Experimental Setup

The system was evaluated using 237 non-diagram multiple-choice questions from the NY Regents 4th Grade Science Exams. The knowledge base consisted of a "Table Corpus" containing 65 manually or semi-automatically curated tables (approx. 5,000 rows) and 4 automatically extracted "Open IE" tables (2,600 rows). Baselines included standard IR and PMI solvers operating on large web and sentence corpora.

Results and Discussion

TableILP demonstrated significant improvements over previous structured reasoning methods. It achieved a 61.5% accuracy on the test set, outperforming the MLN baseline (47.5%) by 14%.

Performance comparison of different solvers and ensembles on the science exam dataset.

Key Insights

  • Complementary Strengths: TableILP and IR systems tend to fail on different types of questions. Combining them into an ensemble (TableILP + IR + PMI) yielded a peak performance of 69.0%, a 10.5% absolute improvement over IR alone.
  • Robustness: To test for "shallow" matching, the researchers performed a perturbation experiment, replacing incorrect answers with common but irrelevant words. While PMI performance dropped by 33%, TableILP only dropped by 12%, indicating it was performing genuine reasoning rather than simple keyword association.

Conclusion

TableILP represents a successful middle ground between shallow retrieval and rigid logic. By leveraging the natural structure of tables, it enables multi-step inference that is both effective and robust. Future work aims to address the "knowledge bottleneck" by improving automatic table extraction from scientific texts and scaling the ILP solver to handle even larger knowledge bases.

Summary updated

BibTeX
@inproceedings{khashabi2016question,
  author = {Daniel Khashabi and Tushar Khot and Ashish Sabharwal and Peter Clark and Oren Etzioni and Dan Roth},
  title = {{Question Answering via Integer Programming over Semi-Structured Knowledge}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2016},
  url = {https://openreview.net/forum?id=SJWUrEfOZH},
}
Figure