Black-box language model explanation by context length probing
Not on the map. Why?
Abstract (arXiv)
The increasingly widespread adoption of large language models has highlighted the need for improving their explainability. We present context length probing, a novel explanation technique for causal language models, based on tracking the predictions of a model as a function of the length of available context, and allowing to assign differential importance scores to different contexts. The technique is model-agnostic and does not rely on access to model internals beyond computing token-level probabilities. We apply context length probing to large pre-trained language models and offer some initial analyses and insights, including the potential for studying long-range dependencies. The source code and an interactive demo of the method are available.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 23 of its 30 references that are in the map. First posted on arXiv 30 Dec 2022.
Builds on
23 of 30 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2022In-context Learning and Induction Headscited by 930
- 2019Attention is not Explanationcited by 916
- 2016Language Modeling with Gated Convolutional Networkscited by 688
- 2017Interpretable Explanations of Black Boxes by Meaningful Perturbationcited by 611
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
11 more
- 2019Is Attention Interpretable?cited by 387
- 2017The (Un)reliability of saliency methodscited by 331
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2020Universal Dependencies v2: An Evergrowing Multilingual Treebank Collectioncited by 269
- 2019Explaining Deep Neural Networks with a Polynomial Time Algorithm for Shapley Values Approximationcited by 115
- 2021Do Long-Range Language Models Actually Use Long-Range Context?cited by 92
- 2020Shortformer: Better Language Modeling using Shorter Inputscited by 76
- 2021What Context Features Can Transformer Language Models Use?cited by 49
- 2021Rationales for Sequential Predictionscited by 26
- 2022ChapterBreak: A Challenge Dataset for Long-Range Language Modelscited by 18
- 2021Investigating sanity checks for saliency maps with image and text classificationcited by 11
Built on by
Citing papers per year: 2023: 3; 2024: 1; 2025: 2; 2026: 1.
7 papers.
- 2023Language Model Behavior: A Comprehensive Surveycited by 92
- 2023How Well Do Large Language Models Truly Ground?cited by 14
- 2024Evaluating Cultural Awareness of LLMs for Yoruba, Malayalam, and Englishcited by 8
- 2023Survey on AI Ethics: A Socio-technical Perspectivecited by 4
- 2025Explaining the Reasoning of Large Language Models Using Attribution Graphscited by 3
- 2025Text-to-SQL Task-oriented Dialogue Ontology Constructioncited by 1
- 2026Don't Let Me Ask for It: LLMs Show Deficiencies in Active Multi-Turn Information Acquisition for Abductive Inferencecited by 0
- 2026Don't Let Me Ask for It: LLMs Show Deficiencies in Active Multi-Turn Information Acquisition for Abductive Inference4 Aug 2026
- 2025Explaining the Reasoning of Large Language Models Using Attribution Graphs17 Dec 2025
- 2025Text-to-SQL Task-oriented Dialogue Ontology Construction31 Jul 2025
- 2024Evaluating Cultural Awareness of LLMs for Yoruba, Malayalam, and English14 Sep 2024
- 2023Survey on AI Ethics: A Socio-technical Perspective28 Nov 2023
- 2023How Well Do Large Language Models Truly Ground?15 Nov 2023
- 2023Language Model Behavior: A Comprehensive Survey20 Mar 2023