Reproduce “$N$-gram Is Back: Residual Learning of Neural Text Generation with $n$-gram Language Model” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Huayang Li, Deng Cai, Jin Xu, Taro Watanabe

This paper presents NGRAMRES, a method that integrates traditional n-gram language models with modern neural language models using residual learning at the logits level. The approach improves performance across language modeling, machine translation, and summarization tasks, while also enabling cost-effective and flexible domain adaptation without requiring retraining of the neural component.

Key insights

  • Traditional n-gram models can effectively complement modern neural language models when integrated via residual learning at the logits level.
  • Residual learning at the logits level is crucial for effective integration; direct probability interpolation between heterogeneous models can degrade performance.
  • Integrating n-grams provides a cost-effective 'plug-and-play' method for domain adaptation, allowing domain-specific performance gains without retraining the neural model.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.