# A Survey of the Usages of Deep Learning in Natural Language Processing

Survey reviews how deep learning architectures have reshaped natural language processing research

Daniel W. Otter, Julian R. Medina, Jugal K. Kalita · arXiv · 2018-7-27

- **Problem** Encoder-decoder models squeezed a whole input sentence into one fixed-length vector, so they could not weight the input words by importance. This bottleneck limited translation, summarization and captioning output quality.
- **Method** This survey reviews deep learning architectures and methods across core linguistic tasks and applications in NLP. It covers attention, Transformers, word embeddings, pretrained language models, parsing and ranking.
- **Results** The authors conclude that Transformer stacks, built on attention, gave consistently superior results across NLP tasks. They also list recommendations for future research.

## Why sentence encoders needed attention

Encoder-decoder models needed a way to weight input words because a single fixed-length vector carried the whole input sequence. The encoder was forced to encode an entire sequence into a finite length vector, without regard to whether any inputs were more important than others. Translation, summarization and captioning all produce textual output, so they usually pair an encoding ANN with a decoding ANN.

The decoder then returns variable length text based on that single vector.

Attention fixes this bottleneck by letting the network decide what to focus on at each step. That layer lets the network learn what to pay attention to, given the current hidden state and the annotation. Deep learning in NLP grew from GPUs and large datasets, which made deep networks trainable. Neural models have replaced or enhanced older statistical methods such as hidden Markov models and support vector machines.

Attention then branched into several variants, including convolutional, intra-temporal, gated, and self-attention. Self-attention lets the network attend to words in the same sentence. During encoding, a word can receive variable amounts of attention from other words in the sentence. During decoding, the model attends to words that have already been produced.

The Transformer applies self-attention in each encoder and decoder unit, plus cross-attention between them.

Attention lets the decoder pick the parts of the encoding that matter most at each output step. Attention mechanisms, as in Fig. 1(b), let the decoder determine which parts of the encoding are most relevant. The Transformer uses multiple instances of attention in parallel.

## How the core architectures read a sentence

Convolutional networks apply learned filters so that several features are analysed at once. Pooling operations shrink the feature maps, and the pools are kept small to avoid losing too much precision. Recurrent networks carry memory of earlier elements, which suits NLP because word order matters. Stacking recurrent layers or reading a sentence in both directions lets the effect of an input linger longer than a single layer allows.

LSTMs use blocks of neurons designed to retain, forget or expose specific information. Generic RNNs dilute older results with each successive iteration, while LSTM blocks let important information be retained much longer.

The Transformer drops the recurrent and convolutional layers and relies on attention to connect input and output. Its encoders and decoders are stacked, with self-attention in each unit and cross-attention between the two sides. The model uses multiple instances of attention in parallel. The Figure 2 model shows four encoders followed by four decoders, all preceded by a positional encoder.

The authors motivate self-attention by lower computation per layer, fewer sequential training steps, and a shorter path length for long-range dependencies. Self-attention also allows more parallelization, which decreases training times. In the Medina and Kalita model, parallel self-attention replaced stacking and also reduced training times.

Word embeddings give each word a dense vector, usually between 50 and 300 dimensions. Vector arithmetic on these embeddings captures relations, as in k minus q approximately equal to m minus w for king, queen, man and woman. Embeddings are usually built with Principal Component Analysis or by capturing internal states of a neural language model.

In recent years, word embeddings have become the standard form of input to NLP systems.

## What pretraining added on top of the Transformer

Radford et al. pretrained GPT as a language model built on the Transformer. GPT learned word dependencies across whole sentences and longer segments of text. Its context wasn't limited to the words immediately surrounding each position. Peters et al. built ELMo, which added backward context to the forward context. ELMo also took vectorizations from multiple levels instead of only the final layer.

Peters et al. showed empirically that this multi-level encoding significantly boosted performance.

Devlin et al. added two unsupervised training tasks to BERT. The first task predicts randomly masked neighbor words. The second task, next-sentence prediction (NSP), decides whether one sentence follows another. Liu et al. built MT-DNN on a BERT-like model with a stochastic answer network on top. MT-DNN trains on a number of different tasks before fine-tuning on the task at hand.

Using MT-DNN as the language model, the authors reached state-of-the-art results on ten of eleven attempted tasks.

Some researchers hypothesize that pretrained models learn templates or syntactic patterns in their datasets. When datasets are rebuilt with such patterns removed carefully, the models don't perform well. The paper adds that work on cross-language and universal language modeling still needs to address low-resource languages.

