arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.02246cs.CL
收藏

文本类型的对抗攻击实验

Experiments with adversarial attacks on text genres

MIPT(莫斯科物理技术学院);University of Leeds(利兹大学)

Mikhail Lepekhin, Serge Sharoff

摘要:

基于预先训练的Transformers的神经模型,如BERT或XLM-RoBERTa,在许多NLP任务中展示了SOTA结果,包括非主题分类,如体裁识别。然而,通常这些方法对测试文本的微小改动表现出较低的可靠性。一个相关的问题涉及训练语料库中的主题偏差,例如,在特定体裁中关于特定主题的单词的流行度可以欺骗体裁分类器来识别该体裁中关于该主题的任何文本。为了减轻可靠性问题,本文研究了攻击类型分类器的技术,以了解Transformer模型的局限性,并提高其性能。虽然简单的文本攻击,如那些基于词替换使用关键字提取的tf-idf,不能够欺骗强大的模型,如XLM-RoBERTa,我们表明,嵌入式算法,可以取代一些最“重要”的话与他们类似的话,例如,TextFocal,有能力影响模型预测的情况下,一个显着的比例。

英文摘要:

Neural models based on pre-trained transformers, such as BERT or XLM-RoBERTa, demonstrate SOTA results in many NLP tasks, including non-topical classification, such as genre identification. However, often these approaches exhibit low reliability to minor alterations of the test texts. A related probelm concerns topical biases in the training corpus, for example, the prevalence of words on a specific topic in a specific genre can trick the genre classifier to recognise any text on this topic in this genre. In order to mitigate the reliability problem, this paper investigates techniques for attacking genre classifiers to understand the limitations of the transformer models and to improve their performance. While simple text attacks, such as those based on word replacement using keywords extracted by tf-idf, are not capable of deceiving powerful models like XLM-RoBERTa, we show that embedding-based algorithms which can replace some of the most ``significant'' words with words similar to them, for example, TextFooler, have the ability to influence model predictions in a significant proportion of cases.

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

↑