词汇中的淘金:一种面向特定领域 LLM 的自适应词汇扩展方法
Gold Panning in Vocabulary: An Adaptive Method for Vocabulary Expansion of Domain-Specific LLMs
AI总结:
针对领域 LLM 词汇扩展问题,本文提出 VEGAD 自适应方法,从领域词汇中筛选有价值子集,并在三个中文数据集上验证其可同时提升领域与通用任务表现。
摘要:
尽管大型语言模型(LLM)展现出令人印象深刻的生成能力,但由于其特定领域知识有限,在面对专业领域时往往表现不佳。关于特定领域 LLM 的研究通常会在使用领域语料进行微调之前先扩展词汇表,旨在缩短序列长度并提高解码效率,但这些研究并未充分考察词汇扩展对 LLM 在不同领域上产生的结果。我们的初步研究表明,仅使用整个词汇表中的一个子集进行扩展,可能会带来更优的性能。在这一发现的指导下,本文探索如何识别一个词汇子集以获得最佳结果。我们提出了 VEGAD,这是一种自适应方法,能够从给定的领域词汇表中自动识别有价值的词。该方法已在三个中文数据集上通过实验得到验证,证明了其有效性。此外,我们还对该方法进行了全面分析。结果表明,选择最优子集进行扩展能够同时提升特定领域任务和通用任务的性能,展现了 VEGAD 的潜力。
英文摘要:
While Large Language Models (LLMs) demonstrate impressive generation abilities, they frequently struggle when it comes to specialized domains due to their limited domain-specific knowledge. Studies on domain-specific LLMs resort to expanding the vocabulary before fine-tuning on domain-specific corpus, aiming to decrease the sequence length and enhance efficiency during decoding, without thoroughly investigating the results of vocabulary expansion to LLMs over different domains. Our pilot study reveals that expansion with only a subset of the entire vocabulary may lead to superior performance. Guided by the discovery, this paper explores how to identify a vocabulary subset to achieve the optimal results. We introduce VEGAD, an adaptive method that automatically identifies valuable words from a given domain vocabulary. Our method has been validated through experiments on three Chinese datasets, demonstrating its effectiveness. Additionally, we have undertaken comprehensive analyses of the method. The selection of a optimal subset for expansion has shown to enhance performance on both domain-specific tasks and general tasks, showcasing the potential of VEGAD.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。