KnowledgeVIS: Interpreting Language Models by Comparing Fill-in-the-Blank Prompts
Not on the map. Why?
Abstract (arXiv)
Recent growth in the popularity of large language models has led to their increased usage for summarizing, predicting, and generating text, making it vital to help researchers and engineers understand how and why they work. We present KnowledgeVis, a human-in-the-loop visual analytics system for interpreting language models using fill-in-the-blank sentences as prompts. By comparing predictions between sentences, KnowledgeVis reveals learned associations that intuitively connect what language models learn during training to natural language tasks downstream, helping users create and test multiple prompt variations, analyze predicted words using a novel semantic clustering technique, and discover insights using interactive visualizations. Collectively, these visualizations help users identify the likelihood and uniqueness of individual predictions, compare sets of predictions between prompts, and summarize patterns and relationships between predictions across all prompts. We demonstrate the capabilities of KnowledgeVis with feedback from six NLP experts as well as three different use cases: (1) probing biomedical knowledge in two domain-adapted models; and (2) evaluating harmful identity stereotypes and (3) discovering facts and relationships between three general-purpose models.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 36 of its 64 references that are in the map. First posted on arXiv 7 Mar 2024.
Builds on
36 of 64 references.
References · 36
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,404
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
24 more
- 2020Domain-Specific Language Model Pretraining for Biomedical Natural Language Processingcited by 996
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019How Can We Know What Language Models Know?cited by 953
- 2019Attention is not Explanationcited by 916
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
- 2021BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generationcited by 410
- 2021Persistent Anti-Muslim Bias in Large Language Modelscited by 376
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
- 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 158
- 2020The Language Interpretability Tool: Extensible, Interactive Visualizations and Analysis for NLP Modelscited by 125
- 2018Visual Analytics in Deep Learning: An Interrogative Survey for the Next Frontierscited by 117
- 2022Interactive and Visual Prompt Engineering for Ad-hoc Task Adaptation with Large Language Modelscited by 70
- 2018Seq2Seq-Vis: A Visual Debugging Tool for Sequence-to-Sequence Modelscited by 69
- 2019Investigating BERT's Knowledge of Language: Five Analysis Methods with NPIscited by 58
- 2020CNN Explainer: Learning Convolutional Neural Networks with Interactive Visualizationcited by 57
- 2020Attention Flows: Analyzing and Comparing Attention Mechanisms in Language Modelscited by 49
- 2021Putting Humans in the Natural Language Processing Loop: A Surveycited by 40
- 2021Dodrio: Exploring Transformer Models with Interactive Visualizationcited by 28
- 2021LMdiff: A Visual Diff Tool to Compare Language Modelscited by 17
- 2019VizSeq: A Visual Analysis Toolkit for Text Generation Taskscited by 10
Built on by
Citing papers per year: 2024: 3; 2025: 3; 2026: 1.
7 papers.
- 2024Understanding Large Language Model Behaviors through Interactive Counterfactual Generation and Analysiscited by 8
- 2025RAGTrace: Understanding and Refining Retrieval-Generation Dynamics in Retrieval-Augmented Generationcited by 4
- 2024EvolvED: Evolutionary Embeddings to Understand the Generation Process of Diffusion Modelscited by 3
- 2026RAGExplorer: A Visual Analytics System for the Comparative Diagnosis of RAG Systemscited by 2
- 2024POEM: Interactive Prompt Optimization for Enhancing Multimodal Reasoning of Large Language Modelscited by 1
- 2025Think, Act, Learn: A Framework for Autonomous Robotic Agents using Closed-Loop Large Language Modelscited by 1
- 2025ConceptViz: A Visual Analytics Approach for Exploring Concepts in Large Language Modelscited by 1
- 2026RAGExplorer: A Visual Analytics System for the Comparative Diagnosis of RAG Systems19 Jan 2026
- 2025ConceptViz: A Visual Analytics Approach for Exploring Concepts in Large Language Models20 Sep 2025
- 2025RAGTrace: Understanding and Refining Retrieval-Generation Dynamics in Retrieval-Augmented Generation8 Aug 2025
- 2025Think, Act, Learn: A Framework for Autonomous Robotic Agents using Closed-Loop Large Language Models26 Jul 2025
- 2024EvolvED: Evolutionary Embeddings to Understand the Generation Process of Diffusion Models25 Jun 2024
- 2024POEM: Interactive Prompt Optimization for Enhancing Multimodal Reasoning of Large Language Models6 Jun 2024
- 2024Understanding Large Language Model Behaviors through Interactive Counterfactual Generation and Analysis23 Apr 2024