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

理解并通过邻域分析缓解文本分类中的虚假相关性

Understanding and Mitigating Spurious Correlations in Text Classification with Neighborhood Analysis

National Taiwan University(台湾大学);University of California, Los Angeles(加利福尼亚大学洛杉矶分校);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Oscar Chew, Hsuan-Tien Lin, Kai-Wei Chang, Kuan-Hao Huang

AI总结:

本文通过邻域分析揭示文本分类中虚假相关性导致嵌入空间错误聚类,提出检测度量与NFL正则化方法,有效提升分类器鲁棒性。

摘要:

近期研究揭示,机器学习模型倾向于利用训练集中存在但在一般情况下可能不成立的虚假相关性。例如,情感分类器可能错误地学习到“performances”这一标记通常与正面电影评论相关联。依赖这些虚假相关性会降低分类器在分布外数据上的性能。在本文中,我们通过一种名为邻域分析的新颖视角来审视虚假相关性的影响。该分析揭示了虚假相关性如何导致不相关的词在嵌入空间中错误地聚集在一起。受此分析驱动,我们设计了一种检测虚假标记的度量方法,并提出了一系列正则化方法,即NFL(doN't Forget your Language),以缓解文本分类中的虚假相关性。实验表明,NFL能有效防止错误聚类,并在无需辅助数据的情况下显著提升分类器的鲁棒性。代码公开于https://github.com/oscarchew/doNt-Forget-your-Language。

英文摘要:

Recent research has revealed that machine learning models have a tendency to leverage spurious correlations that exist in the training set but may not hold true in general circumstances. For instance, a sentiment classifier may erroneously learn that the token "performances" is commonly associated with positive movie reviews. Relying on these spurious correlations degrades the classifiers performance when it deploys on out-of-distribution data. In this paper, we examine the implications of spurious correlations through a novel perspective called neighborhood analysis. The analysis uncovers how spurious correlations lead unrelated words to erroneously cluster together in the embedding space. Driven by the analysis, we design a metric to detect spurious tokens and also propose a family of regularization methods, NFL (doN't Forget your Language) to mitigate spurious correlations in text classification. Experiments show that NFL can effectively prevent erroneous clusters and significantly improve the robustness of classifiers without auxiliary data. The code is publicly available at https://github.com/oscarchew/doNt-Forget-your-Language.

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

↑