arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2303.12936cs.CL
收藏

用于文本分类的深度上下文语言表示的泛化性分析

Analyzing the Generalizability of Deep Contextualized Language Representations For Text Classification

Boğaziçi University(海峡大学);Institute for Graduate Studies in Science and Engineering(科学与工程研究生院)

Berfu Buyukoz

摘要:

本研究评估了两种最先进的深度上下文语言表示,ELMo和DistilBERT,对二进制抗议新闻分类的监督学习和产品评论的情感分析的鲁棒性。使用与训练数据不同的测试集来启用“交叉上下文”设置。具体而言,在新闻分类任务中,模型是从印度本地新闻和测试从中国本地新闻。在情感分析任务中,模型在电影评论上进行训练,并在客户评论上进行测试。这种比较旨在探索当今自然语言处理系统在通往可推广到现实生活场景的系统的道路上的代表性能力的限制。这些模型被微调,并送入前馈神经网络和双向长短期记忆网络。多项朴素贝叶斯和线性支持向量机被用作传统的基线。结果表明,在二进制文本分类,DistilBERT是显着优于ELMo推广到跨上下文设置。观察到ELMo对交叉上下文测试数据的稳健性显著高于两个基线。另一方面,当训练数据和测试数据是同一语料库的子集(没有交叉上下文)时,基线表现得比ELMo好。DistilBERT比ELMo小30%,快83%。结果表明,DistilBERT可以更好地传递一般语义知识到其他领域比ELMo。DistilBERT也有利于融入现实生活中的系统,因为它需要较小的计算训练预算。当泛化不是最大的偏好并且测试域与训练域相似时,传统的ML算法仍然可以被认为是深度语言表示的更经济的替代方案。

英文摘要:

This study evaluates the robustness of two state-of-the-art deep contextual language representations, ELMo and DistilBERT, on supervised learning of binary protest news classification and sentiment analysis of product reviews. A "cross-context" setting is enabled using test sets that are distinct from the training data. Specifically, in the news classification task, the models are developed on local news from India and tested on the local news from China. In the sentiment analysis task, the models are trained on movie reviews and tested on customer reviews. This comparison is aimed at exploring the limits of the representative power of today's Natural Language Processing systems on the path to the systems that are generalizable to real-life scenarios. The models are fine-tuned and fed into a Feed-Forward Neural Network and a Bidirectional Long Short Term Memory network. Multinomial Naive Bayes and Linear Support Vector Machine are used as traditional baselines. The results show that, in binary text classification, DistilBERT is significantly better than ELMo on generalizing to the cross-context setting. ELMo is observed to be significantly more robust to the cross-context test data than both baselines. On the other hand, the baselines performed comparably well to ELMo when the training and test data are subsets of the same corpus (no cross-context). DistilBERT is also found to be 30% smaller and 83% faster than ELMo. The results suggest that DistilBERT can transfer generic semantic knowledge to other domains better than ELMo. DistilBERT is also favorable in incorporating into real-life systems for it requires a smaller computational training budget. When generalization is not the utmost preference and test domain is similar to the training domain, the traditional ML algorithms can still be considered as more economic alternatives to deep language representations.

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

↑