## Parsing results and where they stalled

Transition-based dependency parsing keeps a buffer of words and a stack that starts with only the ROOT label. Words are pushed onto the stack, and arcs link the top two items before dependents are popped off. Arc-standard requires every dependent to be attached before its word joins its parent. Arc-eager attaches words to their parents as soon as possible, whether or not their children are connected yet.

Swap-lazy modifies arc-standard so that stack positions can be swapped, which makes non-projective edges possible to graph.

Le and Zuidema's Inside-Out Recursive Neural Network was the first neural model to reach state-of-the-art parsing performance. It reached that result on the Penn Treebank for both LAS and UAS by giving each node an inner and an outer vector representation. The two vectors let information flow both top-down and bottom-up through the tree. Vinyals et al.

built an LSTM with attention for a syntactic constituency parser and tested it on out-of-domain data. Their test sets were the English Web Treebank and the Question Treebank, not the Wall Street Journal portion of the Penn Treebank, which shows that neural models can generalize between domains. That parser had difficulty remembering phrases from early in the sentence by the time it reached the end.

They used a simple feedforward network as the decision maker in a transition-based parser. The authors credit this design with avoiding the sparsity problem of statistical models. Chen and Manning used a simple greedy search, which Zhou et al. replaced with a beam search for a significant improvement. Weiss et al. used a deeper network with residual connections and a perceptron layer after the softmax, and trained it with tri-training on significantly more examples.

Another model replaced the feedforward network with an LSTM that saw the entire buffer, the entire stack, and the full history of transition decisions.

## Retrieval, extraction and named entities

Ad-hoc retrieval ranks documents by relevance to a query, and deep models either match learned representations or build local word interactions first. Representation-focused models build good text representations and match them directly, while interaction-focused models learn how the two texts match from word interactions. Long documents are hard for this setup because the relevant portion can sit anywhere in the document and may be spread out.

Guo et al. built DRMM, which feeds quantized histograms of local interaction intensities to an MLP for matching. DRMM runs a small sub-network on the query terms in parallel to establish term importance and term dependencies, and the two outputs are mixed at the top.

Most neural rankers are re-rankers, because their dense representations for documents and queries make it impossible to rank an entire collection. Zamani et al. presented SNRM PRF, a standalone ranker that learns sparse representations for queries and documents. Queries are much shorter than documents and carry less information, so the authors let query representations be denser.

SNRM PRF used a sparsity objective combined with hinge loss, and it passed each word embedding through an individual MLP before average pooling. Because labeled documents were scarce, training used pseudo-relevant documents retrieved with TF-IDF and BM25. The approach built a 20,000 bit long inverted index for each document, and retrieval uses a dot product between query and document representations.

SNRM PRF obtained the best metrics (MAP, P@20, nDCG@20, and Recall) across the board on the Robust and ClueWeb datasets. MacAveney et al. added query term representations from ELMo and BERT to three ranking architectures, and CEDR improved all three prior models.

Named entity recognition covers proper nouns and items such as dates, times, prices, and product IDs. Lample et al. also used a bidirectional LSTM and CRF layers, but their inputs combined character-level inputs with word embeddings. Trained with dropout, their model obtained state-of-the-art performance in German and Spanish, and it was very close in English and Dutch.

The authors claimed these results came without any hand-engineered features or gazetteers. Dos Santos et al.'s CharWNN combined word-level and character-level inputs, and it outperformed the previous state of the art across ten named entity classes on the Portuguese corpus. The authors found that neither word embeddings nor character-level embeddings worked well alone.

Akbik et al. used a pre-trained bidirectional character language model to get a contextual embedding for each word. They passed these embeddings into a BiLSTM-CRF sequence labeler, and this achieved state-of-the-art NER in German and English. Event extraction covers event mentions, triggers, arguments, and argument roles, so it is broader than entity tagging.

## Machine translation and the Transformer

Neural machine translation began with feed-forward models, but the ability to map sentences of unequal length came with encoder-decoder models. Kalchbrenner and Blumson's original model combined generative convolutional and recurrent layers to encode a source language model and cast it into a target language. Later work added residual connections, attention mechanisms and dozens of layers, and convolutional layers in both encoder and decoder gave state-of-the-art results.

