arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.09857cs.CLcs.AI
收藏

IGOT:领域自适应预训练中的信息增益优化分词器

IGOT: Information Gain Optimized Tokenizer on Domain Adaptive Pretraining

Tsinghua University(清华大学)

Dawei Feng, Yihai Zhang, Zhixuan Xu

AI总结:

针对大语言模型领域适配缺乏通用范式的问题,提出信息增益优化分词器IGOT,通过构建领域特定分词器开展持续预训练,有效提升训练效率与领域任务收敛表现。

摘要:

ChatGPT、Claude等预训练大语言模型(LLM)已在自然语言生成的多个领域展现出强大能力,但在专业特定领域使用LLM时仍存在诸多问题。使用生成式AI处理下游任务时,常见做法是通过持续训练或微调为预训练模型添加新知识(如私有领域知识、前沿信息),但领域自适应训练是否存在通用范式仍是一个开放问题。本文提出信息增益优化分词器(Information Gain Optimized Tokenizer, IGOT),该方法分析下游任务的特殊词元集合,借助启发式函数$\phi$结合特殊词元及其信息增益构建新子集,以此打造新的领域特定分词器,并在下游任务数据上开展持续预训练。我们探究了该方法的定制化分词器对领域自适应预训练的诸多积极作用,验证了该方法效果优于仅收集数据并微调的常规方法。实验结果显示,搭配LLaMA-7B的IGOT持续预训练过程实现了11.9%的词元节省、12.2%的训练时间节省,以及5.8%的GPU显存最大使用量节省;与T5模型结合后,训练时间节省幅度甚至可达31.5%,让通用生成式AI向特定领域的迁移比以往更高效。在领域特定任务中,有监督的$IGOT_\tau$在持续预训练过程中,在缩小收敛半径和优化收敛点两方面均表现出优异性能。

英文摘要:

Pretrained Large Language Models (LLM) such as ChatGPT, Claude, etc. have demonstrated strong capabilities in various fields of natural language generation. However, there are still many problems when using LLM in specialized domain-specific fields. When using generative AI to process downstream tasks, a common approach is to add new knowledge (e.g., private domain knowledge, cutting-edge information) to a pretrained model through continued training or fine-tuning. However, whether there is a universal paradigm for domain adaptation training is still an open question. In this article, we proposed Information Gain Optimized Tokenizer (IGOT), which analyzes the special token set of downstream tasks, constructs a new subset using heuristic function $ϕ$ with the special token and its information gain, to build new domain-specific tokenizer, and continues pretraining on the downstream task data. We explored the many positive effects of this method's customized tokenizer on domain-adaptive pretraining and verified this method can perform better than the ordinary method of just collecting data and fine-tuning. Based on our experiment, the continued pretraining process of IGOT with LLaMA-7B achieved 11.9\% token saving, 12.2\% training time saving, and 5.8\% maximum GPU VRAM usage saving, combined with the T5 model, we can even reach a 31.5\% of training time saving, making porting general generative AI to specific domains more effective than before. In domain-specific tasks, supervised $IGOT_τ$ shows great performance on reducing both the convergence radius and convergence point during keep pretraining.

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

↑