Rethinking and Refining the Distinct Metric

Siyang Liu, Sahand Sabour, Yinhe Zheng, Pei Ke, Xiaoyan Zhu +1 more
2/28/2022
cs.CLcs.AI

Official code: lsy641/Expectation-Adjusted-Distinct (1 star, Jupyter Notebook, last commit 2025-03-27).

Abstract

Distinct-$n$ score\cite{Li2016} is a widely used automatic metric for evaluating diversity in language generation tasks. However, we observed that the original approach for calculating distinct scores has evident biases that tend to assign higher penalties to longer sequences.

Show full abstract

We refine the calculation of distinct scores by scaling the number of distinct tokens based on their expectations. We provide both empirical and theoretical evidence to show that our method effectively removes the biases existing in the original distinct score. Our experiments show that our proposed metric, \textit{Expectation-Adjusted Distinct (EAD)}, correlates better with human judgment in evaluating response diversity. To foster future research, we provide an example implementation at \url{https://github.com/lsy641/Expectation-Adjusted-Distinct}.

View on arXivView PDF

Code Implementations(1)

10Jupyter NotebookMar 19, 20221 years ago

Similar Papers

Cite this paper

@article{liu2022rethinking,
  title  = {Rethinking and Refining the Distinct Metric},
  author = {Siyang Liu and Sahand Sabour and Yinhe Zheng and Pei Ke and Xiaoyan Zhu and Minlie Huang},
  year   = {2022},
  eprint = {2202.13587},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.13587}
}

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

Discussion