When Tokenizers Fail: Byte-Level Chunking for Zero-Shot Transfer to Low-Resource Languages

Sanjeev Kumar, Atsuki Yamaguchi, Nikolaos AletrasarXiv 2026

TL;DR

Standard subword tokenizers frequently over-fragment low-resource languages, severely degrading their performance on downstream tasks. This paper introduces a novel adapted hierarchical byte-level framework that bridges the gap between raw byte inputs and frozen, pretrained large language models (LLMs) without requiring massive retraining. By dynamically chunking bytes into word-aligned representations, the method achieves up to a 13.3% improvement in zero-shot cross-lingual part-of-speech (POS) tagging for low-resource Indic languages.

What Problem Does This Paper Address?

Modern multilingual LLMs rely on subword tokenizers like Byte Pair Encoding (BPE) or Unigram models. Because these tokenizers are trained predominantly on high-resource languages, they impose foreign frequency patterns onto low-resource variants that share the same script. For example, the Qwen3 tokenizer splits a staggering 97.7% of words in Bhojpuri—a low-resource language sharing the Devanagari script with Hindi—into an average of 4.43 subword tokens per word. This over-fragmentation forces the model to operate on linguistically mangled sequences, masking segmentation failures beneath valid but incorrect tokens.

While operating directly on raw UTF-8 bytes eliminates tokenizer bias, it introduces a granularity mismatch for word-level tasks, especially in non-Latin scripts where a single character spans multiple bytes. Existing hierarchical byte-level models (like H-Net or Bolmo) group bytes into word-aligned chunks dynamically, but they require massive pretraining data (billions to trillions of tokens) and suffer from a severe representational mismatch when paired with frozen, subword-based LLM backbones. This paper addresses how to efficiently adapt a frozen subword LLM to process raw bytes for low-resource languages under tight data constraints.

Methods

The authors propose an adapted H-Net framework that plugs into a frozen subword-based LLM backbone (such as Qwen3 or Gemma3), unfreezing only the first and last transformer layers.

Figure 1: Overview of the proposed H-Net architecture for low-resource languages.

To make this hybrid architecture work efficiently with limited data, they introduce three key modifications:

  1. Backbone-Initialized Byte Embeddings: Instead of random initialization, byte embeddings are initialized by averaging the backbone's subword embeddings that contain each specific byte value. This places byte representations in a meaningful semantic space from the start.
  2. Chunk Alignment Loss: A novel loss function pulls dynamically grouped byte-chunk embeddings toward a "byte alignment target" (the average of the corresponding backbone subword embeddings). This ensures the frozen backbone can correctly interpret the newly formed byte chunks.
  3. Task-Guided Pretraining: The authors interleave lightweight part-of-speech (POS) supervision from a resource-rich source language (Hindi) during the byte-level pretraining phase. This provides a strong structural signal that helps the model learn clean word boundaries.

Datasets

  • Adaptation/Pretraining: 500K Hindi sentences from the FineWeb2 hin_Deva subset (~1.02B bytes).
  • Task-Guided Supervision: POS data from the Universal Dependencies (UD) Hindi treebank (hi-hdtb, 13K sentences).
  • Evaluation Tasks (Zero-Shot Cross-Lingual Transfer):
  • POS Tagging: UD treebanks for Bhojpuri, Marathi, Magahi, Sanskrit, and Urdu.
  • Named Entity Recognition (NER): WikiANN datasets for Urdu, Marathi, and Sanskrit.
  • Sentiment Analysis: IndicSentiment dataset for Marathi and Urdu.

Key Insights and Ideas

  • Random Initialization Causes Boundary Collapse: Without backbone initialization, the model's routing module completely fails to learn word-level boundaries. As shown in the training dynamics, the average chunk length explodes to between 200 and 1,200 bytes (compared to the target of ~18 bytes), causing training to stall.
  • Tokenizer Geometry Matters: Tokenizers handle spaces differently. Qwen3 gives the space character its own token, while Gemma3 absorbs spaces into word-initial tokens. For Gemma3, an isolated space byte lacks a dedicated embedding, yielding a near-zero target vector that blinds the boundary detector. The authors solved this by computing the space target as the centroid of all word-initial token embeddings.
  • Task-Type Divergence: Hierarchical byte-level chunking is highly effective for word-level morphological and syntactic tasks (POS, NER) where word boundaries directly impact label prediction. However, it underperforms subword baselines on sentence-level semantic tasks like sentiment analysis, which depend more heavily on large-scale vocabulary exposure rather than local morphological structure.
Figure 3: Training dynamics with random (red) vs backbone (blue) byte embedding initialization. Left: average boundary ratio over 20,000 steps oscillates at 0.43–0.49. Right: average chunk length.

Key Results

  • POS Tagging: The adapted H-Net consistently outperformed subword baselines. H-Net (Qwen3-1.7B) achieved an average gain of 10.4 points across five low-resource languages, peaking with a +13.3% improvement on Urdu and a +12.1% gain on Magahi.
  • NER: H-Net demonstrated strong cross-lingual transfer, averaging a 3.1 point gain for Qwen3-1.7B and a 3.6 point gain for Gemma3-4B, with a maximum improvement of 10.6 points on Sanskrit.
  • Comparison to Continued Pretraining (CPT): Simply exposing the standard subword model to more Hindi text (CPT) yielded negligible improvements (~0.1 to 0.8 points), proving that architectural adaptation—not just more data—is required to solve tokenizer fragmentation.

Limitations and Future Work

  • Language and Script Constraints: The framework was pretrained exclusively on Hindi. Cross-lingual transfer relies heavily on script sharing (Devanagari) or close linguistic relatedness (Urdu). Its efficacy on entirely divergent scripts (e.g., Tamil, Arabic, Chinese) remains unvalidated.
  • Task Scope: The evaluation focused on sequence labeling and sentiment classification. Deeper semantic tasks like machine translation or natural language inference (NLI) were not explored.
  • Compute Asymmetry: H-Net processes significantly more tokens (1.02B raw bytes) during adaptation than the subword baseline does (7.5M subwords), leaving a fully compute-matched comparison as an open question for future research.

Summary updated

BibTeX
@misc{kumar2026when,
  author = {Sanjeev Kumar and Atsuki Yamaguchi and Nikolaos Aletras},
  title = {{When Tokenizers Fail: Byte-Level Chunking for Zero-Shot Transfer to Low-Resource Languages}},
  year = {2026},
  eprint = {2608.27658},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.27658},
}
Figure