Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Pre-training Limited Memory Language Models with Internal and External Knowledge

About

Neural language models are black-boxes--both linguistic patterns and factual knowledge are distributed across billions of opaque parameters. This entangled encoding makes it difficult to reliably inspect, verify, or update specific facts. We introduce Limited Memory Language Models (LMLM), a new class of language models that externalizes factual knowledge to external database during pre-training rather than memorizing them. Our pre-training approach strategically masks externally retrieved factual values from the training loss, thereby teaching the model to perform targeted lookups rather than relying on memorization in model weights. Our experiments demonstrate that LMLMs achieve competitive performance compared to significantly larger LLMs on standard benchmarks, while offering the advantages of explicit, editable, and verifiable knowledge bases.

Linxi Zhao, Sofian Zalouk, Christian K. Belardi, Justin Lovelace, Jin Peng Zhou, Ryan Thomas Noonan, Dongyoung Go, Kilian Q. Weinberger, Yoav Artzi, Jennifer J. Sun• 2025

Related benchmarks

TaskDatasetResultRank
Question AnsweringPopQA
Accuracy52
158
Long-form FactualityFactScore
FActScore31.9
32
Long-form text generationFactScore
FactScore23.1
20
Natural Language UnderstandingNLU Benchmarks (CSQA, HellaSwag, PIQA, SIQA, ARC Easy) 5-shot
CSQA Accuracy31.7
12
Knowledge CompletionT-REx
EM47.4
11
Short-form Question AnsweringPopQA
Accuracy27.2
11
Short-form Question AnsweringSimpleQA
Accuracy6.2
11
Short-form Question AnsweringTriviaQA
Accuracy15.6
11
Showing 8 of 8 rows

Other info

Follow for update