Recent progress includes effective decoder initialization, conditional gated attentional cells and test time beam search. Britz et al. found that averaging the embedding or annotation layer gives the best translations, instead of the last backward encoder state used by Bahdanau et al.

Vertically stacked recurrent units were the standard for long-term dependencies, with the optimum number of layers roughly between two and sixteen. That optimum depends on the desired input length and on the presence and density of residual connections. At test time, beam search considers multiple target predictions, so the best predictions can be found without searching the entire hypothesis space.

Vaswani et al. discarded the large number of recurrent and convolutional layers and relied only on attention to encode language globally. They motivated self-attention by lower per-layer complexity, fewer sequential training steps and shorter paths for long-range dependencies. Self-attention also allows more parallelization, which decreases training times.

Medina and Kalita modified the Vaswani Transformer to use parallel self-attention mechanisms instead of stacking them. On the IWSLT 2014 test corpus, their model gave the best English to German and English to French results at the time of writing. Besides improving BLEU scores, this approach also reduced training times. Lample et al. attained state-of-the-art results with unsupervised machine translation using multiple languages in language model pretraining.

Chen et al. examined recent models, built hybrids with self-attentive and recurrent components, and found four techniques useful across the models they tested.

Denkowski et al. recommended Adam optimization with restarts and learning rate annealing, subword translation and an ensemble of decoders. They found that lexicon-bias, pre-translation and dropout gave no added benefit or hurt the model. Data-bootstrapping still helped models that were already high-performing.

## Trends and open questions

The survey's clearest pattern is that Transformer stacks now lead across application areas, with attention doing most of the work. Transformers have begun to replace LSTM units in many recent papers, even within just a few months. Attention alone, without recurrence or convolution, appears to give the best link between encoder and decoder.

The survey describes these models as heavily pre-trained on general language knowledge and somewhat lightly trained on specific tasks.

For a practitioner, the workflow starts from a downloaded model such as BERT, trained on corpora of billions of words. A practitioner can further train it on general corpora, but that step isn't always necessary given the size of the pre-training. The last step fine-tunes on task-specific corpora, which is usually supervised. The survey recommends multi-task training wherever several tasks must be performed.

The authors also argue that pre-training on large generic corpora helps immensely, more than highly specialized components do.

Evaluation is a weak point, because datasets are often built for one model and used only a few more times. Metrics differ between papers, so comparing similar models is difficult. Most work reports only best-case results, although models that train consistently are often more useful. Randomized parameters reduce variation, but some variance will always exist, so reporting more than best-case metrics is needed.

Currently, the vast majority of NLP research is conducted on English, with another sizeable portion on Mandarin Chinese. The survey's final recommendation is to direct future work toward a wider variety of languages.

## Where the surveyed results do not reach

Neural machine translation models are superior to statistical and rule-based systems, but they need significantly more data. They also perform poorly outside the domain in which they are trained, which limits where their results carry over. Deep learning models are extremely data-hungry, while many traditional models need only relatively small amounts of training data.

So the authors don't expect deep learning to completely replace traditional NLP models in the near future.

Most NLP research is conducted on English, with another sizeable portion using Mandarin Chinese. In translation tasks, English is almost always the input or output language, leaving the other end to a dozen major European or Eastern Asian languages. The authors note that there are at least eighty languages spoken by more than 10 million people.

Pre-trained Transformer stacks now set the pattern in nearly every application area, with BERT-like models available for download. A practitioner can fine-tune such a model on task-specific corpora, which is usually a supervised step. The survey covers only a minuscule fraction of the applied work in the field.

## Paper info

