LLM-Microscope: Uncovering the Hidden Role of Punctuation in Context Memory of Transformers
Not on the map. Why?
Abstract (arXiv)
We introduce methods to quantify how Large Language Models (LLMs) encode and store contextual information, revealing that tokens often seen as minor (e.g., determiners, punctuation) carry surprisingly high context. Notably, removing these tokens -- especially stopwords, articles, and commas -- consistently degrades performance on MMLU and BABILong-4k, even if removing only irrelevant tokens. Our analysis also shows a strong correlation between contextualization and linearity, where linearity measures how closely the transformation from one layer's embeddings to the next can be approximated by a single linear mapping. These findings underscore the hidden importance of filler tokens in maintaining context. For further exploration, we present LLM-Microscope, an open-source toolkit that assesses token-level nonlinearity, evaluates contextual memory, visualizes intermediate layer contributions (via an adapted Logit Lens), and measures the intrinsic dimensionality of representations. This toolkit illuminates how seemingly trivial tokens can be critical for long-range understanding.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 19 of its 34 references that are in the map. First posted on arXiv 20 Feb 2025.
Builds on
19 of 34 references.
References · 19
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2022In-context Learning and Induction Headscited by 964
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
- 2024TinyLlama: An Open-Source Small Language Modelcited by 618
- 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 457
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
7 more
- 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 314
- 2018Estimating the intrinsic dimension of datasets by a minimal neighborhood informationcited by 250
- 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
- 2017What do Neural Machine Translation Models Learn about Morphology?cited by 166
- 2023Jump to Conclusions: Short-Cutting Transformers With Linear Transformationscited by 90
- 2023Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentencecited by 81
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMscited by 25
Built on by
Citing papers per year: 2025: 7; 2026: 5.
12 papers.
- 2025Harnessing the Reasoning Economy: A Survey of Efficient Reasoning for Large Language Modelscited by 36
- 2025Towards eliciting latent knowledge from LLMs with mechanistic interpretabilitycited by 19
- 2026Fast KVzip: Efficient and Accurate LLM Inference with Gated KV Evictioncited by 16
- 2025Adaptive GoGI-Skip: Coupling Goal-Gradient Importance with Dynamic Uncertainty for Efficient Reasoningcited by 12
- 2025Meaningless Tokens, Meaningful Gains: How Activation Shifts Enhance LLM Reasoningcited by 8
- 2025Negation: A Pink Elephant in the Large Language Models' Room?cited by 7
- 2025Punctuation and Predicates in Language Modelscited by 5
- 2026FreeText: Training-Free Text Rendering in Diffusion Transformers via Attention Localization and Spectral Glyph Injectioncited by 5
- 2025Do You Feel Comfortable? Detecting Hidden Conversational Escalation in AI Chatbotscited by 1
- 2026EchoPress: Query-Agnostic KV Cache Pruning via Virtual Context Reconstructioncited by 1
- 2026Persistent Sparse Autoencoders: Learning Feature-Specific Timescales in Language Model Representationscited by 0
- 2026A Unifying Perspective on Language Model Representations: From Filler-Role Structure to Mechanistic Interpretabilitycited by 0
- 2026EchoPress: Query-Agnostic KV Cache Pruning via Virtual Context Reconstruction30 Sep 2026
- 2026A Unifying Perspective on Language Model Representations: From Filler-Role Structure to Mechanistic Interpretability29 Aug 2026
- 2026Persistent Sparse Autoencoders: Learning Feature-Specific Timescales in Language Model Representations19 Jul 2026
- 2026Fast KVzip: Efficient and Accurate LLM Inference with Gated KV Eviction25 Jan 2026
- 2026FreeText: Training-Free Text Rendering in Diffusion Transformers via Attention Localization and Spectral Glyph Injection2 Jan 2026
- 2025Do You Feel Comfortable? Detecting Hidden Conversational Escalation in AI Chatbots5 Dec 2025
- 2025Meaningless Tokens, Meaningful Gains: How Activation Shifts Enhance LLM Reasoning1 Oct 2025
- 2025Punctuation and Predicates in Language Models11 Aug 2025
- 2025Towards eliciting latent knowledge from LLMs with mechanistic interpretability20 May 2025
- 2025Adaptive GoGI-Skip: Coupling Goal-Gradient Importance with Dynamic Uncertainty for Efficient Reasoning13 May 2025
- 2025Harnessing the Reasoning Economy: A Survey of Efficient Reasoning for Large Language Models31 Mar 2025
- 2025Negation: A Pink Elephant in the Large Language Models' Room?28 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2026When Does Context Help? Error Dynamics of Contextual Information in Large Language Models
- 2025Bridging the Dimensional Chasm: Uncover Layer-wise Dimensional Reduction in Transformers through Token Correlation
- 2024Insights into LLM Long-Context Failures: When Transformers Know but Don't Tell
- 2024Does Representation Matter? Exploring Intermediate Layers in Large Language Models
- 2026LLMs Explain't: A Post-Mortem on Semantic Interpretability in Transformer Models
- 2024Can Large Language Models Understand Context?
- 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledge
- 2025Can LLMs Interpret and Leverage Structured Linguistic Representations? A Case Study with AMRs