Skip to main content
QUICK REVIEW

[Paper Review] compare-mt: A Tool for Holistic Comparison of Language Generation Systems

Graham Neubig, Zi-Yi Dou|arXiv (Cornell University)|Mar 19, 2019
Topic ModelingComputer Science49 references14 citations
TL;DR

This paper introduces compare-mt, a pure-Python open-source tool for holistic, interactive comparison of language generation systems—particularly machine translation models—by enabling users to analyze differences in word-level accuracy, sentence-level performance, salient n-grams, and linguistic characteristics. It provides visual and statistical summaries via HTML reports, significantly reducing manual inspection time and revealing actionable insights into model improvements beyond aggregate metrics like BLEU.

ABSTRACT

In this paper, we describe compare-mt, a tool for holistic analysis and comparison of the results of systems for language generation tasks such as machine translation. The main goal of the tool is to give the user a high-level and coherent view of the salient differences between systems that can then be used to guide further analysis or system improvement. It implements a number of tools to do so, such as analysis of accuracy of generation of particular types of words, bucketed histograms of sentence accuracies or counts based on salient characteristics, and extraction of characteristic $n$-grams for each system. It also has a number of advanced features such as use of linguistic labels, source side data, or comparison of log likelihoods for probabilistic models, and also aims to be easily extensible by users to new types of analysis. The code is available at https://github.com/neulab/compare-mt

Motivation & Objective

  • To address the lack of transparent, systematic methods for identifying *why* a model improvement occurs beyond aggregate metrics like BLEU.
  • To reduce the time and cognitive load of manual error analysis by automating detection of salient differences between system outputs.
  • To provide researchers with an extensible, user-friendly tool that supports both basic and advanced linguistic analysis of generation outputs.
  • To enable discovery of system-level improvements through aggregate statistics such as word-type accuracy, sentence-length effects, and n-gram patterns.
  • To support integration with source-side linguistic features and probabilistic model outputs for deeper diagnostic analysis.

Proposed method

  • The tool takes reference translations and two system outputs as input, then computes a suite of comparative statistics across multiple dimensions.
  • It generates word-level F-measure scores grouped by part-of-speech or word frequency, enabling analysis of performance on rare or content words.
  • It creates bucketed histograms of sentence-level BLEU or accuracy scores based on sentence length, source complexity, or other structural features.
  • It extracts and ranks salient n-grams where one system outperforms another, highlighting systematic differences.
  • It supports advanced analysis using linguistic labels (e.g., named entities, grammatical roles), source-side alignments, and log-likelihood comparisons for probabilistic models.
  • It outputs rich, formatted reports in HTML with interactive charts, tables, and LaTeX-formatted results suitable for publication.

Experimental results

Research questions

  • RQ1What systematic differences in translation quality exist between a phrase-based and a neural machine translation system, beyond overall BLEU scores?
  • RQ2How can we automatically identify which types of words (e.g., low-frequency, function words) show the most improvement in a new model?
  • RQ3Can we detect patterns in sentence-level performance, such as improved accuracy on longer or more complex sentences?
  • RQ4How do linguistic characteristics like named entities or grammatical agreement influence model performance across systems?
  • RQ5To what extent can a holistic comparison tool reduce the need for manual, example-by-example inspection in model analysis?

Key findings

  • The neural machine translation (NMT) system achieved a 24.03 BLEU score compared to 22.43 for the phrase-based model (PBMT), with a statistically significant improvement (p < 0.001).
  • The NMT system produced shorter translations on average (93.82 tokens) than PBMT (94.79 tokens), also with a significant difference (p < 0.001).
  • Word-level F-measure analysis revealed that NMT significantly outperformed PBMT on low-frequency words and content words, especially in the 100–1000 frequency range.
  • Bucketed analysis showed that NMT maintained higher BLEU scores across all sentence length categories, with the most notable gains in medium-length sentences (10–30 words).
  • The extraction of salient n-grams identified that NMT improved translation of specific multi-word expressions and syntactic constructions, such as prepositional phrases and embedded clauses.
  • The tool’s HTML reports enabled direct integration into research papers, with all figures and tables in this paper generated by compare-mt with minimal formatting changes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.