scimeatlas

Research map / Large language models / Language, safety and interpretability

TokDrift: When LLM Speaks in Subwords but Code Speaks in Grammar

Yinxi Li, Yuntian Deng, Pengyu Nie

ACL 2026Large language models › Language, safety and interpretabilityapproach: Controlled text generationopen problems in this approach7 citations (OpenAlex)

University of Waterloo

Read the paperPlace an idea next to itCheck your own paper ↗

8measured effects
1improved
1no clear effect
5hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply a single semantic-preserving rewrite rule (naming or spacing) that changes tokenizationnine code LLMs · HumanEvalPack and Avatar/CodeNet tasksaccuracy: -2.90 to +0.32 points (avg over models)Hurt
apply tokenization-changing rewritesnine code LLMs · code benchmarkssensitivity (%): 9.26 naming, 8.29 spacingHurt
apply the wildcard spacing rules (op-name, op-all)nine code LLMs · code benchmarkssensitivity (%): over 10Hurt
use larger model (large vs small/medium) in each series (ablation)Llama-3, Qwen2.5-Coder, DeepSeek-Coder · code benchmarkssensitivityMixed
scale model size on naming rewrites (ablation)three model series · code benchmarkssensitivityNo clear effect
samples with identifier fragment change vs unchanged (ablation)large models · code benchmarkssensitivityHurt
use Llama-3 instead of Qwen2.5-Coder or DeepSeek-Codercode LLMs · code benchmarkssensitivityHurt
convert camelCase and snake_case identifiers to each othercode LLMs · code benchmarkssensitivityImproved

Open problems in controlled text generation

How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy