[论文解读] Bengali Text Classification: An Evaluation of Large Language Model Approaches
该论文比较三种指令微调的大型语言模型(LLaMA 3.1 8B Instruct、LLaMA 3.2 3B Instruct、Qwen 2.5 7B Instruct)在孟加拉语新闻分类上的表现,发现 Qwen 2.5 在9个类别上达到最高准确率72%。
Bengali text classification is a Significant task in natural language processing (NLP), where text is categorized into predefined labels. Unlike English, Bengali faces challenges due to the lack of extensive annotated datasets and pre-trained language models. This study explores the effectiveness of large language models (LLMs) in classifying Bengali newspaper articles. The dataset used, obtained from Kaggle, consists of articles from Prothom Alo, a major Bangladeshi newspaper. Three instruction-tuned LLMs LLaMA 3.1 8B Instruct, LLaMA 3.2 3B Instruct, and Qwen 2.5 7B Instruct were evaluated for this task under the same classification framework. Among the evaluated models, Qwen 2.5 achieved the highest classification accuracy of 72%, showing particular strength in the "Sports" category. In comparison, LLaMA 3.1 and LLaMA 3.2 attained accuracies of 53% and 56%, respectively. The findings highlight the effectiveness of LLMs in Bengali text classification, despite the scarcity of resources for Bengali NLP. Future research will focus on exploring additional models, addressing class imbalance issues, and refining fine-tuning approaches to improve classification performance.
研究动机与目标
- 通过评估基于LLM的孟加拉语新闻分类,解决孟加拉语 NLP 资源不足的问题。
- 利用 Kaggle 上的孟加拉语大型报纸数据集 Prothom Alo,涵盖9个目标类别。
- 对多种 LLM 架构进行微调并比较,使用标准指标评估性能。
提出的方法
- 使用 Kaggle Prothom Alo 孟加拉语新闻数据集,包含 437,948 条样本和 9 个属性,重点关注 内容(Content) 与 类别(Category)。
- 通过 Random Under Sampler 平衡类别不均衡,并应用 KNN 聚类进行邻居分析。
- 对 LLaMA 3.1(8B)和 LLaMA 3.2(3B)使用 LoRA/QLoRA 和 4 位量化进行微调,以及对 Qwen 2.5(7B)使用标准提示进行九类别分类。
- 采用 80/20 训练/测试分割,使用准确率、精确率、召回率、F1 分数和混淆矩阵进行评估。
- 使用 wandb 跟踪实验并汇报结果,包括按类别的性能。
实验结果
研究问题
- RQ1不同的指令微调大型语言模型在孟加拉语新闻文本分类上的表现如何?
- RQ2在这些模型中,参数量更大是否与更高的准确率相关?
- RQ3对 LLM 基于孟加拉语文本分类,哪些类别最容易或最困难,原因是什么?
主要发现
- Qwen 2.5 的整体准确率最高,为 72%。
- LLaMA 3.1 和 LLaMA 3.2 的准确率分别为 53% 和 56%。
- 按类别结果显示,体育类的准确率最高(81%),教育类为 78.3%,观点类相对困难(58.8% 的准确率)。
- 混淆矩阵显示大多数错误分类发生在语义相关的类别之间,如 经济 vs 国际、生活方式 vs 娱乐。
- 量化与架构对性能有影响;在某些情况下,较小的 LLaMA 变体在某些方面略优于 8B 模型。
- 总体而言,该研究支持基于 LLM 的孟加拉语文本分类的可行性,并指出未来改进的方向。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。