English

Mitigating Shortcuts in Language Models with Soft Label Encoding

Computation and Language 2023-09-19 v1 Machine Learning

Abstract

Recent research has shown that large language models rely on spurious correlations in the data for natural language understanding (NLU) tasks. In this work, we aim to answer the following research question: Can we reduce spurious correlations by modifying the ground truth labels of the training data? Specifically, we propose a simple yet effective debiasing framework, named Soft Label Encoding (SoftLE). We first train a teacher model with hard labels to determine each sample's degree of relying on shortcuts. We then add one dummy class to encode the shortcut degree, which is used to smooth other dimensions in the ground truth label to generate soft labels. This new ground truth label is used to train a more robust student model. Extensive experiments on two NLU benchmark tasks demonstrate that SoftLE significantly improves out-of-distribution generalization while maintaining satisfactory in-distribution accuracy.

Keywords

Cite

@article{arxiv.2309.09380,
  title  = {Mitigating Shortcuts in Language Models with Soft Label Encoding},
  author = {Zirui He and Huiqi Deng and Haiyan Zhao and Ninghao Liu and Mengnan Du},
  journal= {arXiv preprint arXiv:2309.09380},
  year   = {2023}
}
R2 v1 2026-06-28T12:24:09.953Z