arXiv:2610.41518cs.LGOct 2026

Manuscript Offprint

arXiv:2610.41518

Enhancing Sentiment Classification on Small Datasets through Data Augmentation and Transfer Learning

Mahmoud S. Mayaleh, Samer A. Mayaleh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mahmoud S. Mayaleh

National Conservatory of Arts and Crafts (CNAM)

Paris, France

mahmoud.mayaleh@lecnam.net

Samer A. Mayaleh

An-Najah National University

Nablus, Palestine

smayaleh@najah.edu

Abstract—Small-scale sentiment classification often suffers from data scarcity, which limits the generalization ability of the models. This study evaluates and compares the effectiveness of three data augmentation strategies: Easy Data Augmentation (EDA), back-translation, and contextual token substitution (nlpaug-style), with both traditional machine learning classifiers (Logistic Regression, Random Forest) and transformer-based models (BERT). We perform a comprehensive empirical comparison with low-resource sentiment datasets by summarizing the results of recent studies and performing targeted head-to-head experiments. Our findings indicate that all augmentation methods improve performance. Contextual augmentation yields the most consistent gains for BERT models, while EDA and back-translation provide greater benefits for traditional classifiers. These insights help guide the selection of data augmentation techniques tailored to model type and dataset size, filling a critical gap in research on data augmentation for sentiment classification on small datasets.

Index Terms—Sentiment analysis, Data augmentation, Transfer learning, Small datasets, BERT, Natural language processing

I. INTRODUCTION

Sentiment classification is a fundamental task in natural language processing (NLP), enabling the automated assessment of attitudes and opinions expressed in text. Despite recent advances in supervised learning, the performance of sentiment classifiers often depends on the quality and quantity of annotated training data. This challenge is particularly acute for small datasets, specialized domains, or low-resource languages [1], [2].

Traditional machine learning models such as Support Vector Machines (SVM) and Naive Bayes rely on superficial text features [3], [4]. These models tend to overfit and have limited generalization when data is scarce [1], [5]. In contrast, deep learning and transformer models, such as BERT and its variants, provide robust contextual encoding. However, they can still show performance degradation in extremely resource-poor environments [6]–[9].

To overcome these limitations, various data augmentation techniques have been proposed. One widely used method is Easy Data Augmentation (EDA), which applies simple operations at the token level, such as word replacement, insertion, swapping, or deletion [10]. EDA offers a computationally inexpensive approach to increase the diversity of training data and has become widely accepted in sentiment analysis tasks [1], [5], [6], [11].

Another frequently used strategy is back-translation, in which a sentence is translated into an intermediate language and then back into the original. This process produces semantically different but grammatically coherent paraphrases. Back-translation is particularly effective in scenarios with extremely low resources where deep neural networks are used [1], [2], [7], [9].

More recently, contextual data augmentation techniques, which are implemented via tools such as the nlpaug library, have utilized pre-trained language models (e.g., BERT, GPT, BART) to generate contextual replacements or paraphrases. These methods aim to maintain semantic consistency while increasing training diversity [1], [2], [5], [12]–[14].

Although several studies have investigated the effects of these augmentation methods on traditional and deep models, there are few direct comparisons of EDA, back-translation, and contextual augmentation under identical conditions. As a result, there is limited consensus on their relative effectiveness and the best methods for sentiment classification on small datasets.

This study aims to fill this gap by summarizing existing empirical evidence and conducting a controlled comparative analysis of three prominent augmentation procedures. The following sections provide an overview of the relevant literature, describe the experimental methodology, and present the results of our comparative evaluation.

Importantly, the novelty of this work does not lie in the proposal of new augmentation algorithms, but rather in the systematic and controlled comparison of three widely used strategies (EDA, back-translation, and contextual augmentation) under identical experimental conditions. While earlier studies have typically evaluated these methods in isolation or with different models and datasets, our study provides a unified benchmark across both traditional classifiers (Logistic Regression, Random Forest) and a transformer-based model (BERT). This design allows us to clarify the relative strengths of each method in low-resource sentiment classification, offering practical guidance on when and how to apply them.

References (35)