Manuscript Offprint

arXiv:2608.26319

When Is Noise Response Universal? Tokenization as the Hidden Variable in Language Models

Yefan Tao, Gerald Friedland, Luyang Kong

Abstract

The performance of textual neural models often degrades when their inputs are corrupted by noise such as typos, OCR errors, or dropped words. We study the degradation rate across neural models, both sentence embeddings and decoder-only LLMs, and find that how consistent it is depends on the scale of the noise: under word-level noise, models with very different architectures decline along nearly the same curve, while under character-level noise they separate. We further identify the determining factor to be the training objective, not the architecture: eight encoders spanning six pretraining paradigms are scattered initially, and collapse onto a common curve after a short contrastive training recipe. We trace the word/character split to tokenization: a single character edit forces the tokenizer to re-segment the surrounding word, disturbing the token sequence far more than dropping a whole word does. This finding and its underlying mechanism provide a practical means to predict a model's robustness to noise without any noisy evaluation, and to install robustness at a chosen noise scale through noise-augmented training.

Introduction

Deployed NLP systems routinely encounter noisy inputs: OCR pipelines misread characters (1→1, rn→m), speech-to-text systems introduce phonetic substitutions, and users produce typos in every text field from search queries to chatbot prompts (Morris et al. 2020). Understanding how models degrade under such noise is critical for reliability, but practitioners currently lack principled tools to predict robustness without exhaustive per-model evaluation. We show that such prediction is often possible, because architecturally different models frequently trace the same normalized degradation curve. We call this universality, in analogy to statistical physics, where microscopically different systems exhibit identical macroscopic behavior, captured by shared scaling functions and exponents once each system is rescaled by its own characteristic scale, determined by a few coarse features such as symmetry and dimensionality (Kadanoff 1966; Wilson 1971).

This universality is uneven across noise types. Sentence-embedding models degrade near-identically under word-level noise (coefficient of variation, CV, of 2% across nine models) but visibly less so under character-level noise (CV 14%). The split is largely an artifact of tokenization: every model sees input only after it is split into tokens, and the two noise types are not equally violent there. Dropping a word removes its tokens and leaves the rest intact; substituting one character forces the tokenizer to re-segment the surrounding word, shattering a token into several unrelated subwords. At a matched corruption rate this makes character noise induce 4–10× more token-edit distance than word dropout, and because the amount of shatter is tokenizer-specific, models with different vocabularies spread apart under it while their word-noise responses stay together.

This tokenization mechanism explains why models sharing a tokenizer diverge much less under character noise than those with different tokenizers, and why a character-level backbone, which cannot shatter, stays character-robust even under an identical objective. Token-edit distance is a strong proximate driver but not a sufficient statistic, since at matched token distance removing a content word still perturbs a representation more than respelling one. The mechanism is also practical: within a regime, universality lets a model's clean accuracy forecast its degradation curve without any noisy evaluation, and noise-augmented training installs robustness at a chosen token-perturbation scale, improving accuracy under noise by up to 19% while preserving clean performance.

