Machine Reading Comprehension Classic: Singapore Management University Team Proposes Match-LSTM and Answer Pointer Model
In the field of natural language processing, machine reading comprehension aims to enable computers to read text and answer related questions like humans.
In the field of natural language processing, machine reading comprehension aims to enable computers to read text and answer related questions like humans. In 2016, Shuohang Wang and Jing Jiang from Singapore Management University published the paper "Machine Comprehension Using Match-LSTM and Answer Pointer," proposing an end-to-end neural architecture specifically designed to address challenges in the Stanford Question Answering Dataset (SQuAD). This dataset is characterized by answers that are not selected from fixed candidates but are arbitrary-length sequences extracted directly from the original text, posing significant difficulties for models at the time.
The core contribution of this paper lies in combining "matching" and "pointer" mechanisms. First, the authors adopted the Match-LSTM model previously developed for textual entailment tasks. In this model, the question is treated as a hypothesis and the paragraph as a premise. Through an attention mechanism, the model calculates weighted matching vectors between the question and the paragraph word by word, thereby capturing semantic alignment relationships between them. Second, to generate variable-length answers, the authors introduced the Pointer Network (Ptr-Net) proposed by Vinyals et al. Ptr-Net does not rely on a fixed vocabulary; instead, it uses an attention mechanism as a "pointer" to directly point to positions in the input sequence to output symbols. This design ensures that the answer must strictly come from the original text, aligning with the requirements of extractive question answering.
Based on these components, the paper proposes two specific application methods: the Sequence Model and the Boundary Model. The Sequence Model treats the answer as a series of independent integer indices, predicting the position of each token one by one; the Boundary Model more cleverly utilizes the continuity of answers in the original text, predicting only two integers representing the start and end positions of the answer, with all tokens in between automatically forming the answer. Experimental results showed that both models significantly outperformed the best baseline results based on logistic regression and handcrafted features by Rajpurkar et al. Among them, the Boundary Model achieved an Exact Match rate of 67.9% and an F1 score of 77.0% on the unseen test set, approaching the state-of-the-art maintained by Salesforce Research at the time (71.6% EM / 80.4% F1).