# Deep Learning for Sentiment Analysis : A Survey

Deep learning models for sentiment analysis are surveyed by task

Lei Zhang, Shuai Wang, Bing Liu · arXiv · 2018-1-24

- **Problem** Earlier surveys cover feature-based and lexicon methods, so the newer neural work for sentiment analysis lacks a single overview.
- **Method** The authors explain neural building blocks first, then map them onto sentiment tasks at word, sentence, document and aspect level.
- **Results** The survey collects cited deep sentiment results across document, sentence and aspect levels.

## Why sentiment work needs a map of deep models

Opinion data now sits in reviews, forums, blogs and micro-blogs, in volumes no earlier era had. That volume keeps the field busy, and sentiment work now reaches marketing, finance, political science and history. Classic methods used SVMs, Maximum Entropy and Naïve Bayes on hand-built feature combinations, alongside lexicon and syntactic rules.

Earlier surveys cover those methods well, so the newer neural work is the part that lacks a single overview.

Deep learning produced strong results in computer vision and speech recognition before it reached NLP. Sentiment researchers adopted it quickly, and the neural models they built now sit across many separate papers. So the authors first explain the neural building blocks and then map their use onto sentiment tasks.

## How a feedforward network turns inputs into outputs

The key idea is simple: stack layers of units, and learn by changing the weights on the connections between them. In a feedforward network, each hidden neuron takes the outputs of the previous layer, forms a weighted sum with a bias, and passes the result through an activation function. Written as \\( f(Wx) \\), \\( W \\) holds the connection weights, \\( b \\) is the bias and \\( f \\) is the activation, which is normally non-linear.

Without a non-linear \\( f \\), stacked layers would collapse into a single linear map.

Sigmoid squashes any real value into the range 0 to 1, which fits a firing-rate reading of a neuron. Its activations saturate near 0 or 1, where gradients are almost zero, and its output isn't zero-centred. Tanh maps values to the range -1 to 1, so it is often preferred in practice. ReLU outputs the input when it is positive and zero otherwise, which makes it cheap to compute and quick to converge.

For classification the output layer uses softmax, which maps K real values to K numbers in (0, 1) that sum to 1. Training minimises cross-entropy loss with stochastic gradient descent and backpropagation, which computes gradients from the top layer downward with the chain rule. Each update uses one training example, so the loss fluctuates, and that noise can help the search escape poor local minima.

Training repeats this refinement until stopping criteria are met.

## Recurrent, gated and attention models for word order

A recurrent network reads a sentence one word at a time and reuses the same weights at every step. Each hidden state is computed from the previous state and the current input, so it holds a memory of earlier words. A six-word sentence unfolds into six time steps, one for each word. Sharing parameters keeps the model far smaller than a feedforward net that uses different weights at each layer.

The catch is that a plain RNN in practice looks back only a few steps, because gradients vanish or explode.

A bidirectional RNN runs one pass forward and one pass backward, so each output sees both left and right context.

LSTM keeps a cell state beside the hidden state, and its repeating module has four layers interacting in a special way. The forget gate is a sigmoid of the current input and the previous hidden state, and it sets how much of the old cell state to keep. Because the forget gate controls how gradients pass through the cell state, it can ease vanishing and exploding gradients.

The GRU merges the forget and input gates into one update gate and combines the cell and hidden states, which makes it simpler. The cited work finds that Tree-LSTM represents sentence meaning better than a sequential LSTM.

Long-range dependencies stay hard even for bidirectional RNNs and LSTMs, which is what motivated attention. Attention lets each output weight every input state, instead of relying on one fixed-length vector. Bahdanau et al. used this for machine translation, and the weights for each output sum to 1. Memory networks pair four components, I, G, O and R, with a large long-term memory, and MemN2N trains that design end to end.

## Deep models across sentiment tasks

At document level, early deep work tried to overcome the weakness of bag-of-words features with dense vectors. Moraes et al. found that ANNs gave competitive results to SVMs in most cases. Paragraph Vector learns a fixed-length vector for texts of any length by predicting words sampled from the paragraph. Later models added user and product information, for example UPNN and UPA, which use a CNN and an LSTM with attention.

The idea is that user and product representations capture individual preferences and overall product quality.

At sentence level, early models fed parse trees into recursive networks, so that composition could follow grammar. Socher et al. then introduced the RNTN, which uses tensor-based compositional functions to capture interactions between elements. Later CNN and RNN models dropped the parser, because word embeddings already carry some semantic and syntactic signal.

Kim compared CNN-rand, CNN-static, CNN-non-static and CNN-multichannel, which differ in how the word embeddings are initialised and tuned. Wang et al. used an LSTM for Twitter, with multiplicative gate operations between word embeddings that give more flexibility than the additive composition of a simple RNN.

Aspect-level models must handle a target as well as a polarity, since one review can praise a screen while faulting its battery. Li and Lam used three LSTMs for aspect term extraction, and two of them capture aspect and sentiment interactions. Poria et al. used a seven-layer CNN to tag each word as aspect or non-aspect. Wang et al. paired an RNN with a CRF to co-extract aspects and opinion terms.

Plain CBOW or Skip-gram vectors can place good and bad close together, since the two words share contexts. Sentiment-specific word embeddings, SSWE, embed polarity into the word vectors along with meaning. Li and Jurafsky found that multi-sense embeddings help some NLP tasks but give little help to sentiment classification. Sarcasm detection has also used a bidirectional GRU to read tweets locally.

## Limitations

The survey runs no experiments of its own, so each performance statement is a cited work's result under that work's data and setup. The text gives only one direct deep-versus-SVM comparison, from Moraes et al., so that claim rests on one study here. Whether the ReLU advantage over sigmoid and tanh holds on every task is outside what this text checks.

