Efficiency Gains and Extrapolation Limits of End-Vocabulary Distillation

    This article examines end-vocabulary distillation as a strategy for reducing the storage and transmission cost of teacher logits during knowledge distillation. It analyzes the mechanism behind potential data efficiency gains, quantifies the reported benefits, and distinguishes measured results from predictions derived via scaling-law extrapolation. The discussion covers storage cost reduction, the risk of overestimating extrapolated gains, and a phased engineering validation approach with pseudocode.

    Efficiency Gains and Extrapolation Limits of End-Vocabulary Distillation

    In the practice of knowledge distillation, one frequently underestimated cost factor is the storage and transmission of the teacher model’s output distribution. When the output vocabulary is large, the storage overhead of full logits rises quickly; if top-k truncation is applied instead, probability information in the tail is lost. End-vocabulary expanded distillation merits discussion in this context: it attempts to reduce the storage cost of teacher logits and improve data efficiency by using a more compact output space on the student side. However, conclusions based on scaling-law extrapolation must be strictly distinguished from measured results. This article analyzes the topic from four perspectives: the mechanism, quantitative gains, risk boundaries, and engineering verification.

    1. Background: Distillation Cost Is Not Only About Model Size

    Conventional distillation typically requires the teacher model to output a probability distribution over training samples, which the student model fits via objectives such as KL divergence. Storing full logits incurs storage costs proportional to vocabulary size, number of samples, and precision format. Storing only top-k results compresses storage but discards relative relationships among long-tail categories. In large-scale pretraining or continuous training scenarios, logits storage can become a hidden bottleneck in the data pipeline.

    The core idea behind end-vocabulary expansion is to adopt a more compact vocabulary on the student side, so teacher logits can be stored over this output space without relying on top-k truncation. The 256-token vocabulary mentioned in the original analysis reduces logits storage cost to roughly one-fifth under this setup. It is important to clarify that what is saved here is the storage of distillation logits, not model size. The teacher model still models tokens, and the tokenizer does not disappear; it is merely bypassed or replaced by a more compact output space on the student side.

    2. Mechanism: Why It May Be More Data-Efficient

    End-vocabulary distillation may improve data efficiency for three reasons.

    First, the target distribution becomes more concentrated. A smaller output space makes the probability mass more compact, allowing the student model to fit meaningful signals more easily with limited data, reducing the sparse learning burden on long-tail categories of a large vocabulary.

    Second, top-k truncation bias is avoided. When the full teacher distribution is preserved, tail probabilities—although small—can carry similarity information between categories during distillation; top-k truncation introduces systematic bias. After mapping to the end-vocabulary, if the full distribution can be preserved at lower storage cost, the student receives more stable supervision signals.

    Third, the data and storage budget is rebalanced. The original analysis concluded that roughly one-sixth of the data is sufficient to match the in-vocabulary distillation baseline, and that under scaling-law extrapolation, the asymptotic performance of end-vocabulary expansion is at most about 4% better. These numbers suggest an efficiency advantage under specific settings, but both “asymptotic” and “at most” indicate reliance on extrapolation assumptions and cannot be directly treated as general measured conclusions.

    3. Quantitative Results and the Boundary of Extrapolation

    From the given experiments and extrapolation analysis, the following observations can be summarized:

    • Data efficiency: The end-vocabulary expansion scheme matches the in-vocabulary distillation baseline with roughly one-sixth of the data.
    • Asymptotic gain: According to scaling-law extrapolation, the end-vocabulary scheme is at most about 4% better asymptotically.
    • Storage cost: With a 256-token vocabulary, teacher logits can be saved without top-k truncation, reducing storage to about one-fifth.
    • Baseline comparison: Extrapolation predicts that its asymptotic performance can exceed several public baselines of similar scale, with average downstream metrics up to about 6.5%, 8.1%, and 2.1% higher, respectively.

    These numbers must come with qualifiers: they are predictions from scaling-law extrapolation, not end-to-end measured results. Scaling-law extrapolation is typically based on fitting trends from small or intermediate scales, and error sources include task distribution shift, insufficient hyperparameter tuning, tokenizer differences, data composition changes, and inconsistent evaluation criteria across downstream tasks. If an engineering team directly uses these predictions to make model-selection decisions, they risk overestimating the gains.

    4. Four Risks That Deserve Careful Consideration

    1. Extrapolation is not measurement. “Outperforming public baselines of similar scale” is a trend prediction, not a controlled comparison under the same training recipe and data pipeline. At minimum, three closed-loop validations should be completed: fixed data budget, fixed storage budget, and fixed evaluation set.

    2. What is saved is logits storage, not model size. The end-vocabulary reduces the cost of saving and transmitting the teacher’s output distribution. The student model’s parameter count, inference memory footprint, and deployment cost do not automatically decrease as a result.

    3. The teacher is still a token-based model, and the tokenizer has not disappeared. The end-vocabulary only bypasses the original tokenizer’s output space on the student side; it does not mean the tokenizer is permanently eliminated. Multilingual, code, and long-tail symbol scenarios still require validation of whether the end-vocabulary mapping loses information.

    4. A small vocabulary may become an expressiveness bottleneck. A more compact output space benefits efficiency but may limit fine-grained category discrimination. Evaluation should be performed separately on general downstream tasks, domain-specific tasks, and long-tail samples, rather than only reporting average metrics.

    5. Engineering Implementation Recommendations and Pseudocode

    A phased validation approach is recommended: first run a small-scale ablation to confirm that end-vocabulary mapping does not lose critical signals; then fix the storage budget and compare top-k truncation with full end-vocabulary storage; finally compare data efficiency under an equal data budget. Pseudocode:

    1. # Generic pseudocode: end-vocabulary distillation validation loop
    2. for phase in ["ablation", "storage_budget", "data_budget", "downstream_eval"]:
    3. config = load_experiment_config(phase)
    4. student, teacher = init_models(config)
    5. store = init_logits_store(vocab_size=config.end_vocab_size)
    6. for batch in data_loader(config.data):
    7. teacher_dist = teacher.output_distribution(batch)
    8. end_dist = map_to_end_vocab(teacher_dist)
    9. store.write(batch.sample_id, end_dist) # no top-k truncation
    10. student_loss = distillation_loss(student(batch), end_dist, temperature=config.temperature)
    11. student.update(student_loss)
    12. record(phase, storage_cost, data_usage, downstream_metrics)

    During validation, the following must be logged simultaneously: logits storage bytes, number of training samples, student model parameter count, inference latency, downstream task metrics, and variance. Only when the logs demonstrate that “storage reduction does not come at the cost of significant accuracy loss” does end-vocabulary distillation merit engineering adoption.

    6. Conclusion

    End-vocabulary expanded distillation offers a promising efficient distillation path: it reduces logits storage cost through a compact output space and demonstrates data efficiency and asymptotic gains under specific extrapolation settings. However, claims such as “matching with roughly one-sixth of the data,” “at most 4% better,” “storage reduced to about one-fifth,” and the extrapolated advantages over public baselines of similar scale should all be treated as hypotheses awaiting measured confirmation, not established conclusions. The rational approach is to preserve the efficiency idea, complete an end-to-end evaluation loop, and make reproducible trade-offs among storage, data, accuracy, and deployment cost.