# Deep Learning Based Text Classification: A Comprehensive Review

Review sorts more than 150 deep learning models for text classification by architecture

Shervin Minaee, Nal Kalchbrenner, Erik Cambria, Narjes Nikzad, Meysam Chenaghlu, Jianfeng Gao · arXiv · 2020-4-6

- **Problem** Classical text classifiers needed hand-crafted features that took heavy engineering and did not use large training sets well. Neural models first trailed these classical methods, so the field needed a clear picture of what works.
- **Method** The authors sort more than 150 deep learning text classifiers by architecture family. They then compare each model's reported scores across popular benchmarks.
- **Results** The review finds that Transformer models such as BERT lead on several benchmarks. For example, BERT-large scored 95.79 on IMDB, compared to 87.80 for a BoW plus SVM baseline.

## Why hand-crafted features stopped scaling

Classical text classifiers worked in two steps. First, engineers extracted features such as bag-of-words counts, and then a classifier such as an SVM or Naïve Bayes made the prediction. That arrangement had three weak points.

Good features took tedious engineering, and that work leaned heavily on domain knowledge. Because the feature templates were fixed beforehand, these models couldn't make full use of large training sets. That made the approach hard to carry over to new tasks.

Neural approaches attacked this by learning an embedding that maps text into a low-dimensional continuous vector, so no hand-crafted features are needed. Early versions did not win, though. LSA, a linear model with fewer than 1 million parameters trained on 200K words, and a 2001 feed-forward neural language model trained on 14 million words both trailed classical feature-based models.

## What changed: more parameters and more text

The turn came when embedding models grew alongside much larger training corpora. word2vec, trained on 6 billion words from 2013, became popular across many NLP tasks almost at once. Contextual models came next. ELMo used a 3-layer bidirectional LSTM with 93M parameters trained on 1B words, and the reason given for its edge is that it captures context.

BERT followed with 340M parameters trained on 3.3 billion words, and the review treats it as the leading embedding model at the time of writing.

The trend continued into very large models. OpenAI's GPT-3 has 170 billion parameters, and Google's GShard has 600 billion. Some researchers argue these models don't really understand language and aren't robust enough for mission-critical domains. So the review points to neuro-symbolic hybrids as one route to grounding and symbolic reasoning, but it leaves them outside its scope.

## How the models are grouped

The review groups models by architecture family, including feed-forward, RNN, CNN, capsule, attention, memory-augmented, graph, Siamese, hybrid and Transformer models. Each family is then discussed for the tasks it serves, such as sentiment analysis, news categorization, topic classification, QA and NLI.

A representative CNN example is Kim's model, which applies one convolution layer to word vectors from word2vec. It compares four ways to set the embeddings: random initialization, fixed pre-trained vectors, fine-tuned vectors, and a multi-channel version that keeps one copy fixed while updating the other. Later models changed this design, for example by adding dynamic max-pooling and a bottleneck layer.

Capsule networks target a weakness of pooling, which loses spatial relationships and can misjudge entities whose orientation changes. The authors argue that rearranging sentences leaves a document's meaning largely intact, so they used static routing, which outperformed dynamic routing in their experiments.

## How pre-trained models are built and tuned

Pre-trained language models (PLMs) split the work into two phases. They first learn contextual representations from large unlabeled text, and then they are fine-tuned with task labels and a task-specific classifier on top. Pre-training is self-supervised, but fine-tuning is supervised, which is why the review counts the second phase as supervised learning.

The models come in two families, autoregressive and autoencoding. GPT is autoregressive: it predicts each word from the words before it, moving left to right, and it stacks 12 Transformer blocks. BERT is autoencoding: it hides some tokens and recovers them from bidirectional context.

Successors changed one part at a time. RoBERTa trains on much more data, ALBERT cuts memory use, and DistillBERT shrinks BERT by 40% while keeping 99% of its original capabilities and running 60% faster. XLNet combines the two families by permuting the factorization order during pre-training, so context can come from both sides.

## Benchmarks the models are judged on

The review covers more than 40 datasets, grouped by application into sentiment, news, topic, QA and NLI sets. IMDB, for example, has 25,000 movie reviews each for training and test, and its task is binary sentiment. AG News has 120,000 training samples and 7,600 test samples, each a short news text with a four-class label.

QA is cast as classification, and SQuAD1.1 contains 107,785 question-answer pairs on 536 articles, where the answer can be any token span in the text. NLI uses sentence pairs, such as the 433k pairs of MNLI labeled for entailment. The quantitative analysis covers 16 benchmarks across a selected set of models.

## How the reported scores compare

The authors attribute the large jump on SQuAD and WikiQA to BERT.

On WikiQA, single-model BERT scored 0.813 MAP, compared to 0.688 for attentive pooling networks. On IMDB, BERT-large scored 95.79, compared to 87.80 for a BoW plus SVM baseline. These rows collect each model's own reported scores, so training budgets and protocols differ across them and they aren't one controlled run.

