arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.02553cs.CLcs.AI
收藏

自动化机器翻译中的行为测试

Automating Behavioral Testing in Machine Translation

Universitat Politècnica de Catalunya(加泰罗尼亚理工大学);Apple(苹果公司)

Javier Ferrando, Matthias Sperber, Hendra Setiawan, Dominic Telaar, Saša Hasan

AI总结:

本文提出利用 LLM 自动生成多样化源句及候选匹配集,以极少人工对多个机器翻译系统开展行为测试,发现了传统准确率指标遗漏的差异与潜在缺陷。

摘要:

NLP 中的行为测试通过分析输入-输出行为来考察系统的语言能力,从而实现对系统的细粒度评估。遗憾的是,目前机器翻译(MT)行为测试的相关工作主要局限于手工制作的测试,覆盖的能力和语言范围有限。为解决这一局限,我们提出使用大型语言模型(LLM)生成多样化的源语句集合,这些源语句专为测试 MT 模型在一系列情形下的行为而定制。随后,我们可以通过同样使用 LLM 生成的候选集合进行匹配,验证 MT 模型是否表现出预期行为。我们的方法旨在让 MT 系统的行为测试变得实用,同时只需极少的人工投入。在实验中,我们将所提出的评估框架应用于评估多个可用的 MT 系统,结果表明:尽管总体通过率遵循传统基于准确率的指标所呈现的趋势,但我们的方法能够发现若干仅依赖准确率时不会被注意到的重要差异和潜在缺陷。

英文摘要:

Behavioral testing in NLP allows fine-grained evaluation of systems by examining their linguistic capabilities through the analysis of input-output behavior. Unfortunately, existing work on behavioral testing in Machine Translation (MT) is currently restricted to largely handcrafted tests covering a limited range of capabilities and languages. To address this limitation, we propose to use Large Language Models (LLMs) to generate a diverse set of source sentences tailored to test the behavior of MT models in a range of situations. We can then verify whether the MT model exhibits the expected behavior through matching candidate sets that are also generated using LLMs. Our approach aims to make behavioral testing of MT systems practical while requiring only minimal human effort. In our experiments, we apply our proposed evaluation framework to assess multiple available MT systems, revealing that while in general pass-rates follow the trends observable from traditional accuracy-based metrics, our method was able to uncover several important differences and potential bugs that go unnoticed when relying only on accuracy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