- **Authors**: Daniel W. Otter, Julian R. Medina, Jugal K. Kalita
- **Venue**: arXiv · Preprint
- **First published**: 2018-7-27
- **Added**: 2026-11-12
- **Updated**: 2019-12-21
- **Version**: v3
- **arXiv**: 1807.10854
- **Category**: cs.CL
- **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/1807.10854v3) · [PDF ↗](https://arxiv.org/pdf/1807.10854v3)

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

Daniel W. Otter, Julian R. Medina, Jugal K. Kalita (2018). A Survey of the Usages of Deep Learning in Natural Language Processing. arXiv:1807.10854v3. https://arxiv.org/abs/1807.10854v3

**BibTeX**

```
@misc{otter2018survey,
  title = {{A Survey of the Usages of Deep Learning in Natural Language Processing}},
  author = {Daniel W. Otter and Julian R. Medina and Jugal K. Kalita},
  year = {2018},
  eprint = {1807.10854},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.10854v3}
}
```

## Other paper commentary

- [Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddings](https://refivu.com/en/papers/54f76c5c-e7e0-4849-8c34-62d4d7e29119-man-is-to-computer-programmer-as-woman-is.md)
- [Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models](https://refivu.com/en/papers/d7cee9c8-e38d-4e30-b35b-f069db83f282-qwen3-embedding-advancing-text-embedding-and-reranking.md)
- [Semantic Similarity in a Taxonomy: An Information-Based Measure and its Application to Problems of Ambiguity in Natural Language](https://refivu.com/en/papers/2aedc905-eee8-4237-bf2e-929c6d3718a0-semantic-similarity-in-a-taxonomy-an-information-based.md)
- [Unsupervised Data Augmentation for Consistency Training](https://refivu.com/en/papers/7940975d-f8e6-4178-9d29-c4dc7f994398-unsupervised-data-augmentation-for-consistency-training.md)
- [Universal Sentence Encoder](https://refivu.com/en/papers/832f78a9-5914-4e69-88eb-9c85196eb17b-universal-sentence-encoder.md)
- [Deep Learning Based Text Classification: A Comprehensive Review](https://refivu.com/en/papers/f32bf8ee-1bca-48a8-92cd-28ac97a169bd-deep-learning-based-text-classification-a-comprehensive.md)
- [TotalSegmentator: robust segmentation of 104 anatomical structures in CT images](https://refivu.com/en/papers/38d65e87-91c3-4285-bca2-9755328de70d-totalsegmentator-robust-segmentation-of-104-anatomical.md)
- [Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labels](https://refivu.com/en/papers/41c59d55-611c-4abf-a4e2-459eb900711f-generalized-cross-entropy-loss-for-training-deep-neural.md)
- [RMPE: Regional Multi-person Pose Estimation](https://refivu.com/en/papers/a258675a-c286-4c65-9760-3d72305d7120-rmpe-regional-multi-person-pose-estimation.md)
- [Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detection](https://refivu.com/en/papers/b6435fab-e010-4a4f-aeb8-b125ca06e94a-memorizing-normality-to-detect-anomaly-memory-augmented-deep.md)
- [Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition](https://refivu.com/en/papers/4809d645-7dd0-42ce-ba15-4c5208cfa877-speech-commands-a-dataset-for-limited-vocabulary-speech.md)
- [LLNet: A Deep Autoencoder Approach to Natural Low-light Image Enhancement](https://refivu.com/en/papers/1b58b4f0-48b5-40db-be28-ecd8cf270c6f-llnet-a-deep-autoencoder-approach-to-natural-low.md)

## Terms in this paper

- [Transformer](https://refivu.com/en/terms/48e8be2570bc-transformer)
- [stochastic gradient descent](https://refivu.com/en/terms/a49650824022-stochastic-gradient-descent)
- [beam search](https://refivu.com/en/terms/3e449f8f713b-beam-search)
- [BLEU](https://refivu.com/en/terms/42cd9b97719e-bleu)
- [self-attention](https://refivu.com/en/terms/426589b81077-self-attention)
- [attention mechanism](https://refivu.com/en/terms/977ee0201459-attention-mechanism)
- [Convolutional Neural Networks](https://refivu.com/en/terms/936419759d72-convolutional-neural-networks)
- [recurrent neural network](https://refivu.com/en/terms/7df8352fc823-recurrent-neural-network)
- [Long Short-Term Memory](https://refivu.com/en/terms/1eac61fff4b1-long-short-term-memory)
- [Neural Networks](https://refivu.com/en/terms/88c79be50288-neural-networks)
- [gated recurrent unit](https://refivu.com/en/terms/8b1a0fe9c409-gated-recurrent-unit)
- [word embeddings](https://refivu.com/en/terms/750326b5ccc5-word-embeddings)
- [named entity recognition](https://refivu.com/en/terms/9fb3660a6152-named-entity-recognition)
- [Dependency Parsing](https://refivu.com/en/terms/aa61b2aab01e-dependency-parsing)
- [Neural machine translation](https://refivu.com/en/terms/17d91eb90f6d-neural-machine-translation)
- [Generative Pre-Training](https://refivu.com/en/terms/e0c95be68448-generative-pre-training)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/a454eb5a-711e-4988-9b26-508ba323b569-a-survey-of-the-usages-of-deep-learning)
