Understanding Unnatural Questions Improves Reasoning over Text

Xiao-Yu Guo, Yuan-Fang Li, Gholamreza Haffari

Abstract

Complex question answering (CQA) over raw text is a challenging task. A prominent approach to this task is based on the programmer-interpreter framework, where the programmer maps the question into a sequence of reasoning actions which is then executed on the raw text by the interpreter. Learning an effective CQA model requires large amounts of human-annotated data, consisting of the ground-truth sequence of reasoning actions, which is time-consuming and expensive to collect at scale. In this paper, we address the challenge of learning a high-quality programmer (parser) by projecting natural human-generated questions into unnatural machine-generated questions which are more convenient to parse. We firstly generate synthetic (question, action sequence) pairs by a data generator, and train a semantic parser that associates synthetic questions with their corresponding action sequences. To capture the diversity when applied to natural questions, we learn a projection model to map natural questions into their most similar unnatural questions for which the parser can work well. Without any natural training data, our projection model provides high-quality action sequences for the CQA task. Experimental results show that the QA model trained exclusively with synthetic data generated by our method outperforms its state-of-the-art counterpart trained on human-labeled data.

Introduction

Complex Question Answering (CQA) involves performing multi-step reasoning—such as counting, comparing dates, or filtering results—over raw text. Current state-of-the-art models, including Neural Module Networks (NMNs), typically employ a programmer-interpreter framework. In this setup, a "programmer" (or semantic parser) converts a natural language question into a structured sequence of actions (e.g., find -> filter -> count), which an "interpreter" then executes on the text.

The primary bottleneck in this approach is the "label scarcity" problem. Training the programmer requires a massive volume of human-annotated pairs of questions and their corresponding action sequences. Such annotations are tedious and expensive to produce at scale, limiting the robustness of reasoning engines across diverse text domains.

Methodology: The Simulation-to-Real Framework

To overcome the lack of annotated data, this research introduces a three-stage "simulation-to-real" approach that leverages synthetic, "unnatural" questions.

  1. Data Generator (Simulation Phase): An n-gram-based generator creates synthetic questions with known reasoning steps. These "unnatural" questions are structurally rigid but logically clear. Entities like names and dates are populated from actual Wikipedia paragraphs using NLP tools like spaCy.
  2. Specific Model Training: A semantic parser is trained exclusively on this synthetic dataset. The structural consistency of machine-generated questions allows the parser to learn the mapping to action sequences with high efficiency.
  3. Projection Model (To-Real Phase): To bridge the gap between structured synthetic data and messy natural language, a projection model is used. The most effective approach found was a classifier-based model that maps natural questions directly to the "canonical" reasoning paths mastered during the simulation phase.
The three-stage simulation-to-real framework: (1) Data generation, (2) Training a specific model on synthetic data, and (3) Projecting natural questions to the synthetic space.

The study utilizes the DROP (Discrete Reasoning Over Paragraphs) dataset, which focuses on Wikipedia-based questions requiring mathematical operations, counting, and sorting.

Key Results and Insights

The proposed method demonstrates that "unnatural" questions can serve as an ideal "clean room" for learning logic. By projecting natural questions onto these synthetic structures, the model implicitly transfers reasoning knowledge from a controlled simulation to real-world language.

Surprisingly, the model trained on synthetic data achieved superior results compared to the baseline trained on human-labeled data. This suggests that a well-designed synthetic generator can provide better coverage of the reasoning space than a limited set of human examples.

Comparison of F1 and Exact Match (EM) scores between the baseline and the proposed synthetic/natural projection methods.

As shown in the results table, the synthetic method achieved an F1 score of 78.3, surpassing the 77.4 baseline. When augmented with natural data, the performance further improved to 79.1. The projection classifier itself reached 93.2% accuracy when trained on synthetic data, proving the effectiveness of the "bridge" between natural and unnatural language.

Conclusion

While the "simulation-to-real" framework offers a powerful solution to label scarcity, it remains dependent on the quality and diversity of the data generator. If the n-gram templates fail to cover specific reasoning types, the model's performance may suffer. Future work will focus on improving the diversity of synthetic generators and refining the projection mechanism to further close the gap between machine logic and human expression.

Summary updated

Abstract

Complex question answering (CQA) over raw text is a challenging task. A prominent approach to this task is based on the programmer-interpreter framework, where the programmer maps the question into a sequence of reasoning actions which is then executed on the raw text by the interpreter. Learning an effective CQA model requires large amounts of human-annotated data,consisting of the ground-truth sequence of reasoning actions, which is time-consuming and expensive to collect at scale. In this paper, we address the challenge of learning a high-quality programmer (parser) by projecting natural human-generated questions into unnatural machine-generated questions which are more convenient to parse. We firstly generate synthetic (question,action sequence) pairs by a data generator, and train a semantic parser that associates synthetic questions with their corresponding action sequences. To capture the diversity when applied tonatural questions, we learn a projection model to map natural questions into their most similar unnatural questions for which the parser can work well. Without any natural training data, our projection model provides high-quality action sequences for the CQA task. Experimental results show that the QA model trained exclusively with synthetic data generated by our method outperforms its state-of-the-art counterpart trained on human-labeled data.
BibTeX
@inproceedings{guo2020understanding,
  author = {Xiao-Yu Guo and Yuan-Fang Li and Gholamreza Haffari},
  title = {{Understanding Unnatural Questions Improves Reasoning over Text}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.coling-main.434},
}
Figure