References (56)

  • Statistical mechanics of deep learning
  • Synthetic and Natural Noise Both Break Neural Machine Translation
  • A large annotated corpus for learning natural language inference
  • SemEval-2017 task 1: Semantic textual similarity multilingual and crosslingual focused evaluation
  • Canine: Pre-training an efficient tokenization-free encoder for language representation
  • Simcse: Simple contrastive learning of sentence embeddings
  • The platonic representation hypothesis (opens arXiv in a new tab)
  • Adversarial examples for evaluating reading comprehension systems
  • Scaling laws for Ising models near T c
  • Scaling Laws for Neural Language Models
  • Similarity of neural network representations revisited
  • Fantastically ordered prompts and where to find them: Overcoming few-shot prompt order sensitivity
  • Pointer Sentinel Mixture Models
  • Evaluating the robustness of neural language models to input perturbations
  • Textattack: A framework for adversarial attacks, data augmentation, and adversarial training in nlp
  • Scikit-learn: Machine learning in Python
  • Combating adversarial misspellings with robust word recognition
  • Squad: 100,000+ questions for machine comprehension of text
  • Sentence-bert: Sentence embeddings using siamese bert-networks
  • Recursive deep models for semantic compositionality over a sentiment treebank
  • Beir: A heterogeneous benchmark for
  • BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Models
  • Adversarial glue: A multi-task benchmark for robustness evaluation of language models (opens arXiv in a new tab)
  • Text embeddings by weakly-supervised contrastive pre-training (opens arXiv in a new tab)
  • Understanding contrastive representation learning through alignment and uniformity on the hypersphere
  • Emergent Abilities of Large Language Models
  • Renormalization group and critical phenomena
  • Character-level convolutional networks for text classification
  • Universal and Transferable Adversarial Attacks on Aligned Language Models
  • 40% versus 20%
  • Neither can be inflated or deflated by the choice of clean-value normalization, so the word/character split they report is immune to this worry by construction
  • fix a model, fix an input, redraw only the noise seed, and see how much the response moves
  • how distinguishable are these models
  • This is an intrinsic property of the item and does not shrink with $N$
  • The two embedding readouts agree on the ordering and on the several-fold word/character gap, so the choice of readout does not affect the conclusion
  • The nine sentence-trained models span four backbone architectures (MiniLM, MPNet, BERT, T5 encoder), three embedding dimensions (384, 768
  • Embedding uses the raw exponent (with a bootstrap-over-models CI); LLM uses the amplitude-controlled (saturation-normalized) exponent (joint-bootstrap CI, refitting $A_{m}$ and $k_{m}$ on each resample)
  • The 18 decoder-only LLMs are listed in Table 4, with per-model character-noise JS in Table 5
  • Every measurement in the paper fits on a single GPU; the largest models (32B and 72B) use one A100 with half-precision weights, and no experiment requires multi-GPU or model parallelism
  • The nine curves visibly coincide only under word dropout; under every character-level noise type (OCR, keyboard, substitution, swap) they fan out, with the spread growing as the perturbation becomes finer-grained
  • The $\beta = 1$ hypothesis cannot be rejected ($p = 0.16$), confirming that character corruption acts as independent, memoryless hits, consistent with a Poisson process where the encoder processes character-level noise token-by-token
  • The $\beta = 1$ hypothesis is decisively rejected ($p < 10^{-4}$), indicating that word removal is cooperative: the first few dropped words do disproportionate damage before saturating
  • downstream task accuracy collapses to near 0%
  • word-universal
  • The boundary noted in the main text is also visible here: on AG-News the gain is modest at small $\varepsilon$ (a top-1 label is insensitive to the fine-grained distribution shift that the JS metric captures), and emerges clearly only once the noise is heavy enough to flip labels
  • classification on AG News (nearest-centroid accuracy) and clustering on 20 Newsgroups (silhouette score)
  • All use byte-pair-encoding (BPE) tokenizers
  • Table 8 summarizes the word/character split across both architectures
  • Both the absolute values and the normalized curve shapes spread across models (normalized-curve CV $4.8\%$, versus $2.0\%$ under word noise)
  • >Word CV (before → after)</td><td>14.3% → 2.8%</td></tr><tr><td colspan=
  • Clean accuracy ( $\varepsilon=0$ ) is preserved while accuracy under noise improves, the gain growing with $\varepsilon$
  • >Model / task</td><td rowspan=
  • either augmentation cuts character-noise JS from 0.30 to 0.17, while word-noise JS is already low and barely moves
  • >Augmentation</td><td colspan=
  • A character edit perturbs the token sequence several-fold more than a word edit for every tokenizer
  • >Embedding models</td></tr><tr><td>WordPiece (MiniLM, BGE)</td><td>0.09</td><td>0.72</td><td>7.8×</td></tr><tr><td>SentencePiece (GTR-T5)</td><td>0.09</td><td>0.86</td><td>9.8×</td></tr><tr><td colspan=