Exploring the Relationship Between Algorithm Performance, Vocabulary, and Run-Time in Text Classification

Wilson Fearn, Orion Weller, Kevin Seppi
4/8/2021
cs.CL

Official code: wfearn/preprocessing-paper (2 stars, Python, last commit 2021-05-26).

Abstract

Text classification is a significant branch of natural language processing, and has many applications including document classification and sentiment analysis. Unsurprisingly, those who do text classification are concerned with the run-time of their algorithms, many of which depend on the size of the corpus' vocabulary due to their bag-of-words representation.

Show full abstract

Although many studies have examined the effect of preprocessing techniques on vocabulary size and accuracy, none have examined how these methods affect a model's run-time. To fill this gap, we provide a comprehensive study that examines how preprocessing techniques affect the vocabulary size, model performance, and model run-time, evaluating ten techniques over four models and two datasets. We show that some individual methods can reduce run-time with no loss of accuracy, while some combinations of methods can trade 2-5% of the accuracy for up to a 65% reduction of run-time. Furthermore, some combinations of preprocessing techniques can even provide a 15% reduction in run-time while simultaneously improving model accuracy.

View on arXivView PDF

Code Implementations(1)

This repo contains the code for a preprocessing paper I authored along with another colleague that got published at NAACL2021.

20Python, ShellMar 25, 20215 years ago

Similar Papers

Cite this paper

@article{fearn2021exploring,
  title  = {Exploring the Relationship Between Algorithm Performance, Vocabulary, and Run-Time in Text Classification},
  author = {Wilson Fearn and Orion Weller and Kevin Seppi},
  year   = {2021},
  eprint = {2104.03848},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.03848}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.03848.svg)](https://codeofpaper.com/paper/2104.03848)

Discussion