Challenge: Large language models (LLMs) for code rely on subword tokenizers learned from mixed natural language text and programming language code but driven by statistics rather than grammar.
Approach: They propose a framework that applies semantic-preserving rewrite rules to create code variants differing only in tokenization.
Outcome: The proposed framework can create code variants differing only in tokenization . the findings highlight the need for grammar-aware tokenization for future code LLMs.

Similar Papers

Tokenization Falling Short: On Subword Robustness in Large Language Models (2024.findings-emnlp)

Copied to clipboard

Challenge: Language models typically tokenize raw text into sequences of subword identifiers from a predefined vocabulary.
Approach: They propose to tokenize raw text into sequences of subword identifiers from a predefined vocabulary . they also investigate the challenges and their impact on large language models .
Outcome: The proposed model can mitigate tokenization issues, but still suffer from typos and other variations.
Unlike “Likely”, “Unlike” is Unlikely: BPE-based Segmentation hurts Morphological Derivations in LLMs (2025.coling-main)

Copied to clipboard

Challenge: Large Language Models (LLMs) use subword vocabularies to process and generate text.
Approach: They find that Large Language Models (LLMs) perform poorly at handling some types of affixations because subwords are marked as initial- or intra-word .
Outcome: The largest models trained on enough data can mitigate this tendency because initial- and intra-word embeddings are aligned; in-context learning also helps when all examples are selected in a consistent way; but only morphological segmentation can achieve a near-perfect accuracy.
How Tokenization Limits Phonological Knowledge Representation in Language Models and How to Improve Them (2026.acl-long)

Copied to clipboard

Challenge: Tokenization is the first step in every language model (LM), yet it never takes the sounds of words into account.
Approach: They propose a lightweight IPA-based fine-tuning method that infuses phonological awareness into LMs.
Outcome: The proposed method improves phonological awareness across three phonology-related tasks while preserving math and general reasoning ability.
Grammar-Based Code Representation: Is It a Worthy Pursuit for LLMs? (2025.findings-acl)

Copied to clipboard

Challenge: Existing research demonstrates the effectiveness of grammar-based code representations in small-scale models, showing their ability to reduce syntax errors and enhance performance.
Approach: They develop a series of billion-scale grammar-based code representations that incorporate grammar rules into the code generation process.
Outcome: Experiments on HumanEval and MBPP show that grammar-based representations reduce syntax errors and improve performance even in billion-scale models.
Tokenization is Sensitive to Language Variation (2025.findings-acl)

Copied to clipboard

Challenge: Variation in language is often linked to regional, social, and contextual factors.
Approach: They propose a method to estimate tokenizer impact on downstream LLM performance . they pre-train BERT models with the popular Byte-Pair Encoding algorithm .
Outcome: The proposed model improves on Rényi efficiency and other metrics on language variation.
TokAlign: Efficient Vocabulary Adaptation via Token Alignment (2025.acl-long)

Copied to clipboard

Challenge: Tokenization is a foundational step for Large Language Models (LLMs) but low compression rate of vanilla tokenizers decelerates training and inference process.
Approach: They propose a method to replace the vocabulary of Large Language Models (LLMs) by learning a one-to-one mapping matrix for token IDs.
Outcome: The proposed method significantly improves multilingual text compression rates and vocabulary initialization for Large Language Models.
Vocab Diet: Reshaping the Vocabulary of LLMs via Vector Arithmetic (2026.findings-acl)

Copied to clipboard

Challenge: Large language models often encode word-form variation as linear directions in the embedding space.
Approach: They propose a compact reshaping of large language models' vocabulary by using shared vectors instead of unique tokens.
Outcome: The proposed approach frees 10-40% of vocabulary slots to be reallocated where tokenization is inefficient.
When Format Changes Meaning: Investigating Semantic Inconsistency of Large Language Models (2025.findings-emnlp)

Copied to clipboard

Challenge: Large language models are vulnerable to semantic inconsistency, a study finds . minor formatting variations result in divergent predictions for semantically equivalent inputs.
Approach: They evaluate LLMs for semantic inconsistency and find they remain vulnerable . they propose to use mechanistic analysis to develop models that improve their reliability .
Outcome: The proposed model is vulnerable to semantic inconsistency, the authors show . their model is brittle even in state-of-the-art models, they say .
Learn Your Tokens: Word-Pooled Tokenization for Language Modeling (2023.findings-emnlp)

Copied to clipboard

Challenge: Language models typically tokenize text into subwords, using a deterministic, hand-engineered heuristic of combining characters into longer surface-level strings such as ‘ing’ or whole words.
Approach: They propose a 'learn your tokens' scheme which pooles bytes/characters into word representations and decodes individual characters/bytes per word in parallel.
Outcome: The proposed tokenizer outperforms subword models and byte/character models over the word boundary and outperformed on rare words by a factor of 30!
Token Erasure as a Footprint of Implicit Vocabulary Items in LLMs (2024.emnlp-main)

Copied to clipboard

Challenge: Current language models process text as sequences of tokens that roughly correspond to words . individual tokens are often semantically unrelated to the meanings of the words/concepts they comprise .
Approach: They propose a method to "read out" the implicit vocabulary of an autoregressive LLM by examining differences in token representations across layers.
Outcome: The proposed method "reads out" the implicit vocabulary of an autoregressive LLM by examining differences in token representations across layers.

What is GenGO?

GenGO is an NLP powered publication search system. It currenctly indexes 30k+ papers from ACL Anthology, and implements multi-aspect summarization, semantic search, and more!

Information

About
Limitations