mlsanityData to 14 Oct 2026

LLM-Microscope: Uncovering the Hidden Role of Punctuation in Context Memory of Transformers

arXiv 2502.15007 ↗First posted 20 Feb 2025cs.CL cs.AIcited by 12

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

  1. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  3. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
  4. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  5. 2022In-context Learning and Induction Headscited by 964
  6. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
  7. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  8. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
  9. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
  10. 2024TinyLlama: An Open-Source Small Language Modelcited by 618
  11. 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 457
  12. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
7 more
  1. 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 314
  2. 2018Estimating the intrinsic dimension of datasets by a minimal neighborhood informationcited by 250
  3. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
  4. 2017What do Neural Machine Translation Models Learn about Morphology?cited by 166
  5. 2023Jump to Conclusions: Short-Cutting Transformers With Linear Transformationscited by 90
  6. 2023Sentence Embedding Leaks More Information than You Expect: Generative Embedding Inversion Attack to Recover the Whole Sentencecited by 81
  7. 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMscited by 25

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 7; 2026: 5.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026When Does Context Help? Error Dynamics of Contextual Information in Large Language Models
  2. 2025Bridging the Dimensional Chasm: Uncover Layer-wise Dimensional Reduction in Transformers through Token Correlation
  3. 2024Insights into LLM Long-Context Failures: When Transformers Know but Don't Tell
  4. 2024Does Representation Matter? Exploring Intermediate Layers in Large Language Models
  5. 2026LLMs Explain't: A Post-Mortem on Semantic Interpretability in Transformer Models
  6. 2024Can Large Language Models Understand Context?
  7. 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledge
  8. 2025Can LLMs Interpret and Leverage Structured Linguistic Representations? A Case Study with AMRs