Skip to main content
QUICK REVIEW

[Paper Review] On the Role of Text Preprocessing in Neural Network Architectures: An Evaluation Study on Text Categorization and Sentiment Analysis

José Camacho-Collados, Mohammad Taher Pilehvar|arXiv (Cornell University)|Jul 6, 2017
Topic ModelingComputer Science8 citations
TL;DR

This study evaluates the impact of common text preprocessing techniques—tokenization, lowercasing, lemmatization, and multiword grouping—on neural text classification using CNNs for text categorization and sentiment analysis. Results show that simple tokenization often outperforms more complex preprocessing, while multiword-aware word embeddings significantly boost performance even on vanilla-tokenized inputs, highlighting the importance of preprocessing consistency and the overlooked role of multiword training in pre-trained embeddings.

ABSTRACT

Text preprocessing is often the first step in the pipeline of a Natural Language Processing (NLP) system, with potential impact in its final performance. Despite its importance, text preprocessing has not received much attention in the deep learning literature. In this paper we investigate the impact of simple text preprocessing decisions (particularly tokenizing, lemmatizing, lowercasing and multiword grouping) on the performance of a standard neural text classifier. We perform an extensive evaluation on standard benchmarks from text categorization and sentiment analysis. While our experiments show that a simple tokenization of input text is generally adequate, they also highlight significant degrees of variability across preprocessing techniques. This reveals the importance of paying attention to this usually-overlooked step in the pipeline, particularly when comparing different models. Finally, our evaluation provides insights into the best preprocessing practices for training word embeddings.

Motivation & Objective

  • To investigate how basic text preprocessing decisions affect the performance of standard neural text classifiers.
  • To assess whether preprocessing choices during input text preparation impact model generalization and performance.
  • To evaluate the influence of preprocessing on word embeddings and their downstream performance in neural networks.
  • To provide empirical guidance on optimal preprocessing practices for text classification tasks.
  • To highlight the often-overlooked impact of preprocessing consistency when comparing different NLP models.

Proposed method

  • The study evaluates four preprocessing techniques: tokenization (vanilla), lowercasing, lemmatization, and multiword grouping on standard text classification benchmarks.
  • A standard Convolutional Neural Network (CNN) architecture is used as the baseline classifier across multiple datasets for text categorization and sentiment analysis.
  • Experiments are conducted in two settings: within-preprocessing (same preprocessing for input and embeddings) and cross-preprocessing (different preprocessing for input and embeddings).
  • Word embeddings are initialized using different preprocessing variants: vanilla, lowercased, lemmatized, and multiword-grouped corpora.
  • Performance is measured via accuracy on nine diverse datasets, with statistical significance testing applied to identify meaningful differences.
  • The analysis includes ablation studies comparing preprocessing variants and their interaction with pre-trained embeddings.

Experimental results

Research questions

  • RQ1How do different text preprocessing techniques (e.g., lowercasing, lemmatization, multiword grouping) affect the performance of a standard CNN-based text classifier?
  • RQ2Does the preprocessing of the training corpus for word embeddings influence the final performance of a neural text classifier?
  • RQ3Is there a consistent advantage for complex preprocessing techniques over simple tokenization in neural text classification?
  • RQ4How does the choice of preprocessing for embeddings interact with the input preprocessing in a cross-preprocessing setting?
  • RQ5What are the most effective preprocessing practices for training word embeddings in the context of neural text classification?

Key findings

  • Simple tokenization (vanilla) consistently performs as well as or better than more complex preprocessing techniques like lemmatization and lowercasing across most datasets.
  • Multiword-grouped preprocessing of the training corpus for word embeddings leads to superior performance, especially when applied to vanilla-tokenized inputs, achieving the best results in seven out of nine datasets with the single CNN model.
  • Lemmatization and lowercasing show reduced performance in cross-preprocessing settings due to limited coverage of capitalized and inflected forms in the embeddings.
  • The use of multiword-aware embeddings on vanilla inputs outperforms using the same embeddings on multiword-grouped inputs, suggesting that isolating multiword expressions during training improves generalization.
  • Performance variance across preprocessing choices reaches up to ±2.4% on average, indicating that preprocessing has a significant impact, especially with limited training data.
  • The findings suggest that the success of pre-trained Word2Vec embeddings may be partly due to their training on multiword expressions, a factor often overlooked in model evaluation.

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.