Skip to main content
QUICK REVIEW

[Paper Review] Learning Generic Sentence Representations Using Convolutional Neural Networks

Zhe Gan, Yunchen Pu|arXiv (Cornell University)|Nov 23, 2016
Topic ModelingComputer Science52 references16 citations
TL;DR

This paper proposes a CNN-LSTM encoder-decoder model that learns generic sentence representations from large-scale unlabeled text using a convolutional neural network (CNN) as the sentence encoder and a long short-term memory (LSTM) network as the decoder. Trained on novels, the model achieves state-of-the-art performance on multiple NLP tasks without fine-tuning, outperforming skip-thought vectors in several benchmarks, including semantic relatedness and image-sentence ranking.

ABSTRACT

We propose a new encoder-decoder approach to learn distributed sentence representations that are applicable to multiple purposes. The model is learned by using a convolutional neural network as an encoder to map an input sentence into a continuous vector, and using a long short-term memory recurrent neural network as a decoder. Several tasks are considered, including sentence reconstruction and future sentence prediction. Further, a hierarchical encoder-decoder model is proposed to encode a sentence to predict multiple future sentences. By training our models on a large collection of novels, we obtain a highly generic convolutional sentence encoder that performs well in practice. Experimental results on several benchmark datasets, and across a broad range of applications, demonstrate the superiority of the proposed model over competing methods.

Motivation & Objective

  • To develop a generic sentence representation model applicable across diverse NLP tasks without task-specific fine-tuning.
  • To address the inefficiency of training separate models for each task by learning a single, reusable sentence encoder.
  • To explore the effectiveness of CNNs as sentence encoders in contrast to RNN-based approaches like skip-thought vectors.
  • To improve long-range dependency modeling by introducing a hierarchical encoder-decoder structure for paragraph continuation.
  • To evaluate the generalization capability of the learned representations on downstream tasks using linear classifiers.

Proposed method

  • Use a CNN encoder to map input sentences into fixed-length continuous vectors via convolutional and pooling operations on word embeddings.
  • Employ an LSTM decoder to reconstruct the input sentence (autoencoder), predict the next sentence (future predictor), or jointly decode both (composite model).
  • Train the model end-to-end using a sequence-to-sequence objective with cross-entropy loss on sentence reconstruction and future sentence prediction.
  • Introduce a hierarchical CNN-LSTM model that encodes a sentence to predict multiple future sentences, modeling paragraph-level dependencies.
  • Use fixed word embeddings during fine-tuning on downstream tasks, avoiding retraining the sentence encoder.
  • Apply the trained CNN encoder as a feature extractor for linear classifiers on benchmark datasets without further adaptation.

Experimental results

Research questions

  • RQ1Can a CNN-based sentence encoder, combined with an LSTM decoder, learn generic sentence representations that generalize across diverse NLP tasks?
  • RQ2How does the performance of the proposed CNN-LSTM model compare to skip-thought vectors on semantic relatedness, paraphrase detection, and image-sentence ranking?
  • RQ3Does incorporating longer context windows via a hierarchical encoder-decoder model improve modeling of inter-sentence dependencies?
  • RQ4Can the CNN encoder generalize effectively when used as a fixed feature extractor on downstream tasks without fine-tuning?
  • RQ5Does using a CNN instead of an RNN as the sentence encoder yield more discriminative or robust sentence representations?

Key findings

  • The CNN-LSTM autoencoder model achieved a Recall@1 score of 0.8284 on the COCO image-sentence ranking task, outperforming the skip-thought model’s 0.8477 in the same setting when using fixed embeddings.
  • The hierarchical CNN-LSTM model achieved a Recall@1 of 0.8352 and a median rank of 1.0 on the COCO dataset, matching the performance of the best baseline models.
  • On the SICK semantic relatedness benchmark, the proposed model achieved a Pearson correlation of 0.8533 and Spearman’s rho of 0.7891, outperforming the combine-skip model from Kiros et al. (2015).
  • The composite model achieved a paraphrase detection F1 score of 0.8434, surpassing the best results from task-independent methods on the MSRP dataset.
  • The CNN encoder trained on novels generalized effectively to downstream tasks, achieving competitive or superior results across 8 benchmarks without any fine-tuning.
  • The use of fixed word embeddings during downstream evaluation led to better performance than trainable embeddings, suggesting the encoder captures robust, transferable features.

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.