mlsanityData to 7 Oct 2026

Regularized Training of Nearest Neighbor Language Models

arXiv 2109.08249 ↗First posted 16 Sep 2021cs.CLcited by 1

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  3. 2016Pointer Sentinel Mixture Modelscited by 2,992
  4. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  5. 2016Using the Output Embedding to Improve Language Modelscited by 266
  6. 2018Adaptive Input Representations for Neural Language Modelingcited by 226
  7. 2017Regularizing and Optimizing LSTM Language Modelscited by 205
  8. 2016Efficient softmax approximation for GPUscited by 67

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.