SacreROUGE: An Open-Source Library for Using and Developing Summarization Evaluation Metrics

Daniel Deutsch, Dan Roth

Abstract

Evaluating text summarization is a complex task with no single "correct" output, leading to a fragmented landscape of evaluation metrics. SacreROUGE is an open-source Python library designed to unify this landscape. It provides a common interface for diverse metrics—ranging from classic ROUGE to modern embedding-based methods like BERTScore—while automating correlation analysis and standardizing dataset loading.

1. Introduction

The evaluation of automatic summarization systems is notoriously difficult. Unlike simple classification, there is no single ground truth, leading to a "wild west" of evaluation metrics. Researchers face significant hurdles, including language and interface fragmentation, the complexity of statistical correlation analysis, and inconsistent data formats across standard benchmarks like DUC and TAC. SacreROUGE aims to be the "SacreBLEU" of summarization—a single, reliable point of entry that ensures evaluation is reproducible and easy to implement.

2. The SacreROUGE Framework

The library is built around three core pillars:

  • Unified Metric Interface: SacreROUGE provides a common Python API. For metrics implemented in other languages (e.g., Perl or Java), the library uses Python wrappers that manage subprocesses, data serialization, and result parsing.
  • Dependency Management: A setup-metric command automates the downloading and compilation of external resources required by specific metrics.
  • Automated CLI: Using Python’s inspect and typing modules, the library automatically generates command-line interfaces for any metric, ensuring the CLI remains synchronized with the underlying code.

3. Statistical Analysis and Datasets

SacreROUGE includes built-in tools for scoring systems and calculating correlations (Pearson, Spearman, and Kendall) at the summary, system, and global levels. A key feature is the implementation of jackknifing, a technique that allows human references to be fairly compared to system outputs by scoring each reference against the remaining set.

The library also provides scripts to load and reformat foundational benchmarks into a common schema, including DUC (2001–2007), TAC (2008–2011), MultiLing Workshops (2011–2019), and the CNN/DailyMail dataset with human judgments.

4. Integrated Metrics and Results

SacreROUGE successfully integrates a wide array of popular metrics into a single ecosystem:

  • Classic: ROUGE, METEOR, AutoSummENG.
  • Graph/Distribution-based: MeMoG, NPowER, SIMetrix.
  • Modern/Embedding-based: BERTScore, BEwT-E, SumQE.

By providing these through a unified interface, the library significantly reduces the "engineering tax" required to conduct comprehensive and authoritative evaluations.

5. Conclusion

SacreROUGE addresses the fragmentation in summarization evaluation by providing a standardized, open-source toolkit. While its utility depends on community contributions and users must still manage licensed datasets, it represents a major step toward more rigorous and reproducible research in the field.

Summary updated

BibTeX
@misc{deutsch2020sacrerouge,
  author = {Daniel Deutsch and Dan Roth},
  title = {{SacreROUGE: An Open-Source Library for Using and Developing Summarization Evaluation Metrics}},
  year = {2020},
  eprint = {2007.05374},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.05374},
}
Figure