[Paper Review] Unsupervised Document Embedding With CNNs
This paper proposes a fully unsupervised convolutional neural network (CNN) model for document embedding that achieves state-of-the-art performance with a 10x speedup over RNN-based models due to its fully parallelizable architecture. The method uses stochastic forward prediction for training and captures long-range semantic dependencies through stacked convolutions with increasing receptive fields, producing compact, high-quality embeddings without labeled data.
We propose a new model for unsupervised document embedding. Leading existing approaches either require complex inference or use recurrent neural networks (RNN) that are difficult to parallelize. We take a different route and develop a convolutional neural network (CNN) embedding model. Our CNN architecture is fully parallelizable resulting in over 10x speedup in inference time over RNN models. Parallelizable architecture enables to train deeper models where each successive layer has increasingly larger receptive field and models longer range semantic structure within the document. We additionally propose a fully unsupervised learning algorithm to train this model based on stochastic forward prediction. Empirical results on two public benchmarks show that our approach produces comparable to state-of-the-art accuracy at a fraction of computational cost.
Motivation & Objective
- To develop a fully unsupervised document embedding model that avoids the sequential computation bottleneck of RNNs.
- To enable faster inference and training by leveraging the parallelizable nature of CNNs.
- To model long-range semantic dependencies in documents through stacked convolutions with expanding receptive fields.
- To train the model using a simple, scalable unsupervised objective based on stochastic forward prediction.
- To achieve competitive performance on downstream NLP tasks without requiring labeled data or iterative optimization during inference.
Proposed method
- The model uses a CNN architecture with multiple convolutional layers, each having progressively larger receptive fields to capture long-range dependencies in documents.
- Word representations are fed into the network as input, and each layer applies convolutional filters followed by non-linear activation and pooling (max or average).
- The final pooled representation from the last convolutional layer is used as the document embedding.
- A novel unsupervised learning objective is introduced: stochastic forward prediction, where the model predicts future word representations based on a randomly masked or corrupted version of the input sequence.
- The training objective is optimized using backpropagation with minimal hyperparameter tuning, enabling efficient and scalable training.
- The model is trained end-to-end on unlabeled text, with no need for iterative optimization during inference.
Experimental results
Research questions
- RQ1Can a CNN-based architecture achieve competitive document embedding performance while being fully parallelizable, unlike RNNs?
- RQ2Does stochastic forward prediction as an unsupervised objective enable effective learning of semantic structure in documents?
- RQ3Can the model learn fine-grained sentiment and topic distinctions without any labeled data?
- RQ4How does the model’s performance compare to state-of-the-art unsupervised models like doc2vec and skip-thought in terms of accuracy and inference speed?
- RQ5To what extent can the model capture long-range semantic dependencies through stacked convolutions with increasing receptive fields?
Key findings
- The CNN-based model achieved 88.71% accuracy on the 2-class sentiment classification task and 51.73% on the 5-class task on the Amazon dataset, matching or exceeding state-of-the-art baselines.
- The model demonstrated a 10x speedup in inference time compared to RNN-based models due to its fully parallelizable architecture.
- t-SNE visualization of IMDB test set embeddings showed clear linear separability between positive and negative sentiment classes, indicating effective semantic encoding.
- Retrieval results on the Amazon dataset showed that retrieved reviews were highly relevant in both content and sentiment, even when products differed, confirming the model learned topic and sentiment concepts unsupervised.
- Max pooling outperformed padding in handling variable-length inputs, suggesting it should be the default choice for document embedding models.
- The model produced high-quality embeddings with only 300 dimensions, achieving strong performance comparable to much larger models, demonstrating efficiency and compactness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.