AI Navigate

Word Recovery in Large Language Models Enables Character-Level Tokenization Robustness

arXiv cs.CL / 3/12/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper identifies 'word recovery' as a core mechanism enabling LLMs to process character-level inputs despite non-canonical tokenization.
  • It introduces a decoding-based method to detect word recovery and shows that hidden states reconstruct canonical word-level token identities from character-level inputs.
  • It provides causal evidence by removing the corresponding subspace in hidden states, which degrades downstream task performance.
  • An in-depth attention analysis reveals that in-group attention among characters belonging to the same canonical token is critical for word recovery; masking this attention in early layers reduces both recovery scores and task performance.
  • The work offers a mechanistic explanation for tokenization robustness and identifies word recovery as a key mechanism shaping how LLMs handle character-level inputs.

Abstract

Large language models (LLMs) trained with canonical tokenization exhibit surprising robustness to non-canonical inputs such as character-level tokenization, yet the mechanisms underlying this robustness remain unclear. We study this phenomenon through mechanistic interpretability and identify a core process we term word recovery. We first introduce a decoding-based method to detect word recovery, showing that hidden states reconstruct canonical word-level token identities from character-level inputs. We then provide causal evidence by removing the corresponding subspace from hidden states, which consistently degrades downstream task performance. Finally, we conduct a fine-grained attention analysis and show that in-group attention among characters belonging to the same canonical token is critical for word recovery: masking such attention in early layers substantially reduces both recovery scores and task performance. Together, our findings provide a mechanistic explanation for tokenization robustness and identify word recovery as a key mechanism enabling LLMs to process character-level inputs.