Sequence-to-sequence (Seq2seq) models have played an important role in the recent success of various natural language processing methods, such as machine translation, text summarization, and speech recognition. However, current Seq2seq models have trouble preserving global latent information from a long sequence of words. Variational autoencoder (VAE) alleviates this problem by learning a continuous semantic space of the input sentence. However, it does not solve the problem completely. In this paper, we propose a new recurrent neural network (RNN)-based Seq2seq model, RNN semantic variational autoencoder (RNN--SVAE), to better capture the global latent information of a sequence of words. To reflect the meaning of words in a sentence properly, without regard to its position within the sentence, we construct a document information vector using the attention information between the final state of the encoder and every prior hidden state. Then, the mean and standard deviation of the continuous semantic space are learned by using this vector to take advantage of the variational method. By using the document information vector to find the semantic space of the sentence, it becomes possible to better capture the global latent feature of the sentence. Experimental results of three natural language tasks (i.e., language modeling, missing word imputation, paraphrase identification) confirm that the proposed RNN--SVAE yields higher performance than two benchmark models.
In this paper, we analyze several neural network designs (and their variations) for sentence pair modeling and compare their performance extensively across eight datasets, including paraphrase identification, semantic textual similarity, natural language inference, and question answering tasks. Although most of these models have claimed state-of-the-art performance, the original papers often reported on only one or two selected datasets. We provide a systematic study and show that (i) encoding contextual information by LSTM and inter-sentence interactions are critical, (ii) Tree-LSTM does not help as much as previously claimed but surprisingly improves performance on Twitter datasets, (iii) the Enhanced Sequential Inference Model is the best so far for larger datasets, while the Pairwise Word Interaction Model achieves the best performance when less data is available. We release our implementations as an open-source toolkit.
태깅, 기계 독해(machine reading comprehension) 등 많은 자연어 처리(NLP) 태스크는 심각한 데이터 불균형 문제에 직면한다. 부정 예제가 긍정 예제보다 현저히 많으며, 방대한 수의 배경 예제(또는 easy-negative 예제)가 학습을 압도한다. 가장 널리 사용되는 교차 엔트로피(CE) 기준은 실제로 정확도 지향적 목적 함수이며, 따라서 학습과 테스트 사이에 불일치를 만든다. 학습 시에는 각 학습 인스턴스가 목적 함수에 동일하게 기여하지만, 테스트 시에는 F1 점수가 긍정 예제에 더 큰 비중을 둔다. 본 논문에서는 데이터 불균형 NLP 태스크에서 표준 교차 엔트로피 목적 함수 대신 Dice 손실을 사용할 것을 제안한다. Dice 손실은 Sorensen-Dice 계수 또는 Tversky 지수에 기반하며, 거짓 양성과 거짓 음성에 유사한 중요도를 부여하고 데이터 불균형 문제에 더 강건하다. 학습에서 easy-negative 예제의 지배적 영향을 더 완화하기 위해, 학습 예제에 동적으로 조정된 가중치를 부여하여 easy-negative 예제의 비중을 낮추는 방법을 제안한다. 이론적 분석은 이 전략이 평가의 F1 점수와 학습의 Dice 손실 사이의 격차를 줄임을 보여준다. 제안된 학습 목적 함수로 광범위한 데이터 불균형 NLP 태스크에서 유의미한 성능 향상을 관찰하였다. 특히 품사 태깅 태스크에서 CTB5, CTB6, UD1.4에 대해 SOTA 결과를 달성하였고, 개체명 인식 태스크에서 CoNLL03, OntoNotes5.0, MSRA, OntoNotes4.0에 대해 SOTA 결과를 달성하였으며, 기계 독해 및 패러프레이즈 식별 태스크에서도 경쟁력 있는 결과를 얻었다.