Embeddings Are Overpriced? A Frozen 16 MB Vocabulary for Small and Ternary Language Models
Paper · https://arxiv.org/abs/2610.22428
arXiv:2610.22428v1 Announce Type: new Abstract: In a small language model the vocabulary is the single largest part. In Gemma 3 270M the embedding table holds 168M of 268M parameters, and because quantisation methods leave the embedding in 16-bit, it is also most of the file once the rest of the model is compressed. We ask what that table actually buys. We replace it with one frozen table of 512-bit codes, 16 MB, with no trainable parameters, derived once from a pretrained embedding by principal-component projection and sign binarisation, and we train the same Gemma-shaped body from scratch on the same 2.05B tokens with and without it. The learned table buys 0.20 nats of validation loss for 2.6 times the trainable parameters, but on LAMBADA, HellaSwag and PIQA the frozen-table model is better or tied; only ARC-Easy favours the learned table. With a ternary BitNet b1.58 body the whole model is a 46 MB file, still ties the float model on LAMBADA and PIQA, and on a laptop CPU generates 615 to 740 tokens per second in 62 MB of memory, five to six times the speed of the float model's 8-bit GGUF in llama.cpp at a seventh of the memory. The frozen table wins by 1.7 to 2.3 nats on rare words, accepts 10,000 new words after training with a 3% cost where the learned table collapses by 43%, and all of it is released with the weights, the data and every evaluation answer.
First seen by Oriel on .
AI summary
The paper replaces a small language model’s large learned embedding table with a frozen 16 MB binary-code vocabulary, reducing model size while maintaining or improving several benchmark results.
- The 512-bit codes are derived from a pretrained embedding using principal-component projection and sign binarisation, with no trainable parameters.
- On Gemma-shaped models trained from scratch on the same 2.05B tokens, the learned table improves validation loss by 0.20 nats but uses 2.6 times as many trainable parameters.
- The frozen-table model matches or beats the learned-table model on LAMBADA, HellaSwag, and PIQA; ARC-Easy favors the learned table.
- A ternary BitNet b1.58 version is 46 MB and generates 615 to 740 tokens per second on a laptop CPU using 62 MB of memory.
- The frozen table performs 1.7 to 2.3 nats better on rare words and accepts 10,000 new words after training with a 3% cost, while the learned table's performance collapses by 43%.
#language models #embeddings #ternary quantization #model compression
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| arXiv AI Papers | oai:arXiv.org:2610.22428v1 | https://arxiv.org/abs/2610.22428 Read discussion |