Are Some Words Worth More than Others?

Shiran Dudy, Steven Bedrick
10/12/2020
cs.CL

Official code: shiranD/word_level_evaluation (2 stars, Python, last commit 2020-10-15).

Abstract

Current evaluation metrics for language modeling and generation rely heavily on the accuracy of predicted (or generated) words as compared to a reference ground truth. While important, token-level accuracy only captures one aspect of a language model's behavior, and ignores linguistic properties of words that may allow some mis-predicted tokens to be useful in practice.

Show full abstract

Furthermore, statistics directly tied to prediction accuracy (including perplexity) may be confounded by the Zipfian nature of written language, as the majority of the prediction attempts will occur with frequently-occurring types. A model's performance may vary greatly between high- and low-frequency words, which in practice could lead to failure modes such as repetitive and dull generated text being produced by a downstream consumer of a language model. To address this, we propose two new intrinsic evaluation measures within the framework of a simple word prediction task that are designed to give a more holistic picture of a language model's performance. We evaluate several commonly-used large English language models using our proposed metrics, and demonstrate that our approach reveals functional differences in performance between the models that are obscured by more traditional metrics.

View on arXivView PDF

Code Implementations(1)

In this repo we provide code and support for word evaluation for GPT, GPT-2, Bert, RoBerta following the paper:

20Python, ShellAug 8, 20206 years ago

Similar Papers

Cite this paper

@article{dudy2020some,
  title  = {Are Some Words Worth More than Others?},
  author = {Shiran Dudy and Steven Bedrick},
  year   = {2020},
  eprint = {2010.06069},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.06069}
}

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

Discussion