Kernel-Whitening: Overcome Dataset Bias with Isotropic Sentence Embedding

Songyang Gao, Shihan Dou, Qi Zhang, Xuanjing Huang
10/14/2022
16 citations
cs.CLcs.LG

Official code: SleepThroughDifficulties/KernelWhitening (5 stars, Python, Apache-2.0, last commit 2022-11-26).

Abstract

Dataset bias has attracted increasing attention recently for its detrimental effect on the generalization ability of fine-tuned models. The current mainstream solution is designing an additional shallow model to pre-identify biased instances.

Show full abstract

However, such two-stage methods scale up the computational complexity of training process and obstruct valid feature information while mitigating bias. To address this issue, we utilize the representation normalization method which aims at disentangling the correlations between features of encoded sentences. We find it also promising in eliminating the bias problem by providing isotropic data distribution. We further propose Kernel-Whitening, a Nystrom kernel approximation method to achieve more thorough debiasing on nonlinear spurious correlations. Our framework is end-to-end with similar time consumption to fine-tuning. Experiments show that Kernel-Whitening significantly improves the performance of BERT on out-of-distribution datasets while maintaining in-distribution accuracy.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

this repo is python code for EMNLP 2022 submission "Kernel-Whitening: Overcome Dataset Bias with Isotropic Sentence Embedding"

50Python, ShellOct 10, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{gao2022kernelwhitening,
  title  = {Kernel-Whitening: Overcome Dataset Bias with Isotropic Sentence Embedding},
  author = {Songyang Gao and Shihan Dou and Qi Zhang and Xuanjing Huang},
  year   = {2022},
  eprint = {2210.07547},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.07547}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.07547.svg)](https://codeofpaper.com/paper/2210.07547)

Discussion