Skip to main content
QUICK REVIEW

[Paper Review] Say Anything but This: When Tokenizer Betrays Reasoning in LLMs

Navid Ayoobi, Marcus Armstrong|arXiv (Cornell University)|Jan 21, 2026
Artificial Intelligence in Healthcare and EducationMedicine0 citations
TL;DR

The paper shows tokenization non-uniqueness can cause phantom edits where LLMs change token IDs but the decoded text remains the same, revealing tokenizer-induced reasoning fragility across open-source models.

ABSTRACT

Large language models (LLMs) reason over discrete token ID sequences, yet modern subword tokenizers routinely produce non-unique encodings: multiple token ID sequences can detokenize to identical surface strings. This representational mismatch creates an unmeasured fragility wherein reasoning processes can fail. LLMs may treat two internal representations as distinct "words" even when they are semantically identical at the text level. In this work, we show that tokenization can betray LLM reasoning through one-to-many token ID mappings. We introduce a tokenization-consistency probe that requires models to replace designated target words in context while leaving all other content unchanged. The task is intentionally simple at the surface level, enabling us to attribute failures to tokenizer-detokenizer artifacts rather than to knowledge gaps or parameter limitations. Through analysis of over 11000 replacement trials across state-of-the-art open-source LLMs, we find a non-trivial rate of outputs exhibit phantom edits: cases where models operate under the illusion of correct reasoning, a phenomenon arising from tokenizer-induced representational defects. We further analyze these cases and provide a taxonomy of eight systematic tokenizer artifacts, including whitespace-boundary shifts and intra-word resegmentation. These findings indicate that part of apparent reasoning deficiency originates in the tokenizer layer, motivating tokenizer-level remedies before incurring the cost of training ever-larger models on ever-larger corpora.

Motivation & Objective

  • Motivate and diagnose how subword tokenization artifacts can undermine LLM reasoning.
  • Introduce a tokenization-consistency probe to separate tokenizer-induced failures from true knowledge gaps.
  • Quantify the prevalence of tokenizer-induced phantom edits across multiple open-source LLMs.
  • Provide a taxonomy of tokenizer artifacts causing non-unique representations and assess mitigation strategies.

Proposed method

  • Define a tokenization-consistency task where targeted words are replaced while keeping other text fixed.
  • Sample 5% of non-stop words in XSUM news articles and bracket them as targets for replacement.
  • Evaluate ten open-source LLMs across multiple size variants on their ability to perform substitutions without surface changes.
  • Categorize outcomes as Unchanged, Replaced, or Different based on input/output token IDs and the detokenized text.
  • Analyze the Different class to identify eight tokenizer artifact types.
  • Apply a token-ID masking intervention to assess the impact of removing problematic token sequences.

Experimental results

Research questions

  • RQ1Do LLMs treat different token ID sequences that detokenize to the same word as actual edits or semantic changes?
  • RQ2What tokenizer-induced artifacts cause phantom edits across state-of-the-art open-source LLMs?
  • RQ3Can masking offending token IDs mitigate tokenizer-induced reasoning failures without retraining the tokenizer?
  • RQ4How does model size influence the balance between true substitutions and tokenizer-induced failures?
  • RQ5What are practical paths to tokenizer-aware remedies or mitigations for reasoning tasks?

Key findings

  • There is a non-trivial rate of phantom edits where token IDs change but surface text remains unchanged across 11k trials and 10 models.
  • Tokenizer artifacts include whitespace-boundary shifts, whitespace detachment/reattachment, newline substitutions, intra-word resegmentation, proper-noun segmentation, morpheme segmentation, acronyms, and plural/ possessive tail tokens.
  • Model size does not fully fix tokenizer-induced failures; larger models still show the Different category due to non-unique token representations.
  • Masking problematic output token IDs substantially reduces the Different category to about 0-5% across models, indicating the issue is largely tokenizer-driven.
  • A post-hoc mitigation reveals that models possess underlying reasoning capability that is masked by tokenizer artifacts, suggesting the need for tokenizer-aware remedies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.