Skip to main content
QUICK REVIEW

[Paper Review] Semisupervised Autoencoder for Sentiment Analysis

Shuangfei Zhai, Zhongfei Mark Zhang|arXiv (Cornell University)|Dec 14, 2015
Topic ModelingComputer Science16 references49 citations
TL;DR

This paper proposes a semisupervised autoencoder that integrates label information into the autoencoder's loss function via Bregman Divergence, using a linear classifier's weights to guide reconstruction toward task-relevant features. The method significantly improves sentiment classification accuracy over baseline models by learning discriminative, low-dimensional representations that prioritize polarity-bearing words while reducing reliance on frequent but irrelevant terms.

ABSTRACT

In this paper, we investigate the usage of autoencoders in modeling textual data. Traditional autoencoders suffer from at least two aspects: scalability with the high dimensionality of vocabulary size and dealing with task-irrelevant words. We address this problem by introducing supervision via the loss function of autoencoders. In particular, we first train a linear classifier on the labeled data, then define a loss for the autoencoder with the weights learned from the linear classifier. To reduce the bias brought by one single classifier, we define a posterior probability distribution on the weights of the classifier, and derive the marginalized loss of the autoencoder with Laplace approximation. We show that our choice of loss function can be rationalized from the perspective of Bregman Divergence, which justifies the soundness of our model. We evaluate the effectiveness of our model on six sentiment analysis datasets, and show that our model significantly outperforms all the competing methods with respect to classification accuracy. We also show that our model is able to take advantage of unlabeled dataset and get improved performance. We further show that our model successfully learns highly discriminative feature maps, which explains its superior performance.

Motivation & Objective

  • To address the limitations of traditional autoencoders in text classification, where high-dimensional vocabularies and task-irrelevant words hinder performance.
  • To improve representation learning by incorporating label information directly into the autoencoder's reconstruction loss, making features more discriminative for sentiment classification.
  • To reduce bias from a single linear classifier by modeling classifier weights as a posterior distribution using Laplace approximation.
  • To justify the proposed loss function through the theoretical framework of Bregman Divergence, ensuring soundness and interpretability.
  • To demonstrate that the model effectively leverages both labeled and unlabeled data, improving performance without requiring manual feature engineering.

Proposed method

  • Train a linear classifier on labeled Bag-of-Words (BoW) representations to identify word weights correlated with sentiment.
  • Derive a Bregman Divergence-based loss function for the autoencoder using the classifier’s weights, prioritizing reconstruction of sentiment-relevant words.
  • Introduce a Bayesian prior over the classifier’s weights and apply Laplace approximation to marginalize over weight uncertainty, reducing bias in the loss function.
  • Construct a marginalized loss function for the autoencoder that reflects the expected reconstruction error under the posterior distribution of classifier weights.
  • Train the autoencoder using the derived loss function, enabling the model to learn compact, discriminative representations that emphasize polarity cues.
  • Use the learned hidden layer as the final document representation for downstream sentiment classification.

Experimental results

Research questions

  • RQ1Can incorporating label information into the autoencoder’s loss function improve representation quality for sentiment classification?
  • RQ2How does the proposed Bregman Divergence-based loss function compare to standard reconstruction losses in terms of classification accuracy?
  • RQ3To what extent can the model leverage unlabeled data to improve performance when labeled data is limited?
  • RQ4Does the model learn more discriminative features than unsupervised autoencoders, particularly focusing on sentiment-relevant words?
  • RQ5How robust is the model to the choice of the initial linear classifier, and does the Bayesian marginalization mitigate this sensitivity?

Key findings

  • The proposed model achieves significantly higher classification accuracy than traditional autoencoders, denoising autoencoders, and BoW baselines across six sentiment analysis datasets.
  • The model demonstrates strong generalization by improving performance when trained on both labeled and unlabeled data, confirming its effectiveness in semisupervised learning.
  • Visualization of learned features reveals that the model focuses on sentiment-carrying words such as 'amazing', 'worst', 'terrible', and 'excellent', while downplaying neutral or frequent words like 'movie' or 'actor'.
  • The use of Laplace approximation to marginalize over classifier weights reduces bias and leads to more stable and generalizable representations compared to using a single classifier.
  • The theoretical justification via Bregman Divergence confirms that the loss function is well-founded and aligns with information-theoretic principles of reconstruction.
  • The model outperforms MTC and recursive autoencoder approaches, particularly in handling full documents without requiring syntactic parsing or manifold invariance assumptions.

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.