arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.17115cs.CLcs.AI
收藏

DVAGen:动态词汇表增强生成

DVAGen: Dynamic Vocabulary Augmented Generation

School of Computer Science and Technology, East China Normal University(东华师范大学计算机科学与技术学院);School of Computer Science, Fudan University(复旦大学计算机科学学院)

Wei Du, Nuowei Liu, Jie Wang, Jiahao Kuang, Tao Ji, Xiaoling Wang, Yuanbin Wu

AI总结:

针对固定词汇表难以处理新词及现有动态词汇方案工程化不足的问题,本文提出开源统一框架 DVAGen,支持模型训练、评估、可视化与批量推理。

摘要:

使用固定词汇表训练的语言模型难以泛化到新词或词表外词汇,限制了其处理多样 token 组合的灵活性。现有动态词汇表方法试图解决这一限制,但面临代码库碎片化、缺乏对现代 LLM 的支持以及推理可扩展性有限等挑战。为克服这些问题,我们提出 DVAGen,这是一个完全开源的统一框架,旨在用于动态词汇表增强语言模型的训练、评估和可视化。我们的框架将处理流程模块化以便定制,能够与开源 LLM 无缝集成,并且首个同时提供 CLI 和 WebUI 工具以实时检查结果。我们在现代 LLM 上验证了动态词汇表方法的有效性,并展示了对批量推理的支持,显著提升了推理吞吐量。

英文摘要:

Language models trained with a fixed vocabulary struggle to generalize to novel or out-of-vocabulary words, limiting their flexibility in handling diverse token combinations. Existing dynamic vocabulary approaches attempt to address this limitation but face challenges such as fragmented codebases, lack of support for modern LLMs, and limited inference scalability. To overcome these issues, we introduce DVAGen, a fully open-source, unified framework designed for training, evaluation, and visualization of dynamic vocabulary-augmented language models. Our framework modularizes the pipeline for ease of customization, integrates seamlessly with open-source LLMs, and is the first to provide both CLI and WebUI tools for real-time result inspection. We validate the effectiveness of dynamic vocabulary methods on modern LLMs and demonstrate support for batch inference, significantly improving inference throughput.

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

↑