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

数字的力量:通过每个样本使用四句对抗性句子进行微调实现鲁棒阅读理解

Power in Numbers: Robust reading comprehension by finetuning with four adversarial sentences per example

University of Texas at Austin(德克萨斯大学奥斯汀分校)

Ariel Marcus

AI总结:

本文针对阅读理解模型易受对抗性句子干扰的问题,使用 ELECTRA-Small 在加入一至五句对抗句的 SQuAD v1.1 上微调,发现四至五句可显著提升跨数据集鲁棒性。

摘要:

近期模型在使用 F1 分数评估阅读理解任务时,已在 Stanford Question Answering Dataset 上达到人类水平。然而,在一般情况下,教会机器理解文本的问题尚未解决。以往研究表明,通过在上下文中加入一句对抗性句子,阅读理解模型的 F1 分数会下降近一半。本文中,我使用新模型 ELECTRA-Small 复现了以往的对抗性研究,并证明该新模型的 F1 分数从 83.9% 降至 29.2%。为增强 ELECTRA-Small 对此攻击的抵御能力,我在 SQuAD v1.1 训练样本上对模型进行微调,在上下文段落中加入一至五句对抗性句子。与以往研究相同,我发现仅使用一句对抗性句子微调的模型无法很好地泛化到不同评估数据集。然而,当使用四或五句对抗性句子微调时,在大多数包含多句追加和前置对抗性句子的评估数据集上,该模型取得了超过 70% 的 F1 分数。结果表明,只要有足够多的样本,我们就可以使模型对对抗性攻击具备鲁棒性。

英文摘要:

Recent models have achieved human level performance on the Stanford Question Answering Dataset when using F1 scores to evaluate the reading comprehension task. Yet, teaching machines to comprehend text has not been solved in the general case. By appending one adversarial sentence to the context paragraph, past research has shown that the F1 scores from reading comprehension models drop almost in half. In this paper, I replicate past adversarial research with a new model, ELECTRA-Small, and demonstrate that the new model's F1 score drops from 83.9% to 29.2%. To improve ELECTRA-Small's resistance to this attack, I finetune the model on SQuAD v1.1 training examples with one to five adversarial sentences appended to the context paragraph. Like past research, I find that the finetuned model on one adversarial sentence does not generalize well across evaluation datasets. However, when finetuned on four or five adversarial sentences the model attains an F1 score of more than 70% on most evaluation datasets with multiple appended and prepended adversarial sentences. The results suggest that with enough examples we can make models robust to adversarial attacks.

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

↑