Sentence Simplification with Memory-Augmented Neural Networks
Tu Vu, Baotian Hu, Tsendsuren Munkhdalai, Hong Yu
Introduction
The goal of sentence simplification is to compose complex sentences into simpler ones so that they are more comprehensible and accessible, while still retaining the original information content and meaning. Sentence simplification has a number of practical applications. On one hand, it provides reading aids for people with limited language proficiency Watanabe et al. (2009); Siddharthan (2003), or for patients with linguistic and cognitive disabilities Carroll et al. (1999). On the other hand, it can improve the performance of other NLP tasks Chandrasekar et al. (1996); Knight and Marcu (2000); Beigman Klebanov et al. (2004).
Prior work has explored monolingual machine translation (MT) approaches, utilizing corpora of simplified texts, e.g., Simple English Wikipedia (SEW), and making use of statistical MT models, such as phrase-based MT (PBMT) Štajner et al. (2015); Coster and Kauchak (2011); Wubben et al. (2012), tree-based MT (TBMT) Zhu et al. (2010); Woodsend and Lapata (2011), or syntax-based MT (SBMT) Xu et al. (2016).
Inspired by the success of neural MT Sutskever et al. (2014); Cho et al. (2014), recent work has started exploring neural simplification with sequence to sequence (Seq2seq) models, also referred to as encoder-decoder models. Nisioi et al. Nisioi et al. (2017) implemented a standard LSTM-based Seq2seq model and found that they outperform PBMT, SBMT, and unsupervised lexical simplification approaches. Zhang and Lapata Zhang and Lapata (2017) viewed the encoder-decoder model as an agent and employed a deep reinforcement learning framework in which the reward has three components capturing key aspects of the target output: simplicity, relevance, and fluency.
The common practice for Seq2seq models is to use recurrent neural networks (RNNs) with Long Short-Term Memory (LSTM, Hochreiter and Schmidhuber, 1997) or Gated Recurrent Unit (GRU, Cho et al., 2014) for the encoder and decoder Nisioi et al. (2017); Zhang and Lapata (2017). These architectures were designed to be capable of memorizing long-term dependencies across sequences. Nevertheless, their memory is typically small and might not be enough for the simplification task, where one is confronted with long and complicated sentences.
In this study, we go beyond the conventional LSTM/GRU-based Seq2seq models and propose to use a memory-augmented RNN architecture called Neural Semantic Encoders (NSE). This architecture has been shown to be effective in a wide range of NLP tasks Munkhdalai and Yu (2017). The contribution of this paper is twofold:
(1) First, we present a novel simplification model which is, to the best of our knowledge, the first model that use memory-augmented RNN for the task. We investigate the effectiveness of neural Seq2seq models when different neural architectures for the encoder are considered. Our experiments reveal that the NseLstm model that uses an NSE as the encoder and an LSTM as the decoder performed the best among these models, improving over strong simplification systems. (2) Second, we perform an extensive evaluation of various approaches proposed in the literature on different datasets. Results of both automatic and human evaluation show that our approach is remarkably effective for the task, significantly reducing the reading difficulty of the input, while preserving grammaticality and the original meaning. We further discuss some advantages and disadvantages of these approaches.
Neural Sequence to Sequence Models
Our approach is based on an attention-based Seq2seq model Bahdanau et al. (2015) (Figure 1). Given a complex source sentence , the model learns to generate its simplified version . The encoder reads through and computes a sequence of hidden states :
,
where is a non-linear activation function (e.g., LSTM), is the hidden state at time . Each time the model generates a target word , the decoder looks at a set of positions in the source sentence where the most relevant information is located. Specifically, another non-linear activation function is used for the decoder where the hidden state at time is computed by:
.
Here, the context vector is computed as a weighted sum of the hidden vectors :
, ,
where is the dot product of two vectors. Generation is conditioned on and all the previously generated target words :
,
,
where is some non-linear function. The training objective is to minimize the cross-entropy loss of the training source-target pairs.
2 Neural Semantic Encoders
,
,
,
Here, is the row of the memory matrix at time , . Next, a write function is used to map to the encoder output space:
,
NSE gives us unrestricted access to the entire source sequence stored in the memory. As such, the encoder may attend to relevant words when encoding each word. The sequence is then used as the sequence in Section 2.1.
3 Decoding
We differ from the approach of Zhang et al. Zhang and Lapata (2017) in the sense that we implement both a greedy strategy and a beam-search strategy to generate the target sentence. Whereas the greedy decoder always chooses the simplification candidate with the highest log-probability, the beam-search decoder keeps a fixed number (beam) of the highest scoring candidates at each time step. We report the best simplification among the outputs based on automatic evaluation measures.
Experimental Setup
Following Zhang and Lapata (2017), we experiment on three simplification datasets, namely: (1) Newsela Xu et al. (2015), a high-quality simplification corpus of news articles composed by Newselahttps://newsela.com professional editors for children at multiple grade levels. We used the split of the data in Zhang and Lapata (2017), i.e., 94,208/1,129/1,077 pairs for train/dev/test. (2) WikiSmall Zhu et al. (2010), which contains aligned complex-simple sentence pairs from English Wikipedia (EW) and SEW. The dataset has 88,837/205/100 pairs for train/dev/test. (3) WikiLarge Zhang and Lapata (2017), a larger corpus in which the training set is a mixture of three Wikipedia datasets in Zhu et al. (2010); Woodsend and Lapata (2011); Kauchak (2013), and the development and test sests are complex sentences taken from WikiSmall, each has 8 simplifications written by Amazon Mechanical Turk workers Xu et al. (2016). The dataset has 296,402/2,000/359 pairs for train/dev/test. Table 1 provides statistics on the training sets.
2 Models and Training Details
We implemented two attention-based Seq2seq models, namely: (1) LstmLstm: the encoder is implemented by two LSTM layers; (2) NseLstm: the encoder is implemented by NSE. The decoder in both cases is implemented by two LSTM layers. The computations for a single model are run on an NVIDIA Titan-X GPU. For all experiments, our models have 300-dimensional hidden states and 300-dimensional word embeddings. Parameters were initialized from a uniform distribution [-0.1, 0.1). We used the same hyperparameters across all datasets. Word embeddings were initialized either randomly or with Glove vectors Pennington et al. (2014) pre-trained on Common Crawl data (840B tokens), and fine-tuned during training. We used a vocabulary size of 20K for Newsela, and 30K for WikiSmall and WikiLarge. Our models were trained with a maximum number of 40 epochs using Adam optimizer Kingma and Ba (2015) with step size for LstmLstm, and for NseLstm, the exponential decay rates . The batch size is set to 32. We used dropout Srivastava et al. (2014) for regularization with a dropout rate of 0.3. For beam search, we experimented with beam sizes of 5 and 10. Following Jean et al. (2015), we replaced each out-of-vocabulary token with the source word with the highest alignment score , i.e., .
Our models were tuned on the development sets, either with BLEU Papineni et al. (2002) that scores the output by counting -gram matches with the reference, or SARI Xu et al. (2016) that compares the output against both the reference and the input sentence. Both measures are commonly used to automatically evaluate the quality of simplification output. We noticed that SARI should be used with caution when tuning neural Seq2seq simplification models. Since SARI depends on the differences between a system’s output and the input sentence, large differences may yield very good SARI even though the output is ungrammatical. Thus, when tuning with SARI, we ignored epochs in which the BLEU score of the output is too low, using a threshold . We set to 22 on Newsela, 33 on WikiSmall, and 77 on WikiLarge.
3 Comparing Systems
We compared our models, either tuned with BLEU (-B) or SARI (-S), against systems reported in Zhang and Lapata (2017), namely Dress, a deep reinforcement learning model, Dress-Ls, a combination of Dress and a lexical simplification model Zhang and Lapata (2017), Pbmt-R, a PBMT model with dissimilarity-based re-ranking Wubben et al. (2012), Hybrid, a hybrid semantic-based model that combines a simplification model and a monolingual MT model Narayan and Gardent (2014), and Sbmt-Sari, a SBMT model with simplification-specific components. Xu et al. (2016).
4 Evaluation
We measured BLEU, and SARI at corpus-level following Zhang and Lapata (2017). In addition, we also evaluated system output by eliciting human judgments. Specifically, we randomly selected 40 sentences from each test set, and included human reference simplifications and corresponding simplifications from the systems aboveThe outputs of comparison systems are available at https://github.com/XingxingZhang/dress.. We then asked three volunteerstwo native English speakers and one non-native fluent English speaker to rate simplifications with respect to Fluency (the extent to which the output is grammatical English), Adequacy (the extent to which the output has the same meaning as the input sentence), and Simplicity (the extent to which the output is simpler than the input sentence) using a five point Likert scale.
Results and Discussions
The results of the automatic evaluation are displayed in Table 2. We first discuss the results on Newsela that contains high-quality simplifications composed by professional editors. In terms of BLEU, all neural models achieved much higher scores than Pbmt-R and Hybrid. NseLstm-B scored highest with a BLEU score of 26.31. With regard to SARI, NseLstm-S scored best among neural models (29.58) and came close to the performance of Hybrid (30.00). This indicates that NSE offers an effective means to better encode complex sentences for sentence simplification.
On WikiSmall, Hybrid – the current state-of-the-art – achieved best BLEU (53.94) and SARI (30.46) scores. Among neural models, NseLstm-B yielded the highest BLEU score (53.42), while NseLstm-S performed best on SARI (29.75). On WikiLargeHere, BLEU scores are much higher compared to Newsela and WikiSmall since there are 8 reference simplifications for each input sentence in the test set., again, NseLstm-B had the highest BLEU score of 92.02. Sbmt-Sari – that was trained on a huge corpus of 106M sentence pairs and 2B words – scored highest on SARI with 39.96, followed by Dress-Ls (37.27), Dress (37.08), and NseLstm-S (36.88).
2 Human Judgments
The results of human judgments are displayed in Table 3. On Newsela, NseLstm-B scored highest on Fluency. Pbmt-R was significantly better than all other systems on Adequacy while LstmLstm-S performed best on Simplicity. NseLstm-B did very well on both Adequacy and Simplicity, and was best in terms of Average. Example model outputs on Newsela are provided in Table 4.
On WikiSmall, NseLstm-B performed best on both Fluency and Adequacy. On WikiLarge, LstmLstm-B achieved the highest Fluency score while NseLstm-B received the highest Adequacy score. In terms of Simplicity and Average, NseLstm-S outperformed all other systems on both WikiSmall and WikiLarge.
As shown in Table 3, neural models often outperformed traditional systems (Pbmt-R, Hybrid, Sbmt-Sari) on Fluency. This is not surprising given the recent success of neural Seq2seq models in language modeling and neural machine translation Zaremba et al. (2014); Jean et al. (2015). On the downside, our manual inspection reveals that neural models learn to perform copying very well in terms of rewrite operations (e.g., copying, deletion, reordering, substitution), often outputting the same or parts of the input sentence.
Finally, as can be seen in Table 3, Reference scored lower on Adequacy compared to Fluency and Simplicity on Newsela. On Wikipedia-based datasets, Reference obtained high Adequacy scores but much lower Simplicity scores compared to Newsela. This supports the assertion by previous work Xu et al. (2015) that SEW has a large proportion of inadequate simplifications.
3 Correlations
Table 5 shows the correlations between the scores assigned by humans and the automatic evaluation measures. There is a positive significant correlation between Fluency and Adequacy (0.69), but a negative significant correlation between Adequacy and Simplicity (-0.64). BLEU correlates well with Fluency (0.63) and Adequacy (0.90) while SARI correlates well with Simplicity (0.73). BLEU and SARI show a negative significant correlation (-0.54). The results reflect the challenge of managing the trade-off between Fluency, Adequacy and Simplicity in sentence simplification.
Conclusions
In this paper, we explore neural Seq2seq models for sentence simplification. We propose to use an architecture with augmented memory capacities which we believe is suitable for the task, where one is confronted with long and complex sentences. Results of both automatic and human evaluation on different datasets show that our model is capable of significantly reducing the reading difficulty of the input, while performing well in terms of grammaticality and meaning preservation.
Acknowledgements
We would like to thank Emily Druhl, Jesse Lingeman, and the UMass BioNLP team for their help with this work. We also thank Xingxing Zhang, Sergiu Nisioi for valuable discussions. The authors would like to acknowledge the reviewers for their thoughtful comments and suggestions.