Evaluating natural language generation models, particularly for method name prediction, poses significant challenges. A robust metric must account for the versatility of method naming, considering both semantic and syntactic variations. Traditional overlap-based metrics, such as ROUGE, fail to capture these nuances. Existing embedding-based metrics often suffer from imbalanced precision and recall, lack normalized scores, or make unrealistic assumptions about sequences. To address these limitations, we leverage the theory of optimal transport and construct WRDScore, a novel metric that strikes a balance between simplicity and effectiveness. In the WRDScore framework, we define precision as the maximum degree to which the predicted sequence's tokens are included in the reference sequence, token by token. Recall is calculated as the total cost of the optimal transport plan that maps the reference sequence to the predicted one. Finally, WRDScore is computed as the harmonic mean of precision and recall, balancing these two complementary metrics. Our metric is lightweight, normalized, and precision-recall-oriented, avoiding unrealistic assumptions while aligning well with human judgments. Experiments on a human-curated dataset confirm the superiority of WRDScore over other available text metrics.
On conducting better validation studies of automatic metrics in natural language generation evaluation
University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);College of Natural Sciences(自然科学学院)
自然语言生成(NLG)越来越受到关注,这突出了评价作为一个核心的方法论问题。由于对这些系统的人工评估成本很高,因此自动度量在NLG中具有广泛的吸引力。在语言生成的研究中,经常会发现应用现有的度量或提出新的度量是合适的。这些指标的应用完全依赖于验证研究-确定指标与人类判断相关性的研究。然而,在进行强验证研究时有许多细节和考虑因素。本文档适用于在NLG的广泛背景下验证现有指标或提出新指标的人员:我们1)首先撰写验证研究中的最佳实践,2)概述如何采用这些实践,3)在WMT'17指标共享任务\footnote{Our jupyter notebook containing the analyses is available at \url{https://github.com}}中进行分析,4)强调NLG指标的有前途的方法5)总结我们对该领域未来的看法。
Towards Explainable Evaluation Metrics for Natural Language Generation
Technische Universität Darmstadt(达姆施塔特工业大学);Imperial College London(伦敦帝国学院);University of Sheffield(谢菲尔德大学);Heidelberg Institute for Theoretical Studies(海德堡理论研究所);Google Research(谷歌研究院)
A global analysis of metrics used for measuring performance in natural language processing
Institute of Artificial Intelligence(人工智能研究所);Center for Medical Statistics, Informatics, and Intelligent Systems(医学统计、信息学与智能系统中心);Medical University of Vienna(维也纳医科大学)
测量自然语言处理模型的性能是一项挑战。传统上使用的指标,如BLEU和ROUGE,最初是为机器翻译和摘要设计的,已经被证明与人类判断的相关性低,并且缺乏可转移到其他任务和语言。在过去的15年里,已经提出了广泛的替代指标。然而,目前还不清楚这在多大程度上影响了NLP基准测试工作。在这里,我们提供了第一个大规模的横截面分析的指标用于衡量性能的自然语言处理。我们对来自开放资源库“Papers with Code”的3500多个机器学习模型性能结果进行了策划、映射和系统化,以实现全球和全面的分析。我们的研究结果表明,目前使用的大多数自然语言处理指标都具有可能导致模型性能反映不足的属性。此外,我们发现,指标报告中的模糊性和不一致性可能导致难以解释和比较模型性能,损害NLP研究的透明度和可重复性。
Evaluating natural language processing models with generalization metrics that do not need access to any training or testing data
Dartmouth College(达特茅斯学院);University of California, Berkeley(加州大学伯克利分校);University of Melbourne(墨尔本大学);Calculation Consulting(计算咨询公司);International Computer Science Institute(国际计算机科学研究所);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室)