arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.26124cs.CL
收藏

面向高效领域特定大语言模型部署的词表定制方法

Vocabulary Customization for Efficient Domain-Specific LLM Deployment

eBay Inc(eBay公司)

Christian Herold, Michael Kozielski, Nicholas Santavas, Yannick Versley, Shahram Khadivi

AI总结:

针对大语言模型跨领域处理时的词表不匹配导致的分词效率低问题,提出一种保证不降低分词效率的词表扩展算法,在电商场景下可缩短序列长度、降低推理延迟且保持预测质量。

摘要:

当使用大语言模型(LLM)处理训练领域之外的文本时,一个常被忽视的因素是词表不匹配问题:通用领域分词器无法捕捉高频领域特定术语,导致词元生成率更高,且因次优的子词拆分降低处理速度。\n我们通过向预训练词表中添加一组领域特定词元来解决这一局限。为此,我们设计了一种扩展现有分词器的算法,同时保证其绝不会降低分词效率:任意输入序列被拆分出的词元数量最多与之前持平。\n在真实电商用例上的评估显示,增强后的分词器最多可将输入序列长度缩短20%,并在保持预测质量的同时降低下游任务的推理延迟。我们进一步分析了次要影响,比如对前向传播速度的影响以及模型采用新引入词元的比率,以说明词表适配更广泛的益处。

英文摘要:

When using an LLM to process text outside the training domain(s), an often overlooked factor is vocabulary mismatch, where the general-domain tokenizer fails to capture frequent domain-specific terms, leading to higher token fertility and thus a decrease in processing speed due to suboptimal sub-word splits. We address this limitation by augmenting the pretrained vocabulary with a set of domain-specific tokens. To this end, we design an algorithm that extends an existing tokenizer while guaranteeing it never decreases tokenization efficiency: every input sequence is segmented into at most the same number of tokens as before. Evaluated on real-world e-Commerce use-cases, the augmented tokenizer significantly shortens input sequences by up to 20% and reduces inference latency on downstream tasks while preserving predictive quality. We further analyze secondary effects, such as the impact on forward pass speed and the rate at which the model adopts the newly introduced tokens, to illustrate the broader benefits of vocabulary adaptation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