Skip to main content
QUICK REVIEW

[Paper Review] Sogou Machine Reading Comprehension Toolkit

Jindou Wu, Yunlun Yang|arXiv (Cornell University)|Mar 28, 2019
Topic ModelingComputer Science18 references6 citations
TL;DR

This paper introduces the Sogou Machine Reading Comprehension Toolkit (SMRC), a TensorFlow-based framework that accelerates the development of neural machine reading comprehension models by providing unified dataset readers, a flexible preprocessing pipeline, reusable neural components, and built-in implementations of state-of-the-art models like BERT, BiDAF, and QANet. The toolkit achieves competitive performance, reproducing SQuAD 1.0 results within 0.1–0.3 F1/EM points of original papers and enabling rapid prototyping and model comparison.

ABSTRACT

Machine reading comprehension have been intensively studied in recent years, and neural network-based models have shown dominant performances. In this paper, we present a Sogou Machine Reading Comprehension (SMRC) toolkit that can be used to provide the fast and efficient development of modern machine comprehension models, including both published models and original prototypes. To achieve this goal, the toolkit provides dataset readers, a flexible preprocessing pipeline, necessary neural network components, and built-in models, which make the whole process of data preparation, model construction, and training easier.

Motivation & Objective

  • To address the inefficiency and inconsistency in reproducing published machine reading comprehension models due to custom codebases and differing training environments.
  • To streamline the development of new models by providing reusable components, preprocessing pipelines, and built-in model implementations.
  • To support diverse datasets including SQuAD 1.0, SQuAD 2.0, CoQA, and CMRC2018, enabling cross-dataset evaluation and comparison.
  • To facilitate rapid prototyping by offering modular, extensible components such as vocabulary builders, feature extractors, and batch generators.
  • To integrate state-of-the-art models like BERT, ELMo, and QANet with high-level APIs for easy training and evaluation.

Proposed method

  • The toolkit uses a pipeline architecture with four core modules: Dataset Reader, Data Preprocessing, Model Construction, and Model Training.
  • Dataset readers are provided for SQuAD 1.0, SQuAD 2.0, CoQA, and CMRC2018, converting raw data into standardized, serializable data objects with uniform field names.
  • The preprocessing pipeline includes a vocabulary builder that supports word and character-level embeddings, and can load pretrained embeddings like GloVe and fastText.
  • Linguistic features such as POS, NER, TF, and exact matching are extracted via a modular feature extractor that builds vocabularies for discrete features.
  • The batch generator uses TensorFlow Dataset API to efficiently parallelize data transformation, apply dynamic padding, and batch tensors with consistent shapes.
  • Model construction supports both custom architectures using functional API-wrapped components and built-in models like BiDAF, DrQA, QANet, and BERT, with configurable attention and embedding layers.

Experimental results

Research questions

  • RQ1Can a unified, modular toolkit reduce the time and effort required to reproduce and compare published machine reading comprehension models?
  • RQ2To what extent can the toolkit’s preprocessing and training pipeline maintain compatibility and performance across diverse datasets like SQuAD 1.0, SQuAD 2.0, CoQA, and CMRC2018?
  • RQ3How do different word embeddings (e.g., GloVe, ELMo, fastText) affect model performance on standard benchmarks such as SQuAD 1.0 and CoQA?
  • RQ4Can the toolkit’s integration of pretrained contextual embeddings (e.g., BERT, ELMo) achieve performance close to original implementations?
  • RQ5How effective is the toolkit in enabling rapid prototyping of new models through reusable components and flexible architecture?

Key findings

  • The toolkit successfully reproduces SQuAD 1.0 results with BiDAF achieving 77.3 F1 and 67.7 EM, matching the original paper’s reported scores.
  • When fine-tuned on SQuAD 1.0, BERT-Base achieves 88.3 F1 and 80.6 EM, closely aligning with the original paper’s 88.5 F1 and 80.8 EM.
  • On SQuAD 2.0, BERT-Base achieves 75.9 F1 and 73.0 EM, slightly outperforming the original paper’s reported 75.1 F1 and 72.0 EM.
  • The integration of ELMo consistently improves performance: DrQA with ELMo reaches 83.1 F1 and 74.4 EM on SQuAD 1.0, compared to 78.9 F1 and 69.4 EM with random embeddings.
  • On CoQA, BERT-Base with answer verification achieves 79.5 F1, outperforming the original BiDAF++ baseline of 69.2 F1.
  • The toolkit’s BiDAF implementation on CMRC2018 achieves 57.01 F1 and 35.0 EM, establishing a strong baseline for Chinese MRC.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.