Beyond Accuracy: Behavioral Testing of NLP models with CheckList

Marco Tulio Ribeiro, Tongshuang Wu, Carlos Guestrin, Sameer Singh
5/8/2020
cs.CLcs.LG

Official code: marcotcr/checklist (2,051 stars, MIT, last commit 2024-01-09).

Abstract

Although measuring held-out accuracy has been the primary approach to evaluate generalization, it often overestimates the performance of NLP models, while alternative approaches for evaluating models either focus on individual tasks or on specific behaviors. Inspired by principles of behavioral testing in software engineering, we introduce CheckList, a task-agnostic methodology for testing NLP models. CheckList includes a matrix of general linguistic capabilities and test types that facilitate comprehensive test ideation, as well as a software tool to generate a large and diverse number of test cases quickly. We illustrate the utility of CheckList with tests for three tasks, identifying critical failures in both commercial and state-of-art models. In a user study, a team responsible for a commercial sentiment analysis model found new and actionable bugs in an extensively tested model. In another user study, NLP practitioners with CheckList created twice as many tests, and found almost three times as many bugs as users without it.

View on arXivView PDF

Code Implementations(1)

marcotcr/checklistOfficial100%
MIT

Beyond Accuracy: Behavioral Testing of NLP models with CheckList

2,051210CSS, HTMLMar 9, 20202 years agoMIT

Cite this paper

@article{ribeiro2020beyond,
  title  = {Beyond Accuracy: Behavioral Testing of NLP models with CheckList},
  author = {Marco Tulio Ribeiro and Tongshuang Wu and Carlos Guestrin and Sameer Singh},
  year   = {2020},
  eprint = {2005.04118},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.04118}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2005.04118.svg)](https://codeofpaper.com/paper/2005.04118)

Discussion