[Paper Review] Multi-class Text Classification using BERT-based Active Learning
This paper proposes a BERT-based active learning framework for multi-class text classification in low-resource, code-mixed, and incoherent text scenarios common in pickup-and-delivery services. By evaluating diverse active learning strategies—including uncertainty, diversity, and representativeness—on TREC-6, AG’s News, and an internal dataset, it achieves 85% reduction in labeling cost while maintaining high accuracy, with EGL and DAL showing superior balance of diversity, representativeness, and low class bias.
Text Classification finds interesting applications in the pickup and delivery services industry where customers require one or more items to be picked up from a location and delivered to a certain destination. Classifying these customer transactions into multiple categories helps understand the market needs for different customer segments. Each transaction is accompanied by a text description provided by the customer to describe the products being picked up and delivered which can be used to classify the transaction. BERT-based models have proven to perform well in Natural Language Understanding. However, the product descriptions provided by the customers tend to be short, incoherent and code-mixed (Hindi-English) text which demands fine-tuning of such models with manually labelled data to achieve high accuracy. Collecting this labelled data can prove to be expensive. In this paper, we explore Active Learning strategies to label transaction descriptions cost effectively while using BERT to train a transaction classification model. On TREC-6, AG's News Corpus and an internal dataset, we benchmark the performance of BERT across different Active Learning strategies in Multi-Class Text Classification.
Motivation & Objective
- Address the high cost of manual labeling for BERT-based multi-class text classification in real-world industrial applications involving short, incoherent, and code-mixed (Hindi-English) transaction descriptions.
- Evaluate and compare multiple active learning strategies—uncertainty, diversity, representativeness, and class bias—within a BERT-based framework to minimize labeling effort.
- Benchmark the performance of advanced active learning methods (e.g., EGL, DAL, DBAL, Core-set) on public and internal datasets to identify the most effective strategy for industrial deployment.
- Assess trade-offs between model performance, labeling efficiency, and computational runtime in active learning for BERT-based text classification.
Proposed method
- Fine-tune BERT on a small initial labeled set to initialize a text classification model for multi-class prediction.
- Apply multiple active learning strategies—uncertainty (entropy), diversity (Core-set), representativeness (KNN-density), and class bias (label entropy)—to select the most informative samples from an unlabeled pool.
- Use [CLS] token embeddings from BERT as input for diversity and representativeness metrics, computing distances between instances for core-set and KNN-density calculations.
- Implement uncertainty sampling by selecting instances with the highest prediction entropy across classes.
- Evaluate representativeness using the KNN-density measure: inverse of the average distance to the K nearest neighbors in the unlabeled pool.
- Quantify class bias using Kullback-Leibler (KL) divergence between the true label distribution and the distribution of selected instances.
Experimental results
Research questions
- RQ1Which active learning strategy—uncertainty, diversity, or representativeness—most effectively reduces labeling cost while maintaining high classification accuracy in BERT-based multi-class text classification?
- RQ2How do different active learning strategies perform in terms of diversity and representativeness when applied to short, incoherent, and code-mixed text data?
- RQ3To what extent do active learning strategies introduce class bias, and which strategies minimize imbalance in label distribution during sampling?
- RQ4What is the trade-off between model performance, labeling efficiency, and computational runtime across different active learning strategies in a BERT-based setting?
Key findings
- EGL (Entropy-based Active Learning) achieved the best overall balance of diversity, representativeness, and low class bias, outperforming other strategies on both TREC-6 and AG’s News Corpus.
- Random sampling achieved the highest diversity and representativeness scores but showed the highest class bias, indicating poor label distribution coverage.
- DAL (Diversity-Aware Active Learning) and EGL demonstrated significantly lower class bias than uncertainty, Core-set, and DBAL, as confirmed by Wilcoxon signed-rank tests (p < 0.05).
- The runtime of active learning strategies varied significantly: Random was the fastest (<1 second), while EGL was the slowest (484 seconds per iteration), due to gradient-based computations.
- On average, the proposed active learning framework reduced labeling cost by 85% compared to full supervised fine-tuning, maintaining high accuracy across datasets.
- Core-set achieved high diversity but inconsistent representativeness, likely due to selection of outlier instances, highlighting a trade-off in pure diversity-based sampling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.