$N$-gram Is Back: Residual Learning of Neural Text Generation with $n$-gram Language Model
Li, Huayang, Cai, Deng, Xu, Jin, Watanabe, Taro
–arXiv.org Artificial Intelligence
$N$-gram language models (LM) have been largely superseded by neural LMs as the latter exhibits better performance. However, we find that $n$-gram models can achieve satisfactory performance on a large proportion of testing cases, indicating they have already captured abundant knowledge of the language with relatively low computational cost. With this observation, we propose to learn a neural LM that fits the residual between an $n$-gram LM and the real-data distribution. The combination of $n$-gram and neural LMs not only allows the neural part to focus on the deeper understanding of language but also provides a flexible way to customize an LM by switching the underlying $n$-gram model without changing the neural model. Experimental results on three typical language tasks (i.e., language modeling, machine translation, and summarization) demonstrate that our approach attains additional performance gains over popular standalone neural models consistently. We also show that our approach allows for effective domain adaptation by simply switching to a domain-specific $n$-gram model, without any extra training. Our code is released at https://github.com/ghrua/NgramRes.
arXiv.org Artificial Intelligence
Nov-3-2022
- Country:
- South America > Argentina
- Pampas > Buenos Aires F.D. > Buenos Aires (0.04)
- Oceania > Australia
- New South Wales > Sydney (0.04)
- North America
- Dominican Republic (0.04)
- United States
- Texas > Travis County
- Austin (0.04)
- Nevada > Clark County
- Las Vegas (0.04)
- Michigan > Wayne County
- Detroit (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- California
- Santa Cruz County > Santa Cruz (0.14)
- Santa Clara County > Palo Alto (0.04)
- San Diego County > San Diego (0.04)
- Los Angeles County > Long Beach (0.04)
- Texas > Travis County
- Europe
- France (0.04)
- Germany > Berlin (0.04)
- Belgium (0.04)
- United Kingdom > Scotland
- City of Edinburgh > Edinburgh (0.04)
- Sweden > Stockholm
- Stockholm (0.04)
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Denmark > Capital Region
- Copenhagen (0.04)
- Bulgaria > Sofia City Province
- Sofia (0.04)
- Asia
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- South America > Argentina
- Genre:
- Research Report (0.50)
- Technology: