Source-linked AI summary

Robustness Gym: Unifying the NLP Evaluation Landscape

Karan Goel, Nazneen Rajani, Jesse Vig, Samson Tan, Jason Wu, Stephan Zheng, Caiming Xiong, Mohit Bansal, Christopher Ré

arXiv:2101.04840v1cs.CLcs.AIcs.LG

TL;DR

NLP robustness evaluation is fragmented and standard benchmarks can miss failures under shifted or deployment-like conditions. The paper introduces Robustness Gym, a unified toolkit and continual evaluation workflow spanning four evaluation paradigms. Case studies reveal substantial weaknesses in sentiment, named entity linking, and summarization systems, while the paper notes scope limitations in its analyses and evaluation metrics.

  • Problem

    Standard i.i.d. evaluation can miss model failures under distribution shifts, while practitioners lack systematic ways to choose and combine robustness evaluations.

  • Method

    Robustness Gym unifies subpopulations, transformations, evaluation sets, and adversarial attacks within a Contemplate → Create → Consolidate workflow for building, sharing, and reporting evaluations.

  • Results

    The case studies show performance degradation and systematic weaknesses across sentiment modeling, named entity linking, and summarization, including 18% degradation on 12 of 172 sentiment slices.

  • Takeaways & Limitations

    Robustness Gym supports practitioner-facing continual evaluation and enables comparative analyses of commercial and academic NLP systems across fine-grained robustness conditions.

  • Takeaways & Limitations

    The authors note that current evaluation metrics may be unable to capture some meaningful performance differences among summarization models.

Abstract

from arXiv · show

Despite impressive performance on standard benchmarks, deep neural networks are often brittle when deployed in real-world systems. Consequently, recent research has focused on testing the robustness of such models, resulting in a diverse set of evaluation methodologies ranging from adversarial attacks to rule-based data transformations. In this work, we identify challenges with evaluating NLP systems and propose a solution in the form of Robustness Gym (RG), a simple and extensible evaluation toolkit that unifies 4 standard evaluation paradigms: subpopulations, transformations, evaluation sets, and adversarial attacks. By providing a common platform for evaluation, Robustness Gym enables practitioners to compare results from all 4 evaluation paradigms with just a few clicks, and to easily develop and share novel evaluation methods using a built-in set of abstractions. To validate Robustness Gym's utility to practitioners, we conducted a real-world case study with a sentiment-modeling team, revealing performance degradations of 18%+. To verify that Robustness Gym can aid novel research analyses, we perform the first study of state-of-the-art commercial and academic named entity linking (NEL) systems, as well as a fine-grained analysis of state-of-the-art summarization models. For NEL, commercial systems struggle to link rare entities and lag their academic counterparts by 10%+, while state-of-the-art summarization models struggle on examples that require abstraction and distillation, degrading by 9%+. Robustness Gym can be found at https://robustnessgym.com/

1 Introduction

NLP models that perform well on i.i.d. benchmarks can fail under corruptions, distribution shifts, harmful manipulations, and spurious correlations, motivating more systematic robustness evaluation. Robustness Gym unifies evaluation workflows and supports practitioner and research analyses, revealing substantial degradation and model weaknesses.

  • Motivation: NLP models achieving high i.i.d. accuracy can remain vulnerable to corruptions, distribution shifts, harmful manipulations, and spurious patterns.These vulnerabilities limit generalization to unseen data and hinder trustworthy deployment.
  • Toolkit and workflow: Robustness Gym organizes continual evaluation through Contemplate, Create, and Consolidate stages.Practitioners select evaluations, build data slices, then version, share, and report findings through testbenches.
  • Practitioner validation: 18% degradation was found on 12 of 172 slices in a 3-hour sentiment-modeling case study.The Salesforce team evaluated slices spanning 3 evaluation idioms and generated a shared testbench and robustness report.
  • Research analyses: The toolkit supports new research analyses of named entity linking and fine-grained summarization performance.These studies examine commercial and academic NEL systems and state-of-the-art summarization models.
  • Research findings: Commercial NEL systems struggle with rare entities, while summarization models struggle with abstraction, distillation, and entity-rich summaries.The NEL study compares commercial APIs with open-source systems, and the summarization study compares 7 models across 5 subpopulations.

2 Current Evaluation Challenges

Current evaluation often assumes i.i.d. data even though deployment conditions shift, and practitioners lack systematic support for choosing, combining, storing, and sharing evaluations. The paper identifies three challenges: paradox of choice, idiomatic lock-in, and workflow fragmentation.

  • Model evaluation: Standard validation can overestimate performance when real-world train and test distributions differ.Changing conditions and emerging entities can expose degradation that i.i.d. validation does not preempt.
  • Model evaluation: Continual evaluation is needed because models can exploit spurious correlations and fail under small distribution shifts or deployment conditions.Traditional evaluation often produces a static performance artifact rather than tracking changing limitations.
  • Paradox of choice: The paradox of choice leaves practitioners unsure which evaluation to run next despite changing needs and accumulated knowledge of model limitations.Existing tools largely support implementing particular evaluations rather than prioritizing the next evaluation.
  • Idiomatic lock-in: Idiomatic lock-in arises because tools typically support only subsets of four evaluation idioms: subpopulations, transformations, attacks, and evaluation sets.Practitioners may need to combine multiple tools when broad evaluations mix idioms.
  • Response: Robustness Gym addresses these challenges with open interfaces supporting all four idioms and workflows for creating, versioning, and reporting evaluations.Its support includes SliceBuilders, testbenches, and Robustness Reports.
  • Workflow fragmentation: Workflow fragmentation makes it difficult to version, consolidate, share, and consistently report evaluation findings across tools.Only 6.0% of HuggingFace models carry model cards with any evaluation information.

3 Continual Evaluation Workflow

The proposed continual evaluation workflow asks practitioners to choose the next evaluation using explicit decision criteria, then iteratively build on the resulting findings. It is organized as the Contemplate → Create → Consolidate loop.

  • Workflow: The Contemplate → Create → Consolidate loop structures continual evaluation around deciding, conducting, and consolidating evaluations.The framework is proposed to address the challenges identified in current evaluation practice.
  • Contemplate: Contemplate guides practitioners on what evaluation to run next using key decision variables.The decision stage is the first step of the proposed loop.

2. Create (Section 3.2) slices of data for evaluation using Robustness Gym,

Robustness Gym guides practitioners in choosing evaluations and provides abstractions for creating, versioning, sharing, and reporting data slices across four evaluation idioms.

  • Contemplate: RG guides evaluation choices using the task, evaluation goals, resource constraints, and prior evaluations.These criteria connect practitioner needs to suitable evaluation idioms and specific tests.
  • Create: Users create slices by applying built-in or custom logic to task data, with task structure constraining which evaluations are appropriate.Examples include subpopulations based on input structure, existing evaluation sets, and transformations selected for specific goals.
  • Create: RG supports subpopulations, transformations, evaluation sets, and adversarial attacks through an open-interface design.The toolkit addresses idiomatic lock-in by enabling broad evaluation across multiple evaluation methods.
  • Consolidate: RG consolidates evaluations in versioned TestBenches that track slice provenance and support community sharing.TestBenches represent suites of evaluations and help users organize results across tools and idioms.
  • Consolidate: Robustness Reports can be generated from TestBenches or used independently to report model evaluations.The reporting abstraction supports standardized or custom reports for sharing findings.

4 User Personas in Robustness Gym

Robustness Gym supports beginner, intermediate, and advanced users through progressively more customized evaluation workflows. In a sentiment-modeling case study, the workflow uncovered substantial degradations across subpopulations and transformations and produced shareable reports.

  • Beginning User: Beginner users can generate a standard NLI robustness report by selecting a report, task, dataset, and model.The resulting report provides a snapshot of tests spanning subpopulations, transformations, attacks, and evaluation sets.
  • Intermediate User: Intermediate users instantiate built-in SliceBuilders to create targeted subpopulations and share the resulting TestBench.One example creates slices containing female pronouns in NLI hypotheses.
  • Advanced User: Advanced users combine custom scoring functions, existing SliceBuilders, and transformations to construct novel evaluation sets.The advanced workflow can target premise–hypothesis length differences, lexical overlap, and augmented data.
  • Commercial Sentiment Analysis Case Study: 18% was the maximum performance degradation on topic-specific sentiment subpopulations, while typing-error and paraphrase transformations produced a 6% degradation.Identity-sensitive-word slices showed no degradation, whereas topic-specific slices exposed substantial weaknesses.
  • Commercial Sentiment Analysis Case Study: 172 subpopulations, one open-source evaluation set, and four transformations were evaluated in three hours, revealing 12 significantly degraded subpopulations.The team also reported high perceived ease of use and strong likelihood of integrating Robustness Gym into its workflow.

5 Experimental Results using Robustness Gym

