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

ShufText:一种评估文本分类模型脆弱性的简单黑箱方法

ShufText: A Simple Black Box Approach to Evaluate the Fragility of Text Classification Models

Pune Institute of Computer Technology(浦那计算机技术学院);Indian Institute of Technology Madras(印度理工学院马德拉斯分校);L3Cube Pune(L3Cube浦那)

Rutuja Taware, Shraddha Varat, Gaurav Salunke, Chaitanya Gawande, Geetanjali Kale, Rahul Khengare, Raviraj Joshi

摘要:

文本分类是最基本的自然语言处理任务。它具有广泛的应用范围,从情感分析到主题分类。最近,基于CNN、LSTM和Transformers的深度学习方法已经成为文本分类的事实上的方法。在这项工作中,我们强调了与这些方法相关的一个共同问题。我们发现,这些系统过度依赖于文本中对分类有用的重要单词。在有限的训练数据和有区别的训练策略下,这些方法往往忽略句子的语义含义,而仅仅关注关键字或重要的n-gram。我们提出了一个简单的黑盒技术ShutText来呈现模型的缺点,并识别模型对关键字的过度依赖。这涉及随机打乱句子中的单词并评估分类准确性。我们看到,在常见的文本分类数据集上,洗牌的影响非常小,并且这些模型很有可能预测原始类别。我们还评估了语言模型预训练对这些模型的影响,并试图回答有关模型对域外句子的鲁棒性的问题。我们发现,基于CNN或LSTM的简单模型以及BERT等复杂模型在语法和语义理解方面都存在问题。

英文摘要:

Text classification is the most basic natural language processing task. It has a wide range of applications ranging from sentiment analysis to topic classification. Recently, deep learning approaches based on CNN, LSTM, and Transformers have been the de facto approach for text classification. In this work, we highlight a common issue associated with these approaches. We show that these systems are over-reliant on the important words present in the text that are useful for classification. With limited training data and discriminative training strategy, these approaches tend to ignore the semantic meaning of the sentence and rather just focus on keywords or important n-grams. We propose a simple black box technique ShutText to present the shortcomings of the model and identify the over-reliance of the model on keywords. This involves randomly shuffling the words in a sentence and evaluating the classification accuracy. We see that on common text classification datasets there is very little effect of shuffling and with high probability these models predict the original class. We also evaluate the effect of language model pretraining on these models and try to answer questions around model robustness to out of domain sentences. We show that simple models based on CNN or LSTM as well as complex models like BERT are questionable in terms of their syntactic and semantic understanding.

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

↑