Skip to main content
QUICK REVIEW

[论文解读] BERT Fine-Tuning for Sentiment Analysis on Indonesian Mobile Apps Reviews

Kuncahyo Setyo Nugroho, Anantha Yullian Sukmadewa|arXiv (Cornell University)|Jul 14, 2021
Sentiment Analysis and Opinion MiningComputer Science参考文献 43被引用 51
一句话总结

本研究针对印尼语移动应用评论的情感分析任务,对在印尼语文本上预训练的多语言 BERT 模型 IndoBERT-Base 进行微调。通过基于词典的标注方法与超参数调优,模型在 25 个周期、24 分钟训练时间内达到 84% 的准确率,优于多语言 BERT 和传统机器学习模型。

ABSTRACT

User reviews have an essential role in the success of the developed mobile apps. User reviews in the textual form are unstructured data, creating a very high complexity when processed for sentiment analysis. Previous approaches that have been used often ignore the context of reviews. In addition, the relatively small data makes the model overfitting. A new approach, BERT, has been introduced as a transfer learning model with a pre-trained model that has previously been trained to have a better context representation. This study examines the effectiveness of fine-tuning BERT for sentiment analysis using two different pre-trained models. Besides the multilingual pre-trained model, we use the pre-trained model that only has been trained in Indonesian. The dataset used is Indonesian user reviews of the ten best apps in 2020 in Google Play sites. We also perform hyper-parameter tuning to find the optimum trained model. Two training data labeling approaches were also tested to determine the effectiveness of the model, which is score-based and lexicon-based. The experimental results show that pre-trained models trained in Indonesian have better average accuracy on lexicon-based data. The pre-trained Indonesian model highest accuracy is 84%, with 25 epochs and a training time of 24 minutes. These results are better than all of the machine learning and multilingual pre-trained models.

研究动机与目标

  • 评估 BERT 微调在印尼语移动应用评论情感分析任务中的有效性。
  • 比较多语言 BERT-Base 与在印尼语上预训练的 IndoBERT-Base 预训练模型的性能差异。
  • 评估两种数据标注方法——基于评分与基于词典——对模型准确率的影响。
  • 识别提升模型性能的最优超参数组合,包括初始学习率与批量大小。
  • 确定领域特定预训练是否能提升低资源印尼语自然语言处理中的情感分类性能。

提出的方法

  • 在包含 10,615 条印尼语应用评论的数据集上,使用迁移学习对 IndoBERT-Base 和多语言 BERT-Base 进行微调。
  • 应用两种数据标注方法:基于评分(使用用户评分)与基于词典(使用情感词典进行情感极性分配)。
  • 对学习率(1e-5、2e-5、3e-5)、批量大小(16、32)和训练周期数(10、25)进行超参数调优。
  • 使用 10 折交叉验证以防止过拟合并确保评估的稳健性。
  • 使用 PyTorch 和 Hugging Face Transformers 库训练模型,并基于验证准确率实施早停策略。
  • 以准确率和训练时间为主要指标评估模型性能。

实验结果

研究问题

  • RQ1在印尼语应用评论的情感分析任务中,微调 IndoBERT-Base 是否优于多语言 BERT-Base?
  • RQ2基于评分与基于词典的标注方法中,哪种方法能获得更高的模型准确率?
  • RQ3学习率、批量大小与训练周期数的最优组合是什么,以实现最高准确率?
  • RQ4训练时间如何随模型规模与超参数设置而变化?
  • RQ5在印尼语文本上进行领域特定预训练是否优于多语言预训练,从而提升性能?

主要发现

  • 当使用 2e-5 的学习率、批量大小为 16、训练 25 个周期,并在基于词典的标注数据上微调时,IndoBERT-Base 达到最高的测试准确率 84%。
  • 基于词典的标注方法显著优于基于评分的标注方法(IndoBERT-Base 在基于词典标注下的准确率为 84%,而基于评分标注的准确率仅为 58.56%)。
  • 在所有指标上,IndoBERT-Base 均优于多语言 BERT-Base,尤其在基于词典数据的验证与测试准确率方面表现更优。
  • 训练时间随批量大小减小而增加,16 批次模型耗时 24 分钟(而 32 批次模型耗时 16–24 分钟),尽管小批量的准确率略高。
  • 表现最佳的模型(IndoBERT-Base,2e-5 学习率,16 批次大小,25 个周期)显示出稳定训练与验证准确率曲线,表明模型有效收敛。
  • 基线机器学习模型(如 SVM、随机森林)的准确率较低(最高为 78.9%),低于最佳 BERT 微调模型,证实了领域特定预训练下迁移学习的优势。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。