mlsanityData to 14 Oct 2026

From Tokens to Words: On the Inner Lexicon of LLMs

arXiv 2410.05864 ↗First posted 8 Oct 2024cs.CL cs.AIcited by 48

Not on the map. Why?

Abstract (arXiv)

Natural language is composed of words, but modern large language models (LLMs) process sub-words as input. A natural question raised by this discrepancy is whether LLMs encode words internally, and if so how. We present evidence that LLMs engage in an intrinsic detokenization process, where sub-word sequences are combined into coherent whole-word representations at their last token. Our experiments show that this process primarily takes place within the early and middle layers of the model. We further demonstrate its robustness to arbitrary splits (e.g., "cats" to "ca" and "ts"), typos, and importantly-to out-of-vocabulary words: when feeding the last token internal representations of such words to the model as input, it can "understand" them as the complete word despite never seeing such representations as input during training. Our findings suggest that LLMs maintain a latent vocabulary beyond the tokenizer's scope. These insights provide a practical, finetuning-free application for expanding the vocabulary of pre-trained models. By enabling the addition of new vocabulary words, we reduce input length and inference iterations, which reduces both space and model latency, with little to no loss in model accuracy.

Key facts. Cited by 48 papers in the map (data through 14 Oct 2026). Builds on 53 of its 69 references that are in the map. First posted on arXiv 8 Oct 2024.

Builds on

53 of 69 references.

References · 53

  1. 2017Attention Is All You Needcited by 60,361
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2016Pointer Sentinel Mixture Modelscited by 3,096
  4. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  5. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  6. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
  7. 2019Root Mean Square Layer Normalizationcited by 1,480
  8. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
  9. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  10. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  11. 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
  12. 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
38 more
  1. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
  2. 2021Knowledge Neurons in Pretrained Transformerscited by 601
  3. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
  4. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
  5. 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 457
  6. 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 359
  7. 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 334
  8. 2024Benchmarking Retrieval-Augmented Generation for Medicinecited by 331
  9. 2023Function Vectors in Large Language Modelscited by 308
  10. 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 235
  11. 2023Language Model Tokenizers Introduce Unfairness Between Languagescited by 214
  12. 2023Continual Pre-training of Language Modelscited by 198
  13. 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 195
  14. 2020Byte Pair Encoding is Suboptimal for Language Model Pretrainingcited by 192
  15. 2023Do All Languages Cost the Same? Tokenization in the Era of Commercial Language Modelscited by 192
  16. 2024The Geometry of Categorical and Hierarchical Concepts in Large Language Modelscited by 159
  17. 2020Probing Pretrained Language Models for Lexical Semanticscited by 156
  18. 2019Adaptively Sparse Transformerscited by 155
  19. 2022Adapting Pre-trained Language Models to African Languages via Multilingual Adaptive Fine-Tuningcited by 149
  20. 2024The Remarkable Robustness of LLMs: Stages of Inference?cited by 146
  21. 2022Analyzing Transformers in Embedding Spacecited by 132
  22. 2023Future Lens: Anticipating Subsequent Tokens from a Single Hidden Statecited by 121
  23. 2023Language Models Implement Simple Word2Vec-style Vector Arithmeticcited by 98
  24. 2020Analyzing Individual Neurons in Pre-trained Language Modelscited by 97
  25. 2024LLaMA Beyond English: An Empirical Study on Language Capability Transfercited by 95
  26. 2024Information Flow Routes: Automatically Interpreting Language Models at Scalecited by 95
  27. 2023Jump to Conclusions: Short-Cutting Transformers With Linear Transformationscited by 90
  28. 2024Tokenization Is More Than Compressioncited by 89
  29. 2018A standardized Project Gutenberg corpus for statistical analysis of natural language and quantitative linguisticscited by 64
  30. 2023Tokenization and the Noiseless Channelcited by 59
  31. 2024Investigating Continual Pretraining in Large Language Models: Insights and Implicationscited by 57
  32. 2024Fast Vocabulary Transfer for Language Model Compressioncited by 42
  33. 2022Analyzing Encoded Concepts in Transformer Language Modelscited by 38
  34. 2022What do tokens know about their characters and how do they know it?cited by 36
  35. 2019Improving Pre-Trained Multilingual Models with Vocabulary Expansioncited by 28
  36. 2024Attend First, Consolidate Later: On the Importance of Attention in Different LLM Layerscited by 25
  37. 2023Unnatural Error Correction: GPT-4 Can Almost Perfectly Handle Unnatural Scrambled Textcited by 19
  38. 2024Token Erasure as a Footprint of Implicit Vocabulary Items in LLMscited by 18

50 most cited of 53 All 53 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 29; 2026: 18.

