arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.06785cs.CLcs.CCcs.LG
收藏

基于BERT语言模型的大规模新闻分类:Spark NLP方法

Large-Scale News Classification using BERT Language Model: Spark NLP Approach

Brawijaya University(布拉维贾亚大学)

Kuncahyo Setyo Nugroho, Anantha Yullian Sukmadewa, Novanto Yudistira

摘要:

在NLP之上的大数据分析的兴起增加了大规模文本处理的计算负担。NLP面临的问题是非常高维的文本,因此需要大量的计算资源。MapReduce允许大型计算的并行化,并且可以提高文本处理的效率。本研究旨在研究基于深度学习方法的大数据处理对自然语言处理任务的影响。我们使用预先训练好的模型对BERT进行微调,对新闻主题的大文本进行分类。在本研究中使用了具有不同数量参数的五个预训练模型。为了衡量这种方法的效率,我们将BERT的性能与Spark NLP的流水线进行了比较。结果表明,与使用Spark NLP的BERT相比,使用Spark NLP的BERT具有更高的精度。使用BERT的所有模型的平均精度和训练时间为0.9187和35分钟,而使用Spark NLP管道的BERT为0.8444和9分钟。模型越大,需要的计算资源越多,完成任务的时间也越长。然而,与没有Spark NLP的BERT相比,使用Spark NLP的BERT的准确率平均仅下降了5.7%,而训练时间则显著减少了62.9%。

英文摘要:

The rise of big data analytics on top of NLP increases the computational burden for text processing at scale. The problems faced in NLP are very high dimensional text, so it takes a high computation resource. The MapReduce allows parallelization of large computations and can improve the efficiency of text processing. This research aims to study the effect of big data processing on NLP tasks based on a deep learning approach. We classify a big text of news topics with fine-tuning BERT used pre-trained models. Five pre-trained models with a different number of parameters were used in this study. To measure the efficiency of this method, we compared the performance of the BERT with the pipelines from Spark NLP. The result shows that BERT without Spark NLP gives higher accuracy compared to BERT with Spark NLP. The accuracy average and training time of all models using BERT is 0.9187 and 35 minutes while using BERT with Spark NLP pipeline is 0.8444 and 9 minutes. The bigger model will take more computation resources and need a longer time to complete the tasks. However, the accuracy of BERT with Spark NLP only decreased by an average of 5.7%, while the training time was reduced significantly by 62.9% compared to BERT without Spark NLP.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