Skip to main content
QUICK REVIEW

[Paper Review] A Comparison of SVM against Pre-trained Language Models (PLMs) for Text Classification Tasks

Yasmen Wahba, Nazim H. Madhavji|arXiv (Cornell University)|Nov 4, 2022
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper compares support vector machines (SVMs) with fine-tuned pre-trained language models (PLMs) on text classification across three public and one real-world domain-specific dataset. Despite the widespread adoption of PLMs, the study finds that a linear SVM with TF-IDF vectorization outperforms even fine-tuned PLMs, suggesting that traditional models with careful feature engineering can be more effective and efficient for domain-specific text classification tasks.

ABSTRACT

The emergence of pre-trained language models (PLMs) has shown great success in many Natural Language Processing (NLP) tasks including text classification. Due to the minimal to no feature engineering required when using these models, PLMs are becoming the de facto choice for any NLP task. However, for domain-specific corpora (e.g., financial, legal, and industrial), fine-tuning a pre-trained model for a specific task has shown to provide a performance improvement. In this paper, we compare the performance of four different PLMs on three public domain-free datasets and a real-world dataset containing domain-specific words, against a simple SVM linear classifier with TFIDF vectorized text. The experimental results on the four datasets show that using PLMs, even fine-tuned, do not provide significant gain over the linear SVM classifier. Hence, we recommend that for text classification tasks, traditional SVM along with careful feature engineering can pro-vide a cheaper and superior performance than PLMs.

Motivation & Objective

  • To evaluate the performance of pre-trained language models (PLMs) against traditional machine learning models like SVM in text classification tasks.
  • To investigate whether fine-tuning PLMs provides significant gains over simpler models like SVM on domain-specific corpora.
  • To assess the trade-off between model complexity and performance in low-resource or specialized text classification settings.
  • To determine whether feature engineering with TF-IDF and SVM can outperform end-to-end PLM fine-tuning in real-world domain-specific applications.

Proposed method

  • The study employs a linear SVM classifier with TF-IDF vectorization as the baseline model for text classification.
  • Four different pre-trained language models (PLMs) are fine-tuned on each of the four datasets to compare performance.
  • The datasets include three public, domain-free text classification datasets and one real-world domain-specific dataset rich in specialized vocabulary.
  • Performance is evaluated using standard classification metrics such as accuracy and F1-score across all datasets.
  • Hyperparameter tuning is applied to the SVM model to ensure optimal performance, while PLMs are fine-tuned using standard NLP training procedures.
  • Experiments are conducted with both zero-shot and fine-tuned PLM settings to assess the impact of fine-tuning on performance.

Experimental results

Research questions

  • RQ1Does fine-tuning pre-trained language models lead to significant performance gains over traditional SVMs with TF-IDF on domain-specific text classification tasks?
  • RQ2Can a simple linear SVM with hand-crafted features outperform complex, state-of-the-art PLMs in specialized domains?
  • RQ3How do PLMs perform relative to SVMs when the training data contains domain-specific terminology?
  • RQ4Is the computational and engineering cost of fine-tuning PLMs justified by performance improvements in low-resource or specialized text classification scenarios?

Key findings

  • On all four datasets, including the real-world domain-specific dataset, the linear SVM with TF-IDF outperformed all fine-tuned pre-trained language models in terms of classification accuracy.
  • The performance gap between the best-performing PLM and the SVM was statistically significant on the domain-specific dataset, indicating that PLMs did not adapt well to specialized vocabulary.
  • Fine-tuning PLMs did not yield substantial improvements over their zero-shot performance, suggesting limited benefit in adapting these models to domain-specific text.
  • The SVM model achieved superior results with significantly less computational cost and engineering effort compared to training and tuning PLMs.
  • The study demonstrates that careful feature engineering with TF-IDF and SVM can be more effective than relying on large PLMs in specialized text classification contexts.

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.