SpeLLM: Character-Level Multi-Head Decoding

Amit Ben Artzy, Roy SchwartzarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) typically rely on massive token-level vocabularies, which create a computational bottleneck in the final output projection layer. This paper introduces SpeLLM, an architecture that replaces the heavy token-level head with multiple parallel character-level heads. By decoupling input and output vocabularies and utilizing self-distillation from pre-trained models, SpeLLM achieves an average 5.1% runtime speedup. Evaluation on benchmarks like BoolQ and GSM8K demonstrates that SpeLLM maintains competitive performance, particularly when augmented with auto-correction and entropy-based fallback mechanisms.

Introduction

Current LLMs utilize Byte-Pair Encoding (BPE) to process text as sequences of tokens. While large vocabularies (often exceeding 100,000 tokens) improve processing efficiency, they impose a significant "vocabulary bottleneck" at the output stage. Generating each word requires calculating probability scores across the entire dictionary, a process that scales linearly with vocabulary size and consumes substantial memory and compute. SpeLLM proposes a shift from predicting whole tokens to "spelling" them out using a small set of characters, thereby drastically reducing the complexity of the output layer.

Methodology

SpeLLM decouples the input and output vocabularies to maintain the efficiency of large-scale input processing while simplifying generation.

Multi-Head Decoding

Instead of a single head predicting one token from a massive set, SpeLLM employs $k$ parallel linear heads (e.g., $k=10$). Each head simultaneously predicts a single character from a restricted set of approximately 105 symbols (letters, digits, punctuation). This combinatorial approach allows a tiny output layer—less than 1% the size of standard BPE heads—to represent a vast output space.

Comparison of SpeLLM with traditional large and small vocabulary token-level architectures.

Self-Distillation and Refinements

To adapt existing models like Llama 3 or Gemma 2, the authors use self-distillation. A student SpeLLM is trained to match the top-5 token predictions of a teacher LLM by spelling them. Training involves a hybrid loss function combining character-level accuracy with an auxiliary token-level loss to preserve semantic understanding.

During inference, SpeLLM incorporates two key refinements:

  • Auto-correction: If the generated character string is invalid, the model identifies the most likely valid token based on character probabilities.
  • Entropy-fallback: When character heads exhibit high uncertainty (entropy), the model can fall back to the original token-level head to ensure accuracy.

Results

SpeLLM was evaluated using 500,000 samples from the FineWeb-Edu dataset for distillation and tested on downstream tasks including BoolQ, ARC-Easy, and GSM8K. The architecture achieved an average 5.1% reduction in total runtime across Llama and Gemma model families. In terms of fidelity, SpeLLM variants achieved a 92-95% exact match with their teacher models.

On reading comprehension tasks like BoolQ, SpeLLM performance was comparable to the original models. However, complex mathematical reasoning (GSM8K) initially showed a performance gap, which was mitigated by the entropy-fallback and auto-correction mechanisms.

Accuracy on the GSM8K benchmark across different model scales, showing the impact of SpeLLM and its auto-correction refinement.

Conclusion

SpeLLM successfully breaks the vocabulary bottleneck by replacing heavy token-level projections with efficient, parallel character heads. While the current implementation is limited by the underlying Transformer backbone and some dependency on BPE for training, it demonstrates a viable path toward more efficient multi-lingual and domain-specific LLMs. Future research will explore training character-level heads from scratch during the pre-training phase.

Summary updated

BibTeX
@misc{artzy2025spellm,
  author = {Amit Ben Artzy and Roy Schwartz},
  title = {{SpeLLM: Character-Level Multi-Head Decoding}},
  year = {2025},
  eprint = {2507.16323},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.16323},
}
Figure