Augmenting Pretrained Language Models with N-gram Embeddings through Incremental Training

Shaohua Hu, Xusheng Gu, Haofei Yang, Minghao Shao, Nanhui Zhao +2 more
11/16/2026
cs.CL

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hu2026augmenting,
  title  = {Augmenting Pretrained Language Models with N-gram Embeddings through Incremental Training},
  author = {Shaohua Hu and Xusheng Gu and Haofei Yang and Minghao Shao and Nanhui Zhao and Caoyun Fan and Fangming Li},
  year   = {2026},
  eprint = {2611.20415},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.20415v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.20415.svg)](https://codeofpaper.com/paper/2611.20415)

Discussion