English

Simpson's Bias in NLP Training

Computation and Language 2021-03-23 v1 Artificial Intelligence Machine Learning

Abstract

In most machine learning tasks, we evaluate a model MM on a given data population SS by measuring a population-level metric F(S;M)F(S;M). Examples of such evaluation metric FF include precision/recall for (binary) recognition, the F1 score for multi-class classification, and the BLEU metric for language generation. On the other hand, the model MM is trained by optimizing a sample-level loss G(St;M)G(S_t;M) at each learning step tt, where StS_t is a subset of SS (a.k.a. the mini-batch). Popular choices of GG include cross-entropy loss, the Dice loss, and sentence-level BLEU scores. A fundamental assumption behind this paradigm is that the mean value of the sample-level loss GG, if averaged over all possible samples, should effectively represent the population-level metric FF of the task, such as, that E[G(St;M)]F(S;M)\mathbb{E}[ G(S_t;M) ] \approx F(S;M). In this paper, we systematically investigate the above assumption in several NLP tasks. We show, both theoretically and experimentally, that some popular designs of the sample-level loss GG may be inconsistent with the true population-level metric FF of the task, so that models trained to optimize the former can be substantially sub-optimal to the latter, a phenomenon we call it, Simpson's bias, due to its deep connections with the classic paradox known as Simpson's reversal paradox in statistics and social sciences.

Keywords

Cite

@article{arxiv.2103.11795,
  title  = {Simpson's Bias in NLP Training},
  author = {Fei Yuan and Longtu Zhang and Huang Bojun and Yaobo Liang},
  journal= {arXiv preprint arXiv:2103.11795},
  year   = {2021}
}

Comments

AAAI 2021

R2 v1 2026-06-24T00:25:16.622Z