NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Teaching Machine Comprehension with Compositional Explanations

Qinyuan Ye, Xiao Huang, Elizabeth Boschee, Xiang Ren

Introduction

State-of-the-art Machine Reading Comprehension (MRC) models, such as BERT and ALBERT, have revolutionized natural language understanding. However, their success is predicated on massive amounts of human-annotated data—typically tens of thousands of (Question, Paragraph, Answer) triples. This "data hunger" makes deploying MRC systems in niche domains or low-resource languages prohibitively expensive and slow.

In contrast, humans learn with remarkable efficiency. A single rule-based explanation—such as "the answer to a 'When' question is usually a date found near the keywords"—can allow a human to generalize across countless instances. This research, presented at EMNLP 2020, proposes a framework to bridge this gap by teaching machines through compositional explanations.

The NMTeacher Framework

The researchers introduced Neural Module Teachers (NMTeachers), a system designed to convert a small set of human-provided explanations into a large-scale synthetic training corpus. The framework operates through a four-stage pipeline:

  1. Explanation Collection: Annotators provide semi-structured explanations rather than just highlighting answers. For example, for the question "What is the atomic number for Zinc?", an explanation might be: "X is 'atomic number'. Y is 'Zinc'. The answer is directly after X."
  2. Semantic Parsing: These natural language explanations are converted into executable logical forms using a semantic parser.
  3. Neural Module Teachers: These logical forms are executed by "Atomic Modules" (e.g., FIND for semantic similarity, FILL for syntactic matching, and COMPARE for spatial constraints).
  4. Soft Logic & Joint Training: To handle the inherent noise of natural language, the system employs "soft logic," where rules output confidence scores rather than binary truth values. These scores label unlabeled data to train a "Student" MRC model.
The NMTeacher framework overview, showing the transition from human explanations to trained student models.

Compositional Logic and "Softness"

The power of this approach lies in its compositionality. By breaking complex human logic into reusable modules like FIND and COMPARE, the system can interpret a wide variety of rules without requiring custom algorithms for every new explanation.

Furthermore, the transition from "hard" rules to "soft" probabilistic constraints allows the model to learn from "near misses." If a text segment almost matches a human-provided rule, the student model can still derive useful signal from it, making the system far more robust than traditional rule-based AI.

Experimental Results and Efficiency

The framework was evaluated on the SQuAD v1.1 and Natural Questions (NQ) benchmarks. The results demonstrate a staggering increase in annotation efficiency. On SQuAD, using just 26 explanations—which took approximately one hour to collect—the model achieved a 70.14% F1 score.

Comparison of F1 score vs. annotation time, highlighting the significant efficiency gains of NMTeacher over standard supervised learning.

To reach the same performance level using traditional labeling methods, an annotator would need to provide roughly 1,100 examples. This represents a 12x speedup in human effort. The performance gains were most pronounced in extreme low-resource settings, where a single high-quality explanation proved more valuable than dozens of raw examples.

Conclusion and Future Directions

The NMTeacher framework demonstrates that the quality of supervision—explaining the "why" behind an answer—can drastically reduce the quantity of data required. While the current system assumes the availability of unlabeled (Question, Context) pairs and focuses on fact-based QA, it opens the door for more sophisticated teaching methods in AI.

Future work may extend these compositional modules to handle multi-hop reasoning and non-factoid questions, further narrowing the gap between how humans teach and how machines learn.

Summary updated

BibTeX
@inproceedings{ye2020teaching,
  author = {Qinyuan Ye and Xiao Huang and Elizabeth Boschee and Xiang Ren},
  title = {{Teaching Machine Comprehension with Compositional Explanations}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.145},
}
Figure