48 papers.

Sort:

By area:

  1. 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 415
  2. 2025SuperBPE: Space Travel for Language Modelscited by 63
  3. 2025The Dual-Route Model of Inductioncited by 24
  4. 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizationscited by 17
  5. 2025Probing Semantic Routing in Large Mixture-of-Expert Modelscited by 14
  6. 2025Is the Reversal Curse a Binding Problem? Uncovering Limitations of Transformers from a Basic Generalization Failurecited by 13
  7. 2025Layers at Similar Depths Generate Similar Activations Across LLM Architecturescited by 12
  8. 2025Adversarial Tokenizationcited by 11
  9. 2025The Strawberry Problem: Emergence of Character-level Understanding in Tokenized Language Modelscited by 11
  10. 2025Measuring and Guiding Monosemanticitycited by 10
  11. 2025Learning to Skip the Middle Layers of Transformerscited by 10
  12. 2024Elevating Visual Perception in Multimodal LLMs with Visual Embedding Distillationcited by 9
36 more
  1. 2026Latent Reasoning with Supervised Thinking Statescited by 9
  2. 2025AbbIE: Autoregressive Block-Based Iterative Encoder for Efficient Sequence Modelingcited by 7
  3. 2025Efficient Parallel Samplers for Recurrent-Depth Models and Their Connection to Diffusion Language Modelscited by 7
  4. 2026Why Fine-Tuning Encourages Hallucinations and How to Fix Itcited by 7
  5. 2025Understanding the Anchoring Effect of LLM with Synthetic Data: Existence, Mechanism, and Potential Mitigationscited by 6
  6. 2025Token Distillation: Attention-aware Input Embeddings For New Tokenscited by 6
  7. 2025Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilitiescited by 6
  8. 2025Model-Aware Tokenizer Transfercited by 6
  9. 2025Weight-based Analysis of Detokenization in Language Models: Understanding the First Stage of Inference Without Inferencecited by 5
  10. 2025Model Internal Sleuthing: Finding Lexical Identity and Inflectional Features in Modern Language Modelscited by 5
  11. 2025Follow the Flow: On Information Flow Across Textual Tokens in Text-to-Image Modelscited by 4
  12. 2025Spelling-out is not Straightforward: LLMs' Capability of Tokenization from Token to Characterscited by 4
  13. 2025Meeseeks: A Feedback-Driven, Iterative Self-Correction Benchmark evaluating LLMs' Instruction Following Capabilitycited by 3
  14. 2026Word Recovery in Large Language Models Enables Character-Level Tokenization Robustnesscited by 2
  15. 2026Defragmenting Language Models: An Interpretability-based Approach for Vocabulary Expansioncited by 2
  16. 2026Shorthand for Thought: Compressing LLM Reasoning via Entropy-Guided Supertokenscited by 2
  17. 2025Enhancing LLM Character-Level Manipulation via Divide and Conquercited by 1
  18. 2025Length Representations in Large Language Modelscited by 1
  19. 2025Train It and Forget It: Merge Lists are Unnecessary for BPE Inference in Language Modelscited by 1
  20. 2025Alternatives To Next Token Prediction In Text Generation -- A Surveycited by 1
  21. 2025Vocab Diet: Reshaping the Vocabulary of LLMs via Vector Arithmeticcited by 1
  22. 2026Friends and Grandmothers in Silico: Localizing Entity Cells in Language Modelscited by 1
  23. 2026Stochasticity in Tokenisation Improves Robustnesscited by 1
  24. 2026How Tokenization Limits Phonological Knowledge Representation in Language Models and How to Improve Themcited by 1
  25. 2026Multilinguality at the Edge: Developing Language Models for the Global Southcited by 1
  26. 2025Investigating Neurons and Heads in Transformer-based LLMs for Typographical Errorscited by 0
  27. 2025In-Context Learning Without Copyingcited by 0
  28. 2026SubTokenTest: A Practical Benchmark for Real-World Sub-token Understandingcited by 0
  29. 2026Learning Faster with Better Tokens: Parameter-Efficient Vocabulary Adaptation for Specialized Text Summarizationcited by 0
  30. 2026Inside the LLM Word Factorycited by 0
  31. 2026Emergent retokenization symmetry in large language models: phenomenology and applicationscited by 0
  32. 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuningcited by 0
  33. 2026(How) Do MLLMs Report Bistable Images Like Humans?cited by 0
  34. 2026Large language models in medical time series analysiscited by 0
  35. 2026Extracting Persona Subspaces Through Iterative Nullspace Projection For Modulationcited by 0
  36. 2026More Than Words: Compositional Tokenization for Efficient Language Modelscited by 0