Why Small Language Models Stall: The Vocabulary Eats 63% of the Parameters

    A 268M-parameter on-device model spends only about 71M parameters on its feed-forward layers while its embedding table alone accounts for roughly 168M — 63% of the total. This article explains why vocabulary tables dominate edge-size LLMs, why mainstream quantization skips them and even makes the imbalance worse, and why the embedding layer should be treated as a separate optimization target. It covers four combinable techniques — independent quantization, low-rank factorization, vocabulary pruning, and freezing with weight sharing — plus the engineering tradeoffs that decide whether the savings actually land: accuracy on rare terms, tokenizer realignment, inference-framework compatibility, and honest memory accounting.

    1. A counterintuitive fact: the “brain” is small, the “dictionary” is huge

    Many developers assume that more parameters simply means a heavier model. What they often miss is a counterintuitive reality: in small models built for the edge, the part that actually does the compute and the reasoning is rarely the part that dominates file size.

    Take a 268-million-parameter model designed for phones and laptops. Break open its internals and the picture inverts: the feed-forward layers that handle feature transformation and inference account for only about 71 million parameters, while the embedding table — the thing that merely maps each token to a vector — takes up roughly 168 million. That is 63% of the entire model.

    The mechanism is simple. An embedding table is one very large lookup table: vocabulary size multiplied by hidden dimension gives you its parameter count. Every token needs its own independently learned vector, and those vectors are usually shared with the model’s output layer (weight tying). For a tens-of-billions-parameter model, this table is rounding error. For a few-hundred-million-parameter model, this table is the model.

    In other words, the real compute engine is small. It is the dictionary that has been bloating.

    2. Three forces pushed small models to the center — and nobody cut the vocabulary

    Three developments converged to put on-device small models in the spotlight:

    1. Extreme compression proved viable. Approaches such as ternarization demonstrated that neural network weights can be represented with just three values — -1, 0, and +1 — cutting model size and compute dramatically with almost no quality loss, and in theory approaching 1-bit storage.

    2. Sub-billion-parameter models became genuinely useful. A series of open-source small models can now handle everyday dialogue, text summarization, and simple question answering well enough to matter, moving “fit the model on the device” from concept to reality.

    3. On-device deployment turned every byte into real money. When a model runs offline on a phone or laptop, size dictates download and storage cost, while memory-read speed dictates time-to-first-token and power draw. At that point not one megabyte can be wasted.

    Here is the contradiction: while compression technology sprinted ahead, the vocabulary — that slab of dead weight — was never really touched.

    3. Why quantization didn’t solve it, and made it more conspicuous

    Intuitively, if quantization can shrink weights, the vocabulary should shrink along with them. In practice the opposite happened: quantization not only bypassed the embedding table, it made the table’s problem sharper.

    There are two reasons.

    First, mainstream quantization methods — whether per-layer bit reduction or extreme schemes like ternarization and binarization — act primarily on the linear layers that do matrix multiplication. The embedding layer is fundamentally a sparse lookup, and its value distribution differs from that of linear layers, so aggressive quantization degrades quality more readily. It is therefore often left at higher precision by default.

    Second, mainstream local inference frameworks typically load the output and embedding layers at only 6 to 8 bits, while the body sits at 1 to 4 bits.

    The result is absurd. Once the body is slimmed down, the vocabulary that was never compressed becomes the single largest share of the file. By a reasonable accounting, a ternary model might have a compute body of roughly 20 MB while still carrying a 16-bit vocabulary of 300 MB or more.

    The accounting itself deserves scrutiny. Some technical reports list on-device memory footprint as “excluding the embedding layer” — quietly subtracting the largest component from the headline number. That default acceptance is worth questioning: is this table really worth what it costs?

    4. The idea behind “freezing it”: treat the embedding layer as its own optimization target

    Re-examining the vocabulary reveals a long-overlooked assumption error: we have always compressed “the model body” and “the vocabulary” as one unit, without ever seriously asking whether the embedding layer needs to be handled the same way as the body.

    The core idea behind “freeze it” is to lift the embedding layer out of that consensus treatment and optimize it independently. Several routes exist, and they compose:

    1. Independent quantization of the embedding layer. Since the vocabulary is inherently unsuited to the body’s aggressive bit budgets, design a quantization strategy for it alone — group-wise scaling, mixed precision, and similar techniques — that pushes 16 bits lower without meaningful quality loss. The point is not to copy the body’s settings but to match the characteristics of a lookup operation.

    2. Low-rank factorization. Because the parameter count is roughly vocabulary size × hidden dimension, the large matrix can be factored into the product of two smaller matrices (a low-rank approximation), trading controlled accuracy loss for a substantial size reduction. This is especially effective for very large vocabularies.

    3. Vocabulary pruning. Not every token deserves its own vector. Frequency analysis, merging low-frequency or near-synonym tokens, and dropping rare characters can materially shrink the vocabulary and cut parameters at the source.

    4. Freezing and sharing. In fine-tuning scenarios, embedding vectors often change little, so they can be frozen as a static, compressed representation — saving memory and avoiding redundant training. Input/output weight sharing should also be used fully so the same information is not stored twice.

    These routes are not mutually exclusive and are usually combined in practice: prune the vocabulary first, then use low-rank factorization to remove dimensional redundancy, then apply lookup-aware independent quantization, and finally lock in edge-side accuracy with a freezing strategy.

    5. Engineering tradeoffs in practice

    Compressing the vocabulary is not pure upside. The costs deserve a clear-eyed look:

    • Accuracy versus size. The more aggressive the compression, the more likely representations of rare words and proper nouns distort. Run regression evaluation on real business corpora rather than relying only on offline metrics such as perplexity.
    • Vocabulary changes pull in the tokenizer. Pruning the vocabulary almost always requires corresponding changes to tokenization logic, with input and output encodings realigned — otherwise mapping errors surface in production.
    • Inference-framework compatibility. The embedding layer’s compressed format must be decodable on the inference side; custom formats generally need matching runtime support, or the optimization gains never materialize.
    • Don’t be misled by the accounting. When estimating on-device cost, always include the embedding layer, so “excluding the embedding layer” figures don’t hide the real deployment burden.

    6. Conclusion

    Small-model slimming has moved into deeper water. Once the body can be compressed to near 1 bit, further work on the linear layers yields diminishing returns, and the real bottleneck shifts to that long-ignored table consuming 63% of the parameters.

    Treating the vocabulary as an independent optimization target — combining quantization, low-rank factorization, pruning, and freezing into a targeted plan — is becoming a key part of edge model engineering. For teams running models on end devices, whether you build your own approach or rely on general capabilities such as cloud-side model hosting, compilation optimization, and monitoring and alerting, it is worth putting the embedding layer’s size and precision back into the cost model. What actually slows a model down on its way to deployment is often not the conspicuous “brain” but the silent “dictionary.”