## Paper info

- **Authors**: Lei Zhang, Shuai Wang, Bing Liu
- **Venue**: arXiv · Preprint
- **First published**: 2018-1-24
- **Added**: 2026-11-12
- **Updated**: 2018-1-30
- **Version**: v2
- **arXiv**: 1801.07883
- **Category**: cs.CL · cs.IR · cs.LG · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1801.07883v2) · [PDF ↗](https://arxiv.org/pdf/1801.07883v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Lei Zhang, Shuai Wang, Bing Liu (2018). Deep Learning for Sentiment Analysis : A Survey. arXiv:1801.07883v2. https://arxiv.org/abs/1801.07883v2

**BibTeX**

```
@misc{zhang2018deep,
  title = {{Deep Learning for Sentiment Analysis : A Survey}},
  author = {Lei Zhang and Shuai Wang and Bing Liu},
  year = {2018},
  eprint = {1801.07883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.07883v2}
}
```

## Other paper commentary

- [CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation](https://refivu.com/en/papers/eb07d47d-3eb5-4fba-ba4e-7d3bd33335aa-codet5-identifier-aware-unified-pre-trained-encoder-decoder.md)
- [Supervised Learning of Universal Sentence Representations from Natural Language Inference Data](https://refivu.com/en/papers/3b717e36-7795-4260-9240-213b394ce804-supervised-learning-of-universal-sentence-representations.md)
- [Natural Language Processing: State of The Art, Current Trends and Challenges](https://refivu.com/en/papers/96f7443d-3832-4114-ab52-f019f5aec932-natural-language-processing-state-of-the-art-current.md)
- [Tensor Fusion Network for Multimodal Sentiment Analysis](https://refivu.com/en/papers/4fa58e5a-e78c-49d2-b78b-25f6eb2e5a71-tensor-fusion-network-for-multimodal-sentiment-analysis.md)
- [TinyBERT: Distilling BERT for Natural Language Understanding](https://refivu.com/en/papers/b5b68df2-5d79-42e6-8e82-c8fdbf0e3a3d-tinybert-distilling-bert-for-natural-language-understanding.md)
- [Generating Sentences from a Continuous Space](https://refivu.com/en/papers/921b1922-5f2e-49a8-80cd-9df917da7fe7-generating-sentences-from-a-continuous-space.md)
- [Understanding Convolution for Semantic Segmentation](https://refivu.com/en/papers/c32b12c2-d4e5-4e10-b7c6-b643713776fc-understanding-convolution-for-semantic-segmentation.md)
- [InternVL3: Exploring Advanced Training and Test-Time Recipes for Open-Source Multimodal Models](https://refivu.com/en/papers/93e60b18-9322-49b4-85e3-af682c647d05-internvl3-exploring-advanced-training-and-test-time-recipes.md)
- [Applications of Deep Reinforcement Learning in Communications and Networking: A Survey](https://refivu.com/en/papers/0b4d9b08-577a-4c81-8c2b-a8a7244761e2-applications-of-deep-reinforcement-learning-in.md)
- [MOT16: A Benchmark for Multi-Object Tracking](https://refivu.com/en/papers/b140c8bc-846b-4f50-973f-76ab17fb435b-mot16-a-benchmark-for-multi-object-tracking.md)
- [Mip-NeRF: A Multiscale Representation for Anti-Aliasing Neural Radiance Fields](https://refivu.com/en/papers/25ba5d73-b97f-4cb0-b129-b565ef426ff8-mip-nerf-a-multiscale-representation-for-anti-aliasing.md)
- [Graph Neural Networks for Social Recommendation](https://refivu.com/en/papers/3f172e45-3e51-4657-9b43-76ed2fb286e9-graph-neural-networks-for-social-recommendation.md)

## Terms in this paper

- [LSTM](https://refivu.com/en/terms/ba10547646d9-lstm)
- [attention mechanism](https://refivu.com/en/terms/977ee0201459-attention-mechanism)
- [cross-entropy loss](https://refivu.com/en/terms/14067bdf8b9f-cross-entropy-loss)
- [Convolutional Neural Network](https://refivu.com/en/terms/610f2c09337d-convolutional-neural-network)
- [recurrent neural network](https://refivu.com/en/terms/7df8352fc823-recurrent-neural-network)
- [sentiment analysis](https://refivu.com/en/terms/dcaa4b0924bc-sentiment-analysis)
- [deep learning](https://refivu.com/en/terms/1114eabeb503-deep-learning)
- [Gated Recurrent Unit](https://refivu.com/en/terms/8b1a0fe9c409-gated-recurrent-unit)
- [word embeddings](https://refivu.com/en/terms/750326b5ccc5-word-embeddings)
- [Artificial neural networks](https://refivu.com/en/terms/b6ea897601dd-artificial-neural-networks)
- [Memory Networks](https://refivu.com/en/terms/d80ee338df0c-memory-networks)
- [Paragraph Vector](https://refivu.com/en/terms/168cf8ac77ab-paragraph-vector)
- [Sigmoid Function](https://refivu.com/en/terms/13c26407c004-sigmoid-function)
- [feedforward neural network](https://refivu.com/en/terms/238aae97cce7-feedforward-neural-network)
- [Recursive Neural Tensor Network](https://refivu.com/en/terms/a28dec085ad2-recursive-neural-tensor-network)
- [stacked denoising autoencoder](https://refivu.com/en/terms/cd05119c247f-stacked-denoising-autoencoder)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/423bc94d-8ef5-42e2-a68f-87cb54c7636d-deep-learning-for-sentiment-analysis-a-survey)
