Feature-Level Debiased Natural Language Understanding

Yougang Lyu, Piji Li, Yechang Yang, Maarten de Rijke, Pengjie Ren +3 more
12/11/2022
cs.CL
contrastive-ssl

Official code: youganglyu/DCT (6 stars, Python, last commit 2025-04-24).

Abstract

Natural language understanding (NLU) models often rely on dataset biases rather than intended task-relevant features to achieve high performance on specific datasets. As a result, these models perform poorly on datasets outside the training distribution.

Show full abstract

Some recent studies address this issue by reducing the weights of biased samples during the training process. However, these methods still encode biased latent features in representations and neglect the dynamic nature of bias, which hinders model prediction. We propose an NLU debiasing method, named debiasing contrastive learning (DCT), to simultaneously alleviate the above problems based on contrastive learning. We devise a debiasing, positive sampling strategy to mitigate biased latent features by selecting the least similar biased positive samples. We also propose a dynamic negative sampling strategy to capture the dynamic influence of biases by employing a bias-only model to dynamically select the most similar biased negative samples. We conduct experiments on three NLU benchmark datasets. Experimental results show that DCT outperforms state-of-the-art baselines on out-of-distribution datasets while maintaining in-distribution performance. We also verify that DCT can reduce biased latent features from the model's representation.

View on arXivView PDF

Code Implementations(1)

youganglyu/DCTOfficial100%
60Python, ShellNov 28, 20221 years ago

Similar Papers

Cite this paper

@article{lyu2022featurelevel,
  title  = {Feature-Level Debiased Natural Language Understanding},
  author = {Yougang Lyu and Piji Li and Yechang Yang and Maarten de Rijke and Pengjie Ren and Yukun Zhao and Dawei Yin and Zhaochun Ren},
  year   = {2022},
  eprint = {2212.05421},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.05421}
}

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/2212.05421.svg)](https://codeofpaper.com/paper/2212.05421)

Discussion