---
title: "Evaluating Natural Language Generation via Unbalanced Optimal Transport"
authors:
  - "Yimeng Chen"
  - "Yanyan Lan"
  - "Ruinbin Xiong"
  - "Liang Pang"
  - "Zhiming Ma"
  - "Xueqi Cheng"
doi: "10.24963/ijcai.2020/516"
url: "https://ijcai.org/proceedings/2020/516"
pdf: "https://ijcai.org/proceedings/2020/0516.pdf"
venue: "Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence"
year: 2020
pages: "3730-3736"
track: "Main track"
keywords:
  - "Natural Language Processing: Natural Language Generation"
  - "Natural Language Processing: Machine Translation"
  - "Natural Language Processing: Dialogue"
---

# Evaluating Natural Language Generation via Unbalanced Optimal Transport

Yimeng Chen, Yanyan Lan, Ruinbin Xiong, Liang Pang, Zhiming Ma, Xueqi Cheng

*Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence*, pages 3730-3736. DOI: [10.24963/ijcai.2020/516](https://doi.org/10.24963/ijcai.2020/516)

## Abstract

Embedding-based evaluation measures have shown promising improvements on the correlation with human judgments in natural language generation. In these measures, various intrinsic metrics are used in the computation, including generalized precision, recall, F-score and the earth mover's distance. However, the relations between these metrics are unclear, making it difficult to determine which measure to use in real applications. In this paper, we provide an in-depth study on the relations between these metrics. Inspired by the optimal transportation theory, we prove that these metrics correspond to the optimal transport problem with different hard marginal constraints. However, these hard marginal constraints may cause the problem of incomplete and noisy matching in the evaluation process. Therefore we propose a family of new evaluation metrics, namely Lazy Earth Mover's Distances, based on the more general unbalanced optimal transport problem. Experimental results on WMT18 and WMT19 show that our proposed metrics have the ability to produce more consistent evaluation results with human judgements, as compared with existing intrinsic metrics.

## Full text

## 1 Introduction

Natural language generation (NLG) has become a hot topic in the area of natural language processing, with a wide range of applications in many tasks, such as image captioning [Xu et al., 2015], machine translation [Bahdanau et al., 2014] and dialogue generation [Li et al., 2016]. To evaluate the performance of NLG methods, qualitative evaluation measures such as BLEU [Papineni et al., 2002], ROUGE [Lin, 2004] and METEOR [Banerjee and Lavie, 2005], are widely used to replace the costly human judgements. However, these measures fail to correlate well with human judgements due to their limitations in considering the semantic meanings of words or phrases, as shown in [Novikova et al., 2017].

∗Work done during the internship at ICT, CAS.

†Corresponding author.

Recently, embedding-based evaluation measures have been proposed to tackle with this problem. Typical examples include BERTScore [Zhang et al., 2020], YiSi-1 [Lo, 2019], WMD [Kusner et al., 2015], WMDo [Chow et al., 2019] and MoverScore [Zhao et al., 2019]. They first compute the semantic similarity between word representations, produced by word embedding models such as word2vec [Mikolov et al., 2013] or contextual embedding models such as BERT [Devlin et al., 2018]. The final score is then given by different intrinsic metrics, such as generalized precision, recall and F-score used in BERTScore, and the earth mover's distance (EMD) used in WMD, WMDo and MoverScore.

This paper focus on study the intrinsic metrics. The motivation comes from both empirical and theoretical perspectives. Empirically, it is unclear which intrinsic metric is the best. For example, previous studies have shown that the three different BERTScore versions perform differently on different data sets [Zhang et al., 2020]. Theoretically, existing work on the relations of these intrinsic metrics are superficial. For example, Zhao et al. [2019] classifies existing measures to two categories, where EMD is classified as the optimal matching (soft alignment), and generalized precision and recall are classified as the greedy matching (hard alignment). Generalized precision and recall are then transformed to a quasi (non-optimized) EMD form. To the best of our knowledge, an in-depth theoretical study on the relations of these intrinsic metrics is missing.

Inspired by the fact that EMD is a special optimal transport distance [Peyr´e et al., 2019], we conduct our study from the perspective of optimal transport theory. We theoretically prove that generalized precision and recall correspond to the optimal transport problem with unilateral hard marginal constraint, respectively; while EMD corresponds to the optimal transport problem with bilateral hard marginal constraints. Further considering the fact that F-score is the combination of precision and recall, the relation of different intrinsic metrics is clear. That is, they are the optimal transport problem with different hard marginal constraints. However, these hard constraints may cause serious problems in the NLG evaluation. When the candidate and reference sentences contain paraphrases of different length, only part of the paraphrasing words may be matched under the hard constraints, named incomplete matching problem. Besides, some words may be matched to less related ones, instead of their semantically close neighbors, named noisy matching problem.

To tackle these problems, we propose a family of new intrinsic metrics named Lazy Earth Mover's Distances (Lazy-EMDλc,λr ), induced by the more general unbalanced optimal transport problem with parameters λc, λr. Existing intrinsic metrics can be viewed as special extreme cases in our framework. Specifically, general precision, recall and EMD corresponds to Lazy-EMD∞,0 , Lazy-EMD0,∞ and Lazy-EMD∞,∞, respectively. Furthermore, we prove that Lazy-EMD has the ability to significantly alleviate the incomplete and noisy matching problem, by replacing the hard marginal constraints to the soft ones. We conduct extensive experiments on the large scale metric evaluation datasets provided by WMT18 and WMT19 [Ma et al., 2018; Ma et al., 2019]. Experimental results show that our proposed metrics produce more consistent results with human judgements, as compared with existing embedding-based evaluation measures.

Our contributions are summarised as follows:

- We theoretically prove the relations of different intrinsic metrics, i.e., the optimal transport problemwith different hard marginal constraints.
- We propose a family of new intrinsic metrics based on the more general unbalanced optimal transport problem, which significantly alleviate the incomplete and noisy matching problems of the existing measures.
- Extensive experiments on WMT18 and WMT19 show that our metric outperforms previous ones by producing more consistent results with human judgements.

## 2 Background

In this section, we introduce some details of the existing embedding-based evaluation measures for natural language generation. Since both BERTScore and YiSi-1 use generalized precision, recall and F-score as the intrinsic metrics, while WMD, WMDo and MoverScore all use earth mover's distance as the intrinsic metric, this section is separated into two subsections according to different intrinsic metrics.

First we give some notations. Suppose a sentence is represented as a triple (X,X,w), where X = (x1, · · · , xk) is a sequence of tokens, X = (x1, · · · , xk) is a sequence of token vectors, w = (w1, · · · ,wk) is a normalized vector with wi represents the weight assigned to xi.

## 2.1 Generalized Precision and Recall

Generalized precision and recall between a candidate sentence ( ˆX, ˆX, ˆw) and a reference sentence (X,X,w) are defined as follows. They measure the similarity of the two sentences.

Definition 1 (Generalized Precision and Recall).

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

where S(ˆxi, xj) measures the similarity of ˆxi and xj . In BERTScore [Zhang et al., 2020], the vector representation X is generated by the pre-trained model BERT [Devlin et al., 2018]. S is defined as the cosine similarity. The weight vector wi for each token is either uniform or defined by its inverse document frequency (IDF) computed using the reference sentences. Using generalized precision and recall as the internal metrics, we get two versions of BERTScore, denoted as PBERT and RBERT. FBERT is defined as their harmonic mean.

YiSi-1 is one typical configuration of YiSi [Lo, 2019]. The up-to-date version of YiSi-1 also uses BERT to generate X for X. The weight wi is defined by IDF computed using the reference sentences, with a plus-one smoothing in the logarithm. S is defined as the cosine similarity. The final score is defined as a weighted harmonic mean of generalized precision and recall. That is,

<!-- formula-not-decoded -->

where α is usually set to 0.7 in machine translation evaluation.

## 2.2 EarthMover's Distance

The earth mover's distance between the candidate sentence( ˆX, ˆX, ˆw) and the reference sentence (X,X,w) is defined as follows, which measures the dissimilarity of the two sentences.

Definition 2 (Earth Mover's Distance).

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

where C ∈ R| ˆX|×|X| , with Ci,j stands for the dissimilarity of ˆxi and xj. This definition is deduced from the general form of EMD in [Rubner et al., 1998] under the condition ∑i ˆwi = ∑j wj = 1.

Word Mover's Distance (WMD) [Kusner et al., 2015] is a typical EMD on two documents, where X is the sequence of content words in the document and X is the sequence of their word2vec embeddings. w is a normalized bag-of-words vector. The dissimilarity between two word vectors is measured by the Euclidean distance.

WMDo [Chow et al., 2019] is an extension of WMD that further incorporates word order. Different fromWMD, X is a sequence of both content and stopping words in the sentence, and the dissimilarity is defined based on the cosine similarity. The final score combines WMD with an additional penalty of word order.

MoverScore [Zhao et al., 2019] employs contextual embeddings to replace the word2vec embeddings. Specifically, X and X are generated by the pre-trained model BERT, and w is a normalized vector of the IDF weights. Furthermore, the EMD used in MoverScore is an extension of the original one from single words to n-grams.

## 2.3 Comparisons of Different Metrics

By incorporating embeddings into consideration, these measures have shown promising improvement with human correlation as compared with traditional measures such as BLEU, ROUGE, and METEOR, shown in [Kilickaya et al., 2016; Zhang et al., 2020; Ma et al., 2019]. However, it is not clear which intrinsic metric is the best. For example, previous empirical studies have shown that the three different BERTScore versions perform differently, and alternate as the best on different evaluation datasets [Zhang et al., 2020]. Besides, existing empirical studies on generalized F-score and EMD conducted by BERTScore and MoverScore generate different conclusions on WMT17.

In this case, a thorough theoretical analysis is crucial. However, most existing theoretical results are superficial. In [Zhao et al., 2019], different metrics are related by transforming generalized precision and recall to a quasi non-optimized form of EMD, without further understanding. Some work attempts to separate these metrics to different categories. In [Zhang et al., 2020], the generalized precision and recall, EMD are classified to the greedy and optimal matching, respectively. While in [Zhao et al., 2019], generalized precision and recall, and EMD are viewed as hard and soft alignments, respectively. Though different categories indeed show some connections and differences [Rus and Lintean, 2012], there lacks an in-depth theoretical study on the relations of these metrics. That is exactly the motivation of this paper.

## 3 Theoretical Analysis on the Relations

Now we show our main theoretical results of the relations between these intrinsic metrics, i.e., they are proven to be the optimal transport problem with different hard marginal constraints. The idea of relating different metrics via optimal transport theory comes from the fact that EMD is an instance of the standard optimal transport distance [Peyr´e et al., 2019].

## 3.1 Optimal Transport Problem

Generally, optimal transport problem is to find a transport plan that meets the transport requirements with a minimum cost. Suppose we have two discrete distributions PX and PY supported on X = (x1, · · · , xn) and Y = (y1, · · · , ym), respectively. The amount of mass on these points is given by µ ∈ Rn and ν ∈ Rm. Suppose the cost matrix is C, where Ci,j denotes the cost of transporting a unit of mass from point xi to yj . We define a coupling matrix P ∈ Rn×m + , where Pi,j stands for the amount of mass flowing from the mass at xi toward yj. Then the optimal coupling P∗ is the solution of the following standard optimal transport problem.

Definition 3 (Standard Optimal Transport).

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

From the definition, we can see that a feasible coupling matrix satisfies two hard constraints on the boundaries. Intuitively, if we view µ as the source and ν as the target, then P1m = µ means that all the mass µi on the point xi must be fully transported to Y , and PT 1n = ν means the total mass transported to yj must meet its capacity νj .

## 3.2 Relations as Different Constraints

By varying the constraints of Eq. (7), the optimal transport problem bridges generalized precision, recall and EMD.

Firstly, it is straightforward that EMD in Definition 2 corresponds to the optimal transport problem with constraints Eq. (7), by setting µ = ˆw, ν = w, and C to be the dissimilarity matrix as in Def. 2. That is to say, EMD could be represented as:

<!-- formula-not-decoded -->

In fact, generalized precision and recall correspond to the optimal transport problems with each hard marginal constraint in Eq. (7), respectively. Theorem 1 demonstrates how to relate generalized precision to the corresponding optimal transport problem, defined as follows.

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

Theorem 1. Let µ = ˆw, C = 1-S, where Si,j = S(ˆxi, xj) as defined in Def. 1. Suppose that the solution of the corresponding optimal transport problem (8) is denoted as P∗p , then generalized precision defined in Eq. (1) can be represented as

<!-- formula-not-decoded -->

Proof. As we discussed in 3.1, the constraint P1m = µ means all the mass µi on the point xi must be fully transported to Y , while with the constraint PT 1n = ν removed, there is no requirement on Y . As a result, the optimal plan is transporting all the mass µi on the point xi to the point yj with the lowest cost Ci,j. Therefore, the optimal coupling matrix of problem (8) can be written as:

<!-- formula-not-decoded -->

To prove it, suppose that there exists k, l such that (P ∗ p )k,l &gt; 0, and l ̸= k∗ := argminj Ck,j. Let P′ = P∗p , except that P ′k,l = 0, P ′k,k∗ = (P ∗ p )k,l + (P ∗ p )k,k∗. Then P′ satisfies the constraint, but we have 〈C,P′ 〉 &lt; 〈C,P∗p 〉, which is a contradiction.

As argminj Ci,j = argmaxj Si,j , µ = ˆw, we have

<!-- formula-not-decoded -->

The inner product of S and P∗p becomes

<!-- formula-not-decoded -->

With Si,j = S(ˆxi, xj), the above formula exactly equals to that of Eq. (1), i.e., generalized precision.

Similarly, we can prove that generalized recall corresponds to the optimal transport problem with another unilateral hard constraint, i.e., PT 1n = ν, where ν = w. Let the corresponding optimal coupling matrix denoted as P∗r , generalized recall can be written as R = 〈S, P∗r 〉.

Table 1: Evaluation scores under different metrics. Candidate 1 in both examples is better in human judgement. Bold indicates inconsistency.

|           |             | Translations                |      P |      R |      F |   Lazy-EMD |
|-----------|-------------|-----------------------------|--------|--------|--------|------------|
| Example   | reference   | The young man in a slicker. |      1 |      1 |      1 |          0 |
| 1         | candidate 1 | The boy in a coat.          | 0.9560 | 0.9419 | 0.9489 |     0.0533 |
| 1         | candidate 2 | The man in a coat.          | 0.9609 | 0.9408 | 0.9507 |     0.0553 |
| Example 2 | reference   | The boy in a coat.          |      1 |      1 |      1 |          0 |
|           | candidate 1 | The young man in a slicker. | 0.9419 | 0.9560 | 0.9489 |     0.0511 |
|           | candidate 2 | The old man in a slicker.   | 0.9324 | 0.9574 | 0.9447 |     0.0525 |

To conclude, we have proven that generalized precision, recall and EMD correspond to the optimal transport problem with different hard marginal constraints.

## 3.3 Problems of Hard Constraints

However, these hard constraints may cause some problems in the evaluation process. Consider the coupling value Pij: it can be viewed as an assignment of weights on ˆxi and xj, which are lexical tokens in the candidate and reference sentences, respectively. When the value is non-zero, we say the corresponding tokens are matched. In this paper, our theoretical analysis shows that the hard constraints may cause incomplete and noisy matching problems.

The incomplete matching problem means that only part of the paraphrasing words are matched, which usually happens when the candidate and reference sentences contain paraphrases of different length. Now we show why the hard constraints result in this phenomenon.

First consider generalized precision, suppose that word ˆx1 in the candidate sentence is a paraphrase of words x1 and x2 in the reference sentence. By the explicit form of P∗p in Eq. (10), ˆx1 will only be matched with one of x1 and x2, unless S(ˆx1, x1) equals exactly as S(ˆx1, x2), which is very rare even though x1 and x2 are similar. Similarly, when candidate sentences contain longer paraphrase, the incomplete matching problem will happen for generalized recall.

Table 1 shows two examples of the incomplete matching problem, corresponding to the generalized precision and recall, respectively. In both examples, 'boy' is matched with 'man', instead of 'young man'. Evaluation results given by generalized precision and recall are both contradicted by human judgements. As the harmonic mean of them, F-score sometimes fixes their bias as in Example 2. However in Example 1, F-score still shows inconsistency. We also show the results of our proposed new metric Lazy-EMD, of which the dissimilarity evaluations agree with human judgements.

For EMD, the bilateral hard constraints further limit the capacity of semantic units. As a result, the matching is dependent on the value of ˆw1, ˆw2 and w1. If w1 &gt; min( ˆw1, ˆw2), both ˆx1 and ˆx2 will be matched with x1. However if w1 ≤ min( ˆw1, ˆw2), since the optimal P∗ must satisfies ∑i P ∗ i,1 = w1, x1 will be only matched with the nearest one between ˆx1 and ˆx2. That is the incomplete matching problem.

Noisy matching problem means that words are matched with some less relevant tokens, instead of their semantic neighbors. We still consider the above example, with further assumption that the rest of the words in the reference sentence are less relevant with either ˆx1 or ˆx2 semantically. For EMD, when w1 = ˆw1, C1,1 &lt; C2,1, coupling P ∗ 1,1 = ˆw1. By the constraint on PT 1n, ∑i P ∗ i,1 = ˆw1, then we have P ∗ 2,1 = 0. Since the constraint requires ∑j P ∗ 2,j = ˆw2, there exists some k s.t. P ∗ 2,k &gt; 0. In other words, instead of x1, ˆx2 will be matched to some unrelated words. That is exactly the noisy matching problem.

## 4 Lazy EarthMover's Distances

To tackle the above problems, we propose a family of new intrinsic metrics, namely Lazy Earth Mover's Distances, induced from the more general unbalanced optimal transport problem. Unbalanced optimal transport problem [Peyr´e et al., 2019] relaxes the hard marginal constraints in standard optimal transport, by incorporating them into the optimization objective as penalties.

Definition 4 (Unbalanced Optimal Transport).

<!-- formula-not-decoded -->

In the definition, parameters λc and λr control how much the corresponding marginal deviation are penalized, measured by K-L divergence [Kullback and Leibler, 1951].

Let µ = ˆw, ν = w, and C be the dissimilarity matrix as in Thm. 1. Denote P∗ λc,λr as the corresponding optimal coupling matrix of the unbalanced optimal problem with penalty parameters λc, λr . The Lazy Earth Mover's Distance between sentences is then defined as follows.

<!-- formula-not-decoded -->

The word 'lazy' is to emphasize the fact that the final transport plan may not meet its original requirement. The transport behavior will be further explained in Section 4.1.

From the above definitions, we can see that standard optimal transport problem is a special case of unbalanced optimal transport problem, with λc = ∞, λr = ∞. Furthermore, P∗p and P∗r are the solutions of the unbalanced transport problem with λc = ∞, λr = 0, and λc = 0, λr = ∞, respectively. Therefore, the intrinsic metrics generalized precision, recall, and EMD can be viewed as special Lazy-EMDs:

<!-- formula-not-decoded -->

Table 2: Kendall's correlations of different metrics with segment-level human judgements on WMT18. For each language pair, the left number is the correlation of to-English, and the right is that of from-English. Highest correlation scores for each language pair are highlighted in bold. Numbers with ∗ are slightly different from those in [Zhang et al., 2020].

| n        | cs-en 5k/5k   | de-en 78k/20k   | et-en 57k/32k   | fi-en 16k/10k   | ru-en 10k/22k   | tr-en 9k/1k   | zh-en 33k/29k   |
|----------|---------------|-----------------|-----------------|-----------------|-----------------|---------------|-----------------|
| SENTBLEU | .233/.389     | .415/.620       | .285/.414       | .154/.355       | .228/.330       | .145/.261     | .178/.311       |
| PBERT    | .387/.539*    | .541/.713*      | .389/.547*      | .283/.482*      | .345/.418*      | .280/.339*    | .248/.337       |
| RBERT    | .388/.571*    | .546/.727*      | .391/.591*      | .304/.561*      | .343/.421*      | .290/.395*    | .255/.368*      |
| FBERT    | .404/.559*    | .550/.726*      | .397/.584*      | .296/.538*      | .353/.424*      | .292/.389*    | .264/.364       |
| YiSi-1   | .406/.562     | .551/.731       | .396/.589       | .305/.551       | .350/.424       | .294/.401     | .262/.370       |
| Fα       | .404/.570     | .550/.728       | .398/.591       | .296/.563       | .354/.422       | .289/.398     | .265/.370       |
| EMD      | .393/.548     | .540/.718       | .389/.585       | .291/.528       | .336/.416       | .276/.364     | .263/.371       |
| Lazy-EMD | .403/.555     | .544/.730       | .395/.591       | .301/.562       | .350/.424       | .281/.404     | .264/.372       |

## 4.1 Optimal Transport Plan of Lazy-EMD

Intuitively, by replacing hard marginal constraints with soft ones, Lazy-EMDs have the ability to alleviate the incomplete and noisy matching problems. Now we theoretically prove the above claim, by investigating the optimal transport plan of the unbalanced optimal transport problem.

Suppose that the candidate sentence is mapped to ˆX = (ˆx1, · · · , ˆxn), with a weight vector ˆw = ( ˆw1, · · · , ˆwn) representing the mass on each token. For simplicity, we consider the case where the reference sentence contains only one word X = (xr), with a unit of mass on it. Let the transport cost from xr to ˆxi be ci &gt; 0, ∀i, and the transport plan be a vector P = (p1, · · · , pn)T . Then the optimal transport plan can be obtained with closed form shown in the following theorem.

Theorem 2. The optimal transport plan P∗λc,λr of the unbalanced transport problem with penalty parameters 0 &lt; λc, λr &lt; ∞ satisfies

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

From the results, we can see that the optimal transport plan is obtained by reweighting the mass vector ˆw. Specifically, the coefficient exp(- ci λc - λr λc A) is a decreasing function of ci. If the incomplete matching problem happens for ˆxi, ˆxi must be semantically close with xr, i.e., Si,r is large. Therefore, ci = 1 - Si,r is small, and the reweighting coefficient of p∗i will be large. In this way, the incomplete matching problem will be significantly alleviated. Similarly, the noisy matching problem usually happens for less relevant tokens with large costs. Therefore, the reweighting coefficients in the optimal transport plan on these tokens will be small. In this way, the noisy matching problem will be alleviated.

We further analyze the impact of penalty parameters λc and λr on the optimal coupling P∗ . It is clear that p∗i increases with λc and λr. So the unilateral and bilateral upper bounds are achieved by the optimal coupling correspondent to generalized precision, recall and EMD. That is,

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

## 5 Experiments

This section demonstrates our experimental results on WMT18 [Ma et al., 2018] and WMT19 [Ma et al., 2019]. We evaluate six different intrinsic metrics, i.e. generalized precision, recall, F1, Fα, WMD and Lazy-EMD, by their segmentlevel correlations with human judgments.

## 5.1 Datasets

Our experiments are conducted on WMT18 and WMT19, two widely used machine translation datasets for evaluating NLG measures. Specifically, WMT18 contains predictions of 149 translation systems across 14 language pairs, while WMT19 contains predictions of 193 translation systems across 15 language pairs. We follow the WMT18 and WMT19 standard practice and use Kendall rank correlation to evaluate metric quality on the segment-level human judgements, where WMT18 contains the relative ranking result of 327k sentence pairs and WMT19 contains 531k sentence pairs.

## 5.2 Implementation Details

For a fair comparison, we fix the embeddings and focus on comparing different intrinsic metrics. According to previous studies [Peters et al., 2018; Devlin et al., 2018], the contextual embeddings produced by BERT is usually better than word2vec-based word embeddings for various downstream NLP tasks. So we apply the default setting of BERTScore to other measures in our comparison. The implementation is based on BERTScore v0.2.2.

For EMD computation, the built-in function ot.emd in python package POT is used [Flamary and Courty, 2017]. Lazy-EMD is computed with the generalized Sinkhorn scaling algorithm. 1 The regularization parameter in the Sinkhornscaling algorithm is set as 0.009. The penalty parameters are set to be different for three data categories, based on the target language of the translation, i.e., English, Chinese and others. For English, the parameter is set to (0.23, 0.31), which is tuned on et-en in WMT18. For Chinese, the parameter is set as (0.018, 0.97), which is tuned on en-zh in WMT19. For other languages, the parameter is set as (0.009, 0.95), which is tuned on en-cs in WMT19.

[1 Code is available at https://github.com/Beastlyprime/lazy emd](https://github.com/Beastlyprime/lazy_emd)

Table 3: Kendall's correlations of different metrics with segment-level human judgements on WMT19, with notations similar to that on WMT18. The results on 'cs-en' is missing because there is no such data on WMT19.

| n        | cs-en -/27k   | de-en 85k/100k   | fi-en 38k/32k   | gu-en 31k/11k   | kk-en 27k/18k   | lt-en 22k/17k   | ru-en 46k/24k   | zh-en 31k/19k   |
|----------|---------------|------------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
| SENTBLEU | -/.367        | .056/.248        | .233/.396       | .188/.465       | .377/.392       | .262/.334       | .125/.469       | .323/.270       |
| PBERT    | -/.444        | .156/.314        | .326/.498       | .307/.519       | .419/.493       | .375/.422       | .212/.540       | .410/.306       |
| RBERT    | -/.494        | .160/.351        | .346/.521       | .295/.562       | .416/.541       | .367/.449       | .216/.577       | .427/.352       |
| FBERT    | -/.479        | .166/.338        | .344/.518       | .313/.554       | .434/.532       | .375/.448       | .223/.572       | .430/.347       |
| YiSi-1   | -/.486        | .165/.345        | .346/.521       | .317/.563       | .433/.538       | .373/.450       | .225/.575       | .433/.353       |
| Fα       | -/.495        | .165/.351        | .344/.522       | .314/.563       | .434/.541       | .375/.449       | .223/.578       | .429/.357       |
| EMD      | -/.479        | .159/.338        | .342/.523       | .318/.561       | .432/.539       | .377/.455       | .215/.566       | .430/.343       |
| Lazy-EMD | -/.498        | .174/.356        | .346/.526       | .318/.569       | .431/.541       | .377/.466       | .215/.582       | .433/.352       |

Table 4: Influences of different parameters for Lazy-EMD onWMT19.

| (λc, λr)      | cs-en -/27k   | de-en 85k/100k   | fi-en 38k/32k   | gu-en 31k/11k   | kk-en 27k/18k   | lt-en 22k/17k   | ru-en 46k/24k   | zh-en 31k/19k   |
|---------------|---------------|------------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
| (0.23, 0.31)  | -/.487        | .174/.351        | .346/.523       | .318/.562       | .431/.531       | .377/.471       | .215/.579       | .433/.337       |
| (0.009, 0.95) | -/.498        | .172/.356        | .343/.526       | .292/.570       | .413/.541       | .369/.466       | .213/.582       | .427/.351       |
| (0.018, 0.97) | -/.497        | .174/.355        | .343/.526       | .293/.569       | .415/.541       | .368/.467       | .214/.581       | .426/.352       |

We compare Lazy-EMD with generalized precision, recall, F1 and EMD. Further considering that Lazy-EMD is a soft EMD which involves additional parameters, we also compare with Fα, where the parameter α is used to balance the effect of precision and recall. Fα can be viewed as an extension of F1 used in YiSi-1 (α = 0.7). In our experiments, α is tuned in the same way as we do for Lazy-EMD. Specifically, α is set to 0.48, 0.9, and 0.96 for English, Chinese and other target languages, respectively.

## 5.3 Experimental Results

Table 2 and Table 3 show our main experimental results. From the results, we can see that all the embedding-based measures outperform the n-gram based evaluation measure sentBLEU [Ma et al., 2018]. However, since WMT18 is relatively not large, all the embedding-based metrics perform comparably. For the larger dataset WMT19, Lazy-EMD outperforms all baselines in all translation scenarios, even better than Fα. Specifically, Lazy-EMD achieves the best correlation on 12 of 15 language pairs, which validates the advantage of replacing hard marginal constraints with soft ones.

Since the results in Table 2 and Table 3 are under parameters specifically tuned for different target languages, we show the performances of Lazy-EMD under the three different parameters on WMT19, to further study the influence of different penalty parameters. The results are demonstrated in Table 4. We can see that optimal parameter choices do differ between languages. However, the bottom two lines show the performance of Lazy-EMD is insensitive to slight variation on the parameters, which is another benefit of the proposed metric. The analysis of the origin of the difference in optimal parameters will be an interesting topic for future research.

## 6 Conclusions

This paper focuses on studying different intrinsic metrics of existing embedding-based evaluation measures, i.e., generalized precision, recall, F-score and EMD. We theoretically prove that these intrinsic metrics correspond to the optimal transport problem with different hard marginal constraints. To tackle the incomplete and noisy matching problems of these intrinsic metrics, we propose a family of new metrics, namely Lazy-EMD, based on the more general unbalanced optimal transport problem. Extensive experiments on WMT18 and WMT19 show that Lazy-EMD outperform traditional embedding-based measures in terms of consistency with segment-level human judgements.

To the best of our knowledge, this is the first in-depth theoretical study on the relations of different embedding-based NLG evaluation measures. The main novelty lies in the viewpoint of optimal transport theory. In the future, we plan to extend Lazy-EMD to evaluate distance between documents by incorporating document structure into the unbalanced optimal transport problem.

## Acknowledgments

This work was supported by Beijing Academy of Artificial Intelligence (BAAI) under Grants No. BAAI2019ZD0306, and BAAI2020ZJ0303, the National Natural Science Foundation of China (NSFC) under Grants No. 61722211, 61773362, 61872338, 61902381, and 61906180, the Youth Innovation Promotion Association CAS under Grants No. 20144310, and 2016102, the National Key RD Program of China under Grants No. 2016QY02D0405, the Lenovo-CAS Joint Lab Youth Scientist Project, and Tencent AI Lab RhinoBird Focused Research Program (No. JR202033).

## References

1. [Bahdanau et al., 2014] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
2. [Banerjee and Lavie, 2005] Satanjeev Banerjee and Alon Lavie. Meteor: An automatic metric for mt evaluation with improved correlation with human judgments. In Proceed- ings of the acl workshop on intrinsic and extrinsic evalua- tion measures for machine translation and/or summariza- tion, pages 65-72, 2005.
3. [Chow et al., 2019] Julian Chow, Lucia Specia, and Pranava Swaroop Madhyastha. Wmdo: Fluency-based word mover's distance for machine translation evaluation. In Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1), pages 494-500, 2019.
4. [Devlin et al., 2018] Jacob Devlin, Ming-Wei Chang, Ken- ton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understand- ing. arXiv preprint arXiv:1810.04805, 2018.
5. [Flamary and Courty, 2017] R'emi Flamary and Nicolas Courty. Pot python optimal transport library, 2017.
6. [Kilickaya et al., 2016] Mert Kilickaya, Aykut Erdem, Na- zli Ikizler-Cinbis, and Erkut Erdem. Re-evaluating au- tomatic metrics for image captioning. arXiv preprint arXiv:1612.07600, 2016.
7. [Kullback and Leibler, 1951] Solomon Kullback and Richard A Leibler. On information and sufficiency. The annals of mathematical statistics, 22(1):79-86, 1951.
8. [Kusner et al., 2015] Matt Kusner, Yu Sun, Nicholas Kolkin, and Kilian Weinberger. From word embeddings to docu- ment distances. In International conference on machine learning, pages 957-966, 2015.
9. [Li et al., 2016] Jiwei Li, Will Monroe, Alan Ritter, Michel Galley, Jianfeng Gao, and Dan Jurafsky. Deep reinforce- ment learning for dialogue generation. arXiv preprint arXiv:1606.01541, 2016.
10. [Lin, 2004] Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pages 74-81, 2004.
11. [Lo, 2019] Chi-kiu Lo. Yisi-a unified semantic mt quality evaluation and estimation metric for languages with dif- ferent levels of available resources. In Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1), pages 507-513, 2019.
12. [Ma et al., 2018] Qingsong Ma, Ondřej Bojar, and Yvette Graham. Results of the wmt18 metrics shared task: Both characters and embeddings achieve good performance. In Proceedings of the third conference on machine transla- tion: shared task papers, pages 671-688, 2018.
13. [Ma et al., 2019] Qingsong Ma, Johnny Wei, Ondřej Bojar, and Yvette Graham. Results of the wmt19 metrics shared task: Segment-level and strong mt systems pose big chal- lenges. In Proceedings of the Fourth Conference on Ma- chine Translation (Volume 2: Shared Task Papers, Day 1), pages 62-90, 2019.
14. [Mikolov et al., 2013] Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013.
15. [Novikova et al., 2017] Jekaterina Novikova, Ondřej Dušek, Amanda Cercas Curry, and Verena Rieser. Why we need new evaluation metrics for nlg. arXiv preprint arXiv:1707.06875, 2017.
16. [Papineni et al., 2002] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for auto- matic evaluation of machine translation. In Proceedings of the 40th annual meeting on association for computational linguistics, pages 311-318. Association for Computational Linguistics, 2002.
17. [Peters et al., 2018] Matthew E Peters, Mark Neumann, Mo- hit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word repre- sentations. arXiv preprint arXiv:1802.05365, 2018.
18. [Peyré et al., 2019] Gabriel Peyré, Marco Cuturi, et al. Com- putational optimal transport. Foundations and Trends R in Machine Learning, 11(5-6):355-607, 2019.
19. [Rubner et al., 1998] Yossi Rubner, Carlo Tomasi, and Leonidas J Guibas. A metric for distributions with ap- plications to image databases. In Sixth International Con- ference on Computer Vision (IEEE Cat. No. 98CH36271), pages 59-66. IEEE, 1998.
20. [Rus and Lintean, 2012] Vasile Rus and Mihai Lintean. A comparison of greedy and optimal assessment of natural language student input using word-to-word similarity met- rics. In Proceedings of the Seventh Workshop on Building Educational Applications Using NLP, pages 157-162. As- sociation for Computational Linguistics, 2012.
21. [Xu et al., 2015] Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International conference on machine learning, pages 2048-2057, 2015.
22. [Zhang et al., 2020] Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger, and Yoav Artzi. Bertscore: Evaluating text generation with bert. In International Con- ference on Learning Representations, 2020.
23. [Zhao et al., 2019] Wei Zhao, Maxime Peyrard, Fei Liu, Yang Gao, Christian M Meyer, and Steffen Eger. Mover- score: Text generation evaluating with contextualized em- beddings and earth mover distance. In Proceedings of the 2019 Conference on Empirical Methods in Natural Lan- guage Processing and the 9th International Joint Confer- ence on Natural Language Processing (EMNLP-IJCNLP), pages 563-578, 2019.
