Small Model Vocabulary Overhead: Can Freezing the Embedding Table Break the Bottleneck?

    This article explains why the embedding (vocabulary) table dominates the parameter budget of small models—often consuming around 60% of all parameters—and how freezing it during training can break this bottleneck. It covers how vocabulary parameters are calculated, the memory and speed benefits of freezing, the costs and boundaries you need to watch, and a practical decision framework for when freezing the vocabulary actually pays off.

    1. The Overlooked Weight: Why the Vocabulary Table Becomes a Small Model’s Biggest Burden

    Before discussing model performance, we tend to focus on the “visible” structures like the number of layers and attention heads. But in the parameter budget of a small model, what really consumes the lion’s share is often an inconspicuous yet enormous component—the word embedding table (vocabulary).

    How to Calculate Vocabulary Table Parameters

    At its core, a word embedding table is a lookup table: each row holds the vector representation of a token. Its parameter count is determined by a very simple multiplication:

    1. Vocabulary parameters = vocabulary size V × embedding dimension D

    For example, consider a small model designed for edge devices (phones, laptops) with a total parameter scale of just over 200 million. If its vocabulary size V is around 250,000 and its embedding dimension D is about 640, then:

    1. Vocabulary parameters = 250000 × 640 ≈ 160 million

    That means the vocabulary alone consumes roughly 60% of the model’s entire parameters. This explains the phenomenon of “the vocabulary eating up 60% of a small model’s weight”—it is not that having more parameters is the problem; the imbalance in proportion is.

    Negligible in Large Models, Fatal in Small Models

    Put the same vocabulary into a hundred-billion-parameter large model, and its share might be only one or two percent, almost negligible; but put it into a 200-million-parameter small model, and it suddenly becomes the absolute mainstay. Behind this lies a structural pattern:

    • A model’s “computational body” typically balloons as layers and hidden dimensions grow;
    • But the vocabulary size is determined by the token scale of the language itself, and hardly shrinks proportionally as the model grows;
    • The result is that the smaller the model, the higher the vocabulary’s share of the total parameters.

    This is precisely the unique predicament of edge small models: compute, memory, and power are all severely constrained, yet they must carry a large vocabulary prepared for general-purpose language.

    2. What Does “Freezing” Actually Freeze?

    The core idea of “freezing the vocabulary” is: during training, no longer update the parameters of the word embedding matrix, treating it as a fixed lookup resource.

    To understand why this is feasible, we first need to see where memory goes during training. Taking the mainstream “weights + gradients + optimizer states” paradigm as an example, for a trainable parameter, beyond the weights themselves, you usually need to maintain a gradient for it, plus one to two momentum/variance estimates for the optimizer (such as adaptive methods with momentum). Thus the real training cost of the vocabulary is far more than one copy of the parameters:

    1. Vocabulary training cost ≈ weights (1 copy) + gradients (1 copy) + optimizer states (1~2 copies)
    2. ≈ 3~4× the per-parameter cost

    A matrix that accounts for 60% of the weights, multiplied by a 3-4× training overhead, becomes the last straw that breaks the small model’s training budget. Freezing it amounts to saving these several-fold amounts of memory and compute in one go.

    Illustrative Freezing Implementation

    Different frameworks have different interfaces, but the logic is the same: remove the word embedding parameters from the “trainable” set, so the optimizer no longer allocates state for them. Expressed in general pseudocode:

    1. # 1. Build the model, including the embedding layer and the backbone network
    2. model = build_model(vocab_size=V, embed_dim=D)
    3. # 2. Mark the embedding table as frozen (no gradients, not passed to the optimizer)
    4. model.embedding_table.trainable = False
    5. # 3. When constructing the optimizer, collect only the parameters that "need training"
    6. trainable_params = [p for p in model.parameters() if p.trainable]
    7. optimizer = create_optimizer(trainable_params)
    8. # 4. Training loop: the embedding only does forward lookup; backpropagation does not update it
    9. for batch in dataloader:
    10. loss = model(batch)
    11. loss.backward()
    12. optimizer.step() # only updates unfrozen parameters
    13. optimizer.zero_grad()

    In one sentence: the forward pass looks up as usual; backpropagation does not update.

    3. Benefits: Saving Memory, Boosting Speed, Lowering the Barrier

    The benefits of freezing the vocabulary are compound rather than a single parameter reduction:

    1. Significant memory reduction. What is saved is not only the gradients and optimizer states for those 60% of weights; in small-model, single-GPU, or edge training scenarios, this is often the key to whether “it can even run.”

    2. Improved training throughput. The vocabulary is huge in parameter count, and each backpropagation must compute gradients for it and have the optimizer perform updates. After freezing, these operations are skipped entirely, raising the number of effective training steps per unit time.

    3. Controllable deployment size and loading cost. Freezing does not change the number of weights, but it leaves room for “whether to further quantize or prune the vocabulary,” and provides a buffer for subsequent low-cost deployment.

    4. More stable convergence. The word embedding is the input foundation for many downstream structures. Freezing a well-pretrained, stable vocabulary reduces the oscillation caused by embedding drift in early training, making fine-tuning on small-scale data more controllable.

    4. Costs and Boundaries: Freezing Isn’t a Panacea

    Every engineering tradeoff has a cost, and freezing the vocabulary is no exception; its applicability boundaries must be clear.

    Vocabulary Quality Sets the Ceiling

    The premise of freezing is that the vocabulary itself is “good enough.” If the word embeddings are not yet fully trained, or if domain tokens (such as technical terms and special symbols) are under-covered, freezing will instead lock in the representations at these positions, and the model will be unable to adjust the word vectors for the new task. In this case, consider partial freezing: freeze only high-frequency general tokens, keeping low-frequency and domain tokens trainable.

    Coupling Between the Vocabulary and the Output Layer

    Many models make the output layer weights weight-shared with the input word embeddings. Once shared, freezing the vocabulary means the output projection is fixed as well, weakening the model’s adaptability to new label spaces. In practice, one needs to re-weigh “the parameter savings from sharing” against “the compute savings from freezing.”

    Vocabulary Size Itself Remains a Hard Cost

    What freezing reduces is the “training overhead,” not the “inference-time weight size.” If the goal is to compress storage on the edge, you still need techniques such as vocabulary pruning, reducing vector dimension, or quantization; freezing alone cannot make the model smaller.

    5. A Practical Decision Framework

    When facing the choice of whether to freeze the vocabulary, consider the following in order:

    • Is compute sufficient? If memory or training budget is tight and the vocabulary share is high, freezing is a highly cost-effective first step.
    • Is the vocabulary good? Prioritize reusing mature word embeddings from large-scale pretraining; be cautious about freezing self-trained small vocabularies.
    • Is the task distant? For fine-tuning tasks close to the target domain, the benefits of freezing are obvious; cross-domain transfer may limit adaptation.
    • Do you want to slim down further? If the goal is to reduce size, freezing alone is not enough—layer on vocabulary pruning, low-rank decomposition, or quantization.

    A pragmatic combined strategy is: first complete low-cost adaptation with a high-quality vocabulary plus freezing, then compress the size on the inference side through quantization and pruning, solving “saving compute in training” and “saving space in deployment” as two separate matters.

    Conclusion

    The core contradiction of small models is that they must carry a large vocabulary prepared for general-purpose language under extremely constrained compute. Freezing the vocabulary is not a new concept, but it precisely hits this pain point: it shifts the focus of training overhead from “updating a huge matrix” to “training the real computational body,” trading a fixed lookup resource for several-fold memory and speed gains.

    By understanding the structural pattern of vocabulary proportions and recognizing the benefits and boundaries of freezing, developers can make clearer judgments in the engineering tradeoffs of small models—decisively cut the weight that should be cut, and firmly keep the representations that should be kept.