[Paper Review] Bridging the Gap for Tokenizer-Free Language Models
This paper demonstrates that a deep transformer language model trained directly on raw bytes—without any tokenization—can achieve state-of-the-art performance on the One Billion Word (lm1b) benchmark, matching word-based models. With 40 self-attention layers and 836M parameters, the model learns robust word representations through deep contextualization, proving that tokenizer-free models can be competitive with tokenized counterparts when sufficient capacity is used.
Purely character-based language models (LMs) have been lagging in quality on large scale datasets, and current state-of-the-art LMs rely on word tokenization. It has been assumed that injecting the prior knowledge of a tokenizer into the model is essential to achieving competitive results. In this paper, we show that contrary to this conventional wisdom, tokenizer-free LMs with sufficient capacity can achieve competitive performance on a large scale dataset. We train a vanilla transformer network with 40 self-attention layers on the One Billion Word (lm1b) benchmark and achieve a new state of the art for tokenizer-free LMs, pushing these models to be on par with their word-based counterparts.
Motivation & Objective
- To challenge the assumption that word tokenization is essential for high-performing language models.
- To evaluate whether a purely character/byte-level transformer can achieve competitive performance on large-scale language modeling.
- To analyze whether intermediate representations in a tokenizer-free model can capture meaningful word-level semantics.
- To explore the feasibility of end-to-end, preprocessing-free language modeling with full architectural capacity.
Proposed method
- The model uses a standard transformer decoder with causal attention to predict the next byte in a sequence, processing raw UTF-8 bytes directly.
- It employs a 256-dimensional byte embedding layer and a deep architecture with 40 layers, 1024 hidden size, 8192 feed-forward size, and 16 attention heads.
- Training is performed on random 512-byte sequences with dropout on attention and feed-forward layers, using Adam optimizer and learning rate decay.
- Word representations are extracted by feeding individual words followed by a space, using the activation at the space token as a proxy for word-level representation.
- Evaluation of word similarity is performed using cosine similarity between extracted representations and human-annotated word pairs.
- A windowed prediction strategy is used during development to speed up evaluation, with full autoregressive scoring used in final testing.
Experimental results
Research questions
- RQ1Can a tokenizer-free language model with sufficient capacity achieve competitive performance on large-scale language modeling benchmarks?
- RQ2Do deep transformer layers in a byte-level model learn meaningful word-level representations despite no explicit word boundary supervision?
- RQ3How does the quality of word representations vary across different depth layers in a byte-level transformer?
- RQ4What is the impact of architectural depth and capacity on the performance of pure byte-level language models?
- RQ5Can intermediate activations in a byte-level model be used effectively for downstream semantic tasks like word similarity?
Key findings
- The model achieves a test bits-per-byte of 0.87413 with stride=256 and 0.874055 with stride=1, indicating minimal performance degradation from the windowed evaluation strategy.
- The model sets a new state of the art for tokenizer-free language models on the One Billion Word benchmark, outperforming prior character-level models.
- Spearman’s rho for word similarity tasks reaches 0.43 on WS353sim and 0.46 on RareWords, showing that intermediate representations capture semantic similarity despite no explicit training for this task.
- Performance on word similarity tasks improves from layers 1–10, plateaus or slightly degrades from layers 11–40, suggesting earlier layers learn general linguistic features.
- The model’s ability to represent rare words improves with depth, indicating deeper layers may specialize in capturing low-frequency or complex morphological patterns.
- Despite not being trained for word representation, the model’s intermediate activations show meaningful correlation with human-annotated word similarity, demonstrating emergent semantic learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.