Interpreting Language Models Through Knowledge Graph Extraction
Not on the map. Why?
Abstract (arXiv)
Transformer-based language models trained on large text corpora have enjoyed immense popularity in the natural language processing community and are commonly used as a starting point for downstream tasks. While these models are undeniably useful, it is a challenge to quantify their performance beyond traditional accuracy metrics. In this paper, we compare BERT-based language models through snapshots of acquired knowledge at sequential stages of the training process. Structured relationships from training corpora may be uncovered through querying a masked language model with probing tasks. We present a methodology to unveil a knowledge acquisition timeline by generating knowledge graph extracts from cloze "fill-in-the-blank" statements at various stages of RoBERTa's early training. We extend this analysis to a comparison of pretrained variations of BERT models (DistilBERT, BERT-base, RoBERTa). This work proposes a quantitative framework to compare language models through knowledge graph extraction (GED, Graph2Vec) and showcases a part-of-speech analysis (POSOR) to identify the linguistic strengths of each model variant. Using these metrics, machine learning practitioners can compare models, diagnose their models' behavioral strengths and weaknesses, and identify new targeted datasets to improve model performance.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 28 of its 43 references that are in the map. First posted on arXiv 16 Nov 2021.
Builds on
28 of 43 references.
References · 28
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2018Deep contextualized word representationscited by 2,290
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 1,006
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2019How Can We Know What Language Models Know?cited by 959
16 more
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 564
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
- 2017graph2vec: Learning Distributed Representations of Graphscited by 230
- 2019Visualizing and Measuring the Geometry of BERTcited by 216
- 2019Assessing BERT's Syntactic Abilitiescited by 192
- 2020How Context Affects Language Models' Factual Predictionscited by 181
- 2020Characteristic Functions on Graphs: Birds of a Feather, from Statistical Descriptors to Parametric Modelscited by 116
- 2020Language Models as Knowledge Bases: On Entity Representations, Storage Capacity, and Paraphrased Queriescited by 107
- 2021Probing Across Time: What Does RoBERTa Know and When?cited by 73
- 2019Visualizing and Understanding the Effectiveness of BERTcited by 67
- 2019Probing What Different NLP Tasks Teach Machines about Function Word Comprehensioncited by 44
- 2020Pretrained Language Model Embryology: The Birth of ALBERTcited by 30
- 2020Interpretable Multi-dataset Evaluation for Named Entity Recognitioncited by 27
- 2021WikiGraphs: A Wikipedia Text - Knowledge Graph Paired Datasetcited by 20
- 2020Unsupervised Relation Extraction from Language Models using Constrained Cloze Completioncited by 9
Built on by
Citing papers per year: 2022: 2; 2023: 7; 2024: 3; 2025: 1; 2026: 1.
14 papers.
Sort:
By area:
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 668
- 2023Language Model Behavior: A Comprehensive Surveycited by 92
- 2023Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Surveycited by 92
- 2023Give Us the Facts: Enhancing Large Language Models with Knowledge Graphs for Fact-aware Language Modelingcited by 56
- 2024XAI meets LLMs: A Survey of the Relation between Explainable AI and Large Language Modelscited by 23
- 2023The future of human-centric eXplainable Artificial Intelligence (XAI) is not post-hoc explanationscited by 12
- 2024GP-GPT: Large Language Model for Gene-Phenotype Mappingcited by 11
- 2025Foundations of LLM Knowledge Materialization: Termination, Reproducibility, Robustnesscited by 3
- 2022Can Language Models Capture Graph Semantics? From Graphs to Language Model and Vice-Versacited by 1
- 2022Probing Commonsense Knowledge in Pre-trained Language Models with Sense-level Precision and Expanded Vocabularycited by 1
- 2023LMExplainer: Grounding Knowledge and Explaining Language Modelscited by 1
- 2024Infusing Knowledge into Large Language Models with Contextual Promptscited by 1
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Models9 Jan 2026
- 2025Foundations of LLM Knowledge Materialization: Termination, Reproducibility, Robustness8 Oct 2025
- 2024GP-GPT: Large Language Model for Gene-Phenotype Mapping15 Sep 2024
- 2024XAI meets LLMs: A Survey of the Relation between Explainable AI and Large Language Models21 Jul 2024
- 2024Infusing Knowledge into Large Language Models with Contextual Prompts3 Mar 2024
- 2023Towards Automatic Support of Software Model Evolution with Large Language~Models19 Dec 2023
- 2023Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Survey14 Nov 2023
- 2023The future of human-centric eXplainable Artificial Intelligence (XAI) is not post-hoc explanations1 Jul 2023
- 2023Give Us the Facts: Enhancing Large Language Models with Knowledge Graphs for Fact-aware Language Modeling20 Jun 2023
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmap14 Jun 2023
- 2023LMExplainer: Grounding Knowledge and Explaining Language Models29 Mar 2023
- 2023Language Model Behavior: A Comprehensive Survey20 Mar 2023
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 668
- 2023Language Model Behavior: A Comprehensive Surveycited by 92
- 2023Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Surveycited by 92
- 2023Give Us the Facts: Enhancing Large Language Models with Knowledge Graphs for Fact-aware Language Modelingcited by 56
- 2024XAI meets LLMs: A Survey of the Relation between Explainable AI and Large Language Modelscited by 23
- 2023The future of human-centric eXplainable Artificial Intelligence (XAI) is not post-hoc explanationscited by 12
- 2024GP-GPT: Large Language Model for Gene-Phenotype Mappingcited by 11
- 2025Foundations of LLM Knowledge Materialization: Termination, Reproducibility, Robustnesscited by 3
- 2022Can Language Models Capture Graph Semantics? From Graphs to Language Model and Vice-Versacited by 1
- 2023LMExplainer: Grounding Knowledge and Explaining Language Modelscited by 1
- 2024Infusing Knowledge into Large Language Models with Contextual Promptscited by 1
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Modelscited by 1
12 most cited of 13 All 13 (JSON)
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Models9 Jan 2026
- 2025Foundations of LLM Knowledge Materialization: Termination, Reproducibility, Robustness8 Oct 2025
- 2024GP-GPT: Large Language Model for Gene-Phenotype Mapping15 Sep 2024
- 2024XAI meets LLMs: A Survey of the Relation between Explainable AI and Large Language Models21 Jul 2024
- 2024Infusing Knowledge into Large Language Models with Contextual Prompts3 Mar 2024
- 2023Towards Automatic Support of Software Model Evolution with Large Language~Models19 Dec 2023
- 2023Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Survey14 Nov 2023
- 2023The future of human-centric eXplainable Artificial Intelligence (XAI) is not post-hoc explanations1 Jul 2023
- 2023Give Us the Facts: Enhancing Large Language Models with Knowledge Graphs for Fact-aware Language Modeling20 Jun 2023
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmap14 Jun 2023
- 2023LMExplainer: Grounding Knowledge and Explaining Language Models29 Mar 2023
- 2023Language Model Behavior: A Comprehensive Survey20 Mar 2023
12 newest of 13 All 13 (JSON)