Robustness Gym supports fine-grained analyses of named entity linking and summarization, exposing systematic weaknesses across systems and subpopulations. NEL performance varies substantially by system and entity characteristics, while summarization models struggle with abstraction, distillation, and positional variation.

  • Robustness Gym analyzes NEL across three commercial APIs and three academic systems, plus seven summarization models on CNN/DailyMail.
  • NEL: 12 points separate BOOTLEG from MICROSOFT overall, while MICROSOFT leads other commercial systems by more than 16 points.
  • NEL: NEL performance is substantially better on head entities than on tail or toe entities, with BOOTLEG the most robust across evaluated slices.
  • NEL: 54.1% falls to 38.2% for GOOGLE when all versus no gold entities are capitalized; MICROSOFT falls from 66.0% to 35.7%.
  • NEL: POP outperforms all commercial systems by 1.7 points, while state-of-the-art academic systems substantially outperform commercial APIs overall.
  • Summarization: All summarization models perform worst on highly distilled and highly abstractive examples, whereas both extractive and abstractive models excel on extractive examples.
  • Summarization: Extractive models show 9+ point gaps between earliest and latest positions, compared with PEGASUS’s 5.9-point gap.
  • Summarization: Extractive and abstractive models degrade and improve on the same populations, while current metrics may miss meaningful differences.

6 Related Tools and Work

Robustness Gym complements existing machine-learning tools by combining robustness evaluation with scalable, reproducible analysis and reporting. Its scope differs from tools focused on automation, fairness, interpretation, visualization, or error exploration.

  • AutoML: AutoML targets data wrangling, feature and model selection, hyperparameter optimization, and neural architecture search, whereas Robustness Gym targets robustness evaluation.
  • Ethical ML: Ethical-ML toolkits support reporting and bias analysis, but it is not obvious which biases should be tested or how.
  • Interpretable ML: Interpretability tools often focus on small numbers of examples, while Robustness Gym scales to 100,000 Wikipedia examples and uses testbenches for reproducibility.
  • Error Analysis: Error-analysis tools explore failures and comparisons, while Robustness Gym helps identify likely performance degradations before they become errors.

7 Conclusion

The paper introduces Robustness Gym as a broad, collaborative toolkit embedded in a continual evaluation loop. The authors conclude that it is promising for researchers and practitioners.

  • Robustness Gym supports broad evaluation idioms and collaborative building and sharing of evaluations and results.
  • The Contemplate →Create →Consolidate loop addresses practitioners’ evaluation challenges through continual evaluation.
  • The authors conclude that Robustness Gym is a promising tool for researchers and practitioners.

A.1 Commercial System Case Study

The case study assessed Robustness Gym with a sentiment-modeling team through questionnaires before and after a study session. The team reported high ease of use and strong willingness to adopt the toolkit.

  • The pre-study questionnaire asked about the team’s NLP task, evaluation metrics, and current robustness-evaluation practices.
  • The post-study questionnaire measured ease of use and likelihood of incorporating Robustness Gym on a 1–5 scale.
  • The team rated both ease of use and eagerness to use Robustness Gym in its workflow as “very likely.”
  • Subpopulations and adversarial attacks received 5/5 usefulness ratings, transformations 4/5, and evaluation sets 3/5.

A.2 Named Entity Linking

The AIDA test-b dataset is split into sentence-level examples, each paired with the passage’s leading sentence as context. Predictions over the context sentence are excluded from metric calculations.

  • AIDA test-b passages are split into examples corresponding to individual sentences.
  • Each example prepends the passage’s leading sentence as context.
  • Predictions over the context sentence are ignored when calculating metrics.

A.3 Summarization

The summarization analysis defines metrics for abstractiveness, distillation, position, dispersion, and ordering, using sentence similarities between articles and reference summaries. Robustness Gym provides the similarity matrix as a reusable abstraction for decoding multiple metrics and reducing computational cost.

  • Abstractiveness: Abstractiveness measures how much a reference summary is abstractive rather than extractive, using the proportion of summary n-grams absent from the article.
  • Distillation: Distillation measures how much a reference summary condenses larger article content, using the proportion of article n-grams absent from the summary.
  • Metric abstraction: Robustness Gym defines a sentence-similarity matrix whose scores between article and summary sentences support multiple metrics while reducing code reuse and computational cost.
  • Position: Position is the mean location in the article of sentences matched to summary sentences, motivated by possible beginning-of-article bias.
  • Dispersion: Dispersion is the variance of matched-sentence positions, distinguishing broadly distributed source content from concentration in one article region.
  • Order: Order is the Spearman rank correlation between reference-summary sentence positions and the positions of their matched article sentences.
Loading 2101.04840v1…