Embeddings Are Overpriced? A Frozen 16 MB Vocabulary for Small and Ternary Language Models
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.
Create a lesson
Metadata
- Comments
- 9 pages, 2 figures, 6 tables. Code, data, checkpoints and per-question results: https://huggingface.co/QLNI/embeddings-are-overpriced. Preprint DOI: 10.5281/zenodo.23382634
Related papers
Parameter-Efficient Vocabulary Expansion via Cross-Lingual Embedding Alignment
Shared title terminologycs.CLAndrew Ivan Soegeng, Muhammad Reza Qorib, Weishi Wang et al.
Efficiency Measured in English: Tokeniser Coverage Bounds Small Language Models on Indic Scripts
Shared title terminologycs.CLAnna Pramod
Steering beyond Language: Improving Multilingual Training-Free Text Embeddings via Paired-Residual Subspace Removal
Shared title terminologycs.CLAiliang Lin, Zhuoyun Li, Yusong Wang et al.
Who Pays for Efficient Inference? Confidence-Based Small-to-Large LLM Routing Across Tasks and Languages
Shared title terminologycs.CLMd Sabbir Hossen, Anichur Rahman, Pabon Shaha et al.
FederatedBytes: Tokenizer-Free, Byte-Level Small Language Models for Efficient Multimodal Federated Learning
Shared title terminologycs.CLAli Sarabadani, Massimo Piccardi, Mehran Abolhasan et al.
ASCENT: A Benchmark for Evaluating and Advancing Stepwise Diagnostic Reasoning in Large Language Models on Common Clinical Scenarios
Shared title terminologycs.CLYera Choi, Yeong Hwa Kim, Jaedeok Lee et al.