ReMask:一种面向领域反事实生成的鲁棒信息掩码方法
ReMask: A Robust Information-Masking Approach for Domain Counterfactual Generation
AI总结:
针对NLP领域偏移中现有方法的不足,该研究提出三步领域混淆的ReMask方法,在多类领域自适应任务及数据集上取得优于现有最优方法的效果,并公开了代码。
摘要:
领域偏移是自然语言处理(NLP)中的一大挑战,因此许多方法借助学习领域不变特征来缓解推理阶段的领域偏移问题。但这类方法无法利用与当前任务相关的领域特定细微差异。为避免此类缺陷,领域反事实生成旨在将文本从源领域转换到给定的目标领域。然而,由于数据可用性有限,这类基于频率的方法常会遗漏部分有效的领域-词元关联,还会产生一些虚假的领域-词元关联。为此,我们采用一种三步领域混淆方法,包括基于频率和注意力范数的掩码(用于遮蔽领域特定线索)以及去掩码(用于恢复领域通用上下文)。我们的实验实证表明,由我们的掩码文本生成的反事实样本在12个领域情感分类设置中有10个提升了领域迁移效果,在无监督领域自适应(UDA)任务上相比现有最优方法平均准确率提升2%。此外,我们的模型在对抗领域自适应(ADA)设置下平均准确率提升1.4%,优于现有最优方法。不仅如此,我们的模型在一个大型多领域意图分类数据集上也展现出领域自适应效能,取得了最优结果。我们已在https://github.com/declare-lab/remask 公开发布代码。
英文摘要:
Domain shift is a big challenge in NLP, thus, many approaches resort to learning domain-invariant features to mitigate the inference phase domain shift. Such methods, however, fail to leverage the domain-specific nuances relevant to the task at hand. To avoid such drawbacks, domain counterfactual generation aims to transform a text from the source domain to a given target domain. However, due to the limited availability of data, such frequency-based methods often miss and lead to some valid and spurious domain-token associations. Hence, we employ a three-step domain obfuscation approach that involves frequency and attention norm-based masking, to mask domain-specific cues, and unmasking to regain the domain generic context. Our experiments empirically show that the counterfactual samples sourced from our masked text lead to improved domain transfer on 10 out of 12 domain sentiment classification settings, with an average of 2% accuracy improvement over the state-of-the-art for unsupervised domain adaptation (UDA). Further, our model outperforms the state-of-the-art by achieving 1.4% average accuracy improvement in the adversarial domain adaptation (ADA) setting. Moreover, our model also shows its domain adaptation efficacy on a large multi-domain intent classification dataset where it attains state-of-the-art results. We release the codes publicly at \url{https://github.com/declare-lab/remask}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。