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.
LLMs on the Line: Data Determines Loss-to-Loss Scaling Laws
Max Planck Institute for Intelligent Systems(智能系统马克斯·普朗克研究所);ELLIS Institute Tübingen(图宾根ELLIS研究所);Tübingen AI Center(图宾根人工智能中心);University of Tübingen(图宾根大学)
Learning Faster with Better Tokens: Parameter-Efficient Vocabulary Adaptation for Specialized Text Summarization
Dept. of Computer Science and Engg., IIT Kharagpur(印度Kharagpur理工学院计算机科学与工程系);Dept. of Medicine (Biomedical Informatics), Stanford University(斯坦福大学医学院(生物医学信息学))
Beyond Atomic Tokens: Factorizing Syllables for Language Model Pretraining
University of Information Technology, Vietnam National University, Ho Chi Minh city(胡志明市越南国立大学信息技术大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
Memory Decoder: A Pretrained, Plug-and-Play Memory for Large Language Models
LUMIA Lab(LUMIA实验室);School of Artificial Intelligence(人工智能学院);Shanghai Jiao Tong University(上海交通大学);Shanghai AI Laboratory(上海人工智能实验室);Tsinghua University(清华大学);SJTU Paris Elite Institute of Technology(上海交通大学巴黎精英技术学院)
Instituto Superior Técnico & Universidade de Lisboa (Lisbon ELLIS Unit)(里斯本ELLIS单位(理工学院与里斯本大学));Instituto de Telecomunicações(电信研究院);MICS, CentraleSupélec, Université Paris-Saclay(MICS、中央圣艾尔布兰理工大学、巴黎萨克雷大学);Acolad;Carnegie Mellon University(卡内基梅隆大学);University of Edinburgh(爱丁堡大学);Diabolocom;Aveni;OutSystems;Sword Health;Sorbonne Université, CNRS, ISIR(索邦大学、国家科学研究中心、ISIR);Artefact Research Center(Artefact研究机构);TransPerfect
Domain adaptation of Russian ModernBERT for long legal documents
Independent Researcher(独立研究者);National Research Nuclear University MEPhI(国立核研究大学 MEPhI);Moscow Center for Advanced Studies(莫斯科高级研究中心);University of Waterloo(滑铁卢大学)