English

LMdiff: A Visual Diff Tool to Compare Language Models

Computation and Language 2021-11-03 v1 Human-Computer Interaction

Abstract

While different language models are ubiquitous in NLP, it is hard to contrast their outputs and identify which contexts one can handle better than the other. To address this question, we introduce LMdiff, a tool that visually compares probability distributions of two models that differ, e.g., through finetuning, distillation, or simply training with different parameter sizes. LMdiff allows the generation of hypotheses about model behavior by investigating text instances token by token and further assists in choosing these interesting text instances by identifying the most interesting phrases from large corpora. We showcase the applicability of LMdiff for hypothesis generation across multiple case studies. A demo is available at http://lmdiff.net .

Keywords

Cite

@article{arxiv.2111.01582,
  title  = {LMdiff: A Visual Diff Tool to Compare Language Models},
  author = {Hendrik Strobelt and Benjamin Hoover and Arvind Satyanarayan and Sebastian Gehrmann},
  journal= {arXiv preprint arXiv:2111.01582},
  year   = {2021}
}

Comments

EMNLP 2021 Demo Paper

R2 v1 2026-06-24T07:22:35.925Z