Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Chew, Oscar, Lin, Hsuan-Tien, Chang, Kai-Wei, Huang, Kuan-Hao
Format: Preprint
Veröffentlicht: 2023
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2305.13654
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911770526875648
author Chew, Oscar
Lin, Hsuan-Tien
Chang, Kai-Wei
Huang, Kuan-Hao
author_facet Chew, Oscar
Lin, Hsuan-Tien
Chang, Kai-Wei
Huang, Kuan-Hao
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2305_13654
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Understanding and Mitigating Spurious Correlations in Text Classification with Neighborhood Analysis
Chew, Oscar
Lin, Hsuan-Tien
Chang, Kai-Wei
Huang, Kuan-Hao
Computation and 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.
title Understanding and Mitigating Spurious Correlations in Text Classification with Neighborhood Analysis
topic Computation and Language
url https://arxiv.org/abs/2305.13654