Categories: FAANG

Regularized Training of Nearest Neighbor Language Models

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, 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 WIKI-2 and WIKI-103. The main…
AI Generated Robotic Content

Recent Posts

pgvector vs. Dedicated Vector Databases: A Production Benchmark

Run this on a typical laptop and both systems will report latencies in the low…

4 hours ago

Beyond the KV cache: Training and serving i14’s Laplace 3B linear attention model on AWS Trainium2 with native PyTorch

Most large language models (LLMs) use transformer architectures with softmax attention. During inference, their key-value…

4 hours ago

Claude Opus 5.5 and Claude Sonnet 5.5 are now available in Google Antigravity

Whether you are iterating on a quick bug fix or planning a complex migration, different…

4 hours ago

A New Rocco Smart Fridge Just Dropped. So Did the Prices (2026)

Save $100 on the new Essential or $200 on the original, and give your holiday…

5 hours ago

Brain-inspired randomness makes artificial vision more reliable

Humans are usually remarkably good at recognizing objects, even under poor conditions. Artificial vision systems,…

5 hours ago

Descriptors and Controlled Attributes in Python

In this article, you will learn what Python descriptors are and how to use them…

1 day ago