Regularized Training of Nearest Neighbor Language Models
Not on the map. Why?
Abstract (arXiv)
Including memory banks in a natural language processing architecture increases model capacity by equipping it with additional data at inference time. In this paper, we build upon kNN-LM citepkhandelwal20generalization, which uses a pre-trained language model together with an exhaustive kNN search through the training data (memory bank) to achieve state-of-the-art results. We investigate whether we can improve the kNN-LM performance by instead training a LM with the knowledge that we will be using a kNN post-hoc. We achieved significant improvement using our method on language modeling tasks on textttWIKI-2 and textttWIKI-103. The main phenomenon that we encounter is that adding a simple L2 regularization on the activations (not weights) of the model, a transformer, improves the post-hoc kNN classification performance. We explore some possible reasons for this improvement. In particular, we find that the added L2 regularization seems to improve the performance for high-frequency words without deteriorating the performance for low frequency ones.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 8 of its 10 references that are in the map. First posted on arXiv 16 Sep 2021.
Builds on
8 of 10 references.
References · 8
- 2017Attention Is All You Needcited by 59,932
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2016Using the Output Embedding to Improve Language Modelscited by 266
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2017Regularizing and Optimizing LSTM Language Modelscited by 205
- 2016Efficient softmax approximation for GPUscited by 67
Built on by
Citing papers per year: 2024: 1.
1 paper.
- 2024NNOSE: Nearest Neighbor Occupational Skill Extractioncited by 5
- 2024NNOSE: Nearest Neighbor Occupational Skill Extraction30 Jan 2024