On SNLI, RoBERTa scored 92.6, compared to 81.5 for a biLSTM encoder. The review notes a steady performance improvement on SNLI and MNLI over the last five years.

## Open problems

Most of the reviewed models can't be interpreted, so it's unclear why one model beats another on one dataset and not on others. Attention and self-attention give some insight, but the underlying behavior of these models is still poorly understood.

Commonsense knowledge is another gap, and the review notes it has been explored for sentiment classification only so far. Datasets are missing for multi-step reasoning QA, multilingual documents and very long documents. Efficiency and few-shot learning remain open too, since PLMs are expensive to serve and need compression such as knowledge distillation.

## Paper info

- **Authors**: Shervin Minaee, Nal Kalchbrenner, Erik Cambria, Narjes Nikzad, Meysam Chenaghlu, Jianfeng Gao
- **Venue**: arXiv · Preprint
- **First published**: 2020-4-6
- **Added**: 2026-11-12
- **Updated**: 2021-1-4
- **Version**: v3
- **arXiv**: 2004.03705
- **Category**: cs.CL · 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/2004.03705v3) · [PDF ↗](https://arxiv.org/pdf/2004.03705v3)

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

Shervin Minaee, Nal Kalchbrenner, Erik Cambria, Narjes Nikzad, Meysam Chenaghlu, Jianfeng Gao (2020). Deep Learning Based Text Classification: A Comprehensive Review. arXiv:2004.03705v3. https://arxiv.org/abs/2004.03705v3

**BibTeX**

```
@misc{minaee2020deep,
  title = {{Deep Learning Based Text Classification: A Comprehensive Review}},
  author = {Shervin Minaee and Nal Kalchbrenner and Erik Cambria and Narjes Nikzad and Meysam Chenaghlu and Jianfeng Gao},
  year = {2020},
  eprint = {2004.03705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.03705v3}
}
```

## Other paper commentary

- [Deep Learning for Sentiment Analysis : A Survey](https://refivu.com/en/papers/423bc94d-8ef5-42e2-a68f-87cb54c7636d-deep-learning-for-sentiment-analysis-a-survey.md)
- [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)
- [Person Re-identification by Local Maximal Occurrence Representation and Metric Learning](https://refivu.com/en/papers/ce1c4e84-0a27-40a3-8d69-3dc923b2cf52-person-re-identification-by-local-maximal-occurrence.md)
- [Active Learning with Statistical Models](https://refivu.com/en/papers/7d04ea81-8e24-4074-8953-6e8f7fe61d84-active-learning-with-statistical-models.md)
- [Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection](https://refivu.com/en/papers/d71e5f0f-1f56-4ab0-b2a4-41156c563837-grounding-dino-marrying-dino-with-grounded-pre-training.md)
- [MS-Celeb-1M: A Dataset and Benchmark for Large-Scale Face Recognition](https://refivu.com/en/papers/29204d8b-e10a-438d-99d3-3f2ae9ee3cd4-ms-celeb-1m-a-dataset-and-benchmark-for.md)
- [Threat of Adversarial Attacks on Deep Learning in Computer Vision: A Survey](https://refivu.com/en/papers/80491a86-47c1-436a-bec9-4dead5cabb78-threat-of-adversarial-attacks-on-deep-learning-in.md)
- [Optuna: A Next-generation Hyperparameter Optimization Framework](https://refivu.com/en/papers/e942093c-e24f-4376-bcfb-cbd377aca1d1-optuna-a-next-generation-hyperparameter-optimization.md)

## Terms in this paper

- [Accuracy](https://refivu.com/en/terms/1995c0cd6282-accuracy)
- [Transformer](https://refivu.com/en/terms/48e8be2570bc-transformer)
- [BERT](https://refivu.com/en/terms/45b639a1d317-bert)
- [attention mechanism](https://refivu.com/en/terms/977ee0201459-attention-mechanism)
- [sentiment analysis](https://refivu.com/en/terms/dcaa4b0924bc-sentiment-analysis)
- [masked language modeling](https://refivu.com/en/terms/5df1a60d4f18-masked-language-modeling)
- [word2vec](https://refivu.com/en/terms/aa6ca7ebd6f5-word2vec)
- [SQuAD](https://refivu.com/en/terms/097ea97dc6b6-squad)
- [Question Answering](https://refivu.com/en/terms/b3a98bd42a6e-question-answering)
- [SNLI](https://refivu.com/en/terms/9c627a5593c8-snli)
- [ELMo](https://refivu.com/en/terms/a4cbe56494c9-elmo)
- [IMDb](https://refivu.com/en/terms/72b8a8b81376-imdb)
- [GPT](https://refivu.com/en/terms/93aa991d9601-gpt)
- [XLNet](https://refivu.com/en/terms/b2194e0b0811-xlnet)
- [Latent Semantic Analysis](https://refivu.com/en/terms/ec75a360b680-latent-semantic-analysis)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/f32bf8ee-1bca-48a8-92cd-28ac97a169bd-deep-learning-based-text-classification-a-comprehensive)
