Encoding Explanatory Knowledge for Zero-shot Science Question Answering

Zili Zhou, Marco Valentino, Donal Landers, André FreitasarXiv 2021

Abstract

Traditional Question Answering (QA) models often struggle with the multi-hop reasoning required for scientific domains, frequently relying on shallow distributional semantics. This paper introduces N-XKT (Neural encoding based on eXplanatory Knowledge Transfer), a method designed to improve science QA by explicitly pre-training models on structured explanatory facts. By "triplifying" natural language explanations into subject-predicate-object formats, N-XKT demonstrates significant gains in zero-shot generalization and faster convergence during fine-tuning on complex reasoning tasks.

Introduction

Science exams present a unique challenge for AI: they require connecting disparate facts—such as "Graphite is a mineral" and "Graphite is used for pencil leads"—to solve problems. Standard models often fail to generalize to "out-of-distribution" examples where the context changes but the underlying scientific principles remain constant. N-XKT addresses this by asking whether the "logic" of scientific explanations can be transferred directly into a model's neural representations before it encounters specific questions.

Methodology

The N-XKT framework employs a two-stage neural encoding mechanism:

  1. Explanatory Knowledge Acquisition (EKA): Semi-structured facts from the WorldTree corpus are mapped into (subject, predicate, object) triples. For instance, "mineral graphite is used for making pencil lead" becomes <'mineral graphite', 'is used for', 'making pencil lead'>. The model (BERT) is then trained to predict masked elements within these triples, forcing it to encode relational scientific knowledge.
  2. Cloze-style Question Answering: Multiple-choice QA is reframed as a "cloze" task. The model completes a question with the correct candidate answer, treating the correct choice as a positive sample and others as negatives.
Overview of the N-XKT framework, illustrating the stages of triplification, pre-training, and question answering.

The resulting model can be deployed in a zero-shot setting or serve as a robust initialization for further fine-tuning.

Experimental Results

The authors evaluated N-XKT across several benchmark datasets, including WorldTree V2.0, the AI2 Reasoning Challenge (ARC), and OpenbookQA.

Zero-shot Performance

N-XKT showed marked superiority in zero-shot scenarios. On the ARC-Easy dataset, the N-XKT (K+Q base) configuration achieved 57.98% accuracy, significantly outperforming the Information Retrieval (BM25) baseline of 50.00%. On the more difficult ARC-Challenge set, it reached 35.87%, surpassing both the IR baseline (31.14%) and vanilla BERT models.

Fine-tuning and Scaling

When fine-tuned on OpenbookQA, N-XKT reached 56.56%, a notable improvement over the base BERT fine-tuning result of 53.16%. Furthermore, the authors observed that N-XKT models converge much faster than "pure" BERT models during the fine-tuning phase.

Performance comparison of N-XKT variants against baselines across multiple science QA datasets.

Discussion and Key Insights

Ablation studies revealed that "Retrieval" category facts—those expressing taxonomic relations (e.g., "X is a kind of Y")—had the most significant impact on generalization, providing the necessary "scaffolding" for reasoning. However, the best results were achieved by combining all fact categories (Retrieval, Inference-supporting, and Complex Inference), indicating a synergy between different types of scientific knowledge.

Conclusion

N-XKT demonstrates that implicitly encoding structured explanatory knowledge into neural weights significantly enhances a model's ability to perform scientific reasoning. While currently limited by the scope of the WorldTree corpus and the simplicity of triple-based representations, this approach paves the way for more data-efficient and generalizable science QA systems. Future work will explore expanding knowledge coverage and developing more sophisticated representation formats for complex scientific processes.

Summary updated

Abstract

This paper describes N-XKT (Neural encoding based on eXplanatory Knowledge Transfer), a novel method for the automatic transfer of explanatory knowledge through neural encoding mechanisms. We demonstrate that N-XKT is able to improve accuracy and generalization on science Question Answering (QA). Specifically, by leveraging facts from background explanatory knowledge corpora, the N-XKT model shows a clear improvement on zero-shot QA. Furthermore, we show that N-XKT can be fine-tuned on a target QA dataset, enabling faster convergence and more accurate results. A systematic analysis is conducted to quantitatively analyze the performance of the N-XKT model and the impact of different categories of knowledge on the zero-shot generalization task.
BibTeX
@misc{zhou2021encoding,
  author = {Zili Zhou and Marco Valentino and Donal Landers and André Freitas},
  title = {{Encoding Explanatory Knowledge for Zero-shot Science Question Answering}},
  year = {2021},
  eprint = {2105.05737},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.05737},
}
Figure