Understanding the Downstream Instability of Word Embeddings

Megan Leszczynski, Avner May, Jian Zhang, Sen Wu, Christopher R. Aberger +1 more
2/29/2020
cs.CLcs.LGstat.ML

Official code: HazyResearch/anchor-stability (12 stars, Jupyter Notebook, MIT, last commit 2022-08-23).

Abstract

Many industrial machine learning (ML) systems require frequent retraining to keep up-to-date with constantly changing data. This retraining exacerbates a large challenge facing ML systems today: model training is unstable, i.e., small changes in training data can cause significant changes in the model's predictions.

Show full abstract

In this paper, we work on developing a deeper understanding of this instability, with a focus on how a core building block of modern natural language processing (NLP) pipelines---pre-trained word embeddings---affects the instability of downstream NLP models. We first empirically reveal a tradeoff between stability and memory: increasing the embedding memory 2x can reduce the disagreement in predictions due to small changes in training data by 5% to 37% (relative). To theoretically explain this tradeoff, we introduce a new measure of embedding instability---the eigenspace instability measure---which we prove bounds the disagreement in downstream predictions introduced by the change in word embeddings. Practically, we show that the eigenspace instability measure can be a cost-effective way to choose embedding parameters to minimize instability without training downstream models, outperforming other embedding distance measures and performing competitively with a nearest neighbor-based measure. Finally, we demonstrate that the observed stability-memory tradeoffs extend to other types of embeddings as well, including knowledge graph and contextual word embeddings.

View on arXivView PDF

Code Implementations(1)

MIT

A study of the downstream instability of word embeddings

122Jupyter Notebook, ShellJan 14, 20204 years agoMIT

Similar Papers

Cite this paper

@article{leszczynski2020understanding,
  title  = {Understanding the Downstream Instability of Word Embeddings},
  author = {Megan Leszczynski and Avner May and Jian Zhang and Sen Wu and Christopher R. Aberger and Christopher Ré},
  year   = {2020},
  eprint = {2003.04983},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.04983}
}

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

Discussion