The Language Interpretability Tool: Extensible, Interactive Visualizations and Analysis for NLP Models

Ian Tenney, James Wexler, Jasmijn Bastings, Tolga Bolukbasi, Andy Coenen +6 more
8/12/2020
cs.CL

Official code: PAIR-code/lit (3,676 stars, TypeScript, Apache-2.0, last commit 2026-04-15).

Abstract

We present the Language Interpretability Tool (LIT), an open-source platform for visualization and understanding of NLP models. We focus on core questions about model behavior: Why did my model make this prediction?

Show full abstract

When does it perform poorly? What happens under a controlled change in the input? LIT integrates local explanations, aggregate analysis, and counterfactual generation into a streamlined, browser-based interface to enable rapid exploration and error analysis. We include case studies for a diverse set of workflows, including exploring counterfactuals for sentiment analysis, measuring gender bias in coreference systems, and exploring local behavior in text generation. LIT supports a wide range of models--including classification, seq2seq, and structured prediction--and is highly extensible through a declarative, framework-agnostic API. LIT is under active development, with code and full documentation available at https://github.com/pair-code/lit.

View on arXivView PDF

Code Implementations(1)

PAIR-code/litOfficial100%
Apache-2.0

The Learning Interpretability Tool: Interactively analyze ML models to understand their behavior in an extensible and framework agnostic interface.

3,676365TypeScript, PythonJul 28, 20207 months agoApache-2.0
machine-learningnatural-language-processingvisualization

Similar Papers

Cite this paper

@article{tenney2020language,
  title  = {The Language Interpretability Tool: Extensible, Interactive Visualizations and Analysis for NLP Models},
  author = {Ian Tenney and James Wexler and Jasmijn Bastings and Tolga Bolukbasi and Andy Coenen and Sebastian Gehrmann and Ellen Jiang and Mahima Pushkarna and Carey Radebaugh and Emily Reif and Ann Yuan},
  year   = {2020},
  eprint = {2008.05122},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.05122}
}

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/2008.05122.svg)](https://codeofpaper.com/paper/2008.05122)

Discussion