通过增量训练为预训练语言模型添加N-gram嵌入
Augmenting Pretrained Language Models with N-gram Embeddings through Incremental Training
研究提出用增量训练将n-gram嵌入接入已有模型,以突破联合训练对使用场景的限制。实验探索了嵌入学习率、词表大小和注入位置等配置,发现增量训练下的最优配置与预训练时并不完全一致。增量训练获得的知识主要写入n-gram嵌入,主干模型的通用能力在整个过程中得以保留。
arXiv:2611.20415v1 Announce Type: new Abstract: As a new scaling technique for large language models, the n-gram embedding improves the base ability of a model while adding almost no inference cost. Mainstream research realizes it through joint training of the n-gram embedding with the backbone, which severely restricts the settings in which an n-gram embedding can be used. We therefore propose training an n-gram embedding onto an existing model through incremental training, to extend where the technique can deliver value. Specifically, we explore several settings of the n-gram embedding under incremental training---the learning rate of the embedding, the vocabulary size, and the injection position---and train an n-gram embedding onto the existing model under the best configuration. Experiments show that the best configuration under incremental training does not fully coincide with that under pretraining; moreover, the incrementally trained knowledge is written predominantly into the n-gram embedding, while the general ability of the backbone is retained throughout this training process.
来源:arXiv (AI + Vision + Imaging) · arxiv.org