Papers › Memorizing Transformers
Memorizing Transformers
Yuhuai Wu, Markus N. Rabe, DeLesley Hutchins, Christian Szegedy
Language models typically need to be trained or finetuned in order to acquire new knowledge, which involves updating their weights. We instead envision language models that can simply read and memorize new data at inference time, thus acquiring new knowledge immediately. In this work, we extend language models with the ability to memorize the internal representations of past inputs. We demonstrate that an approximate kNN lookup into a non-differentiable memory of recent (key, value) pairs improves language modeling across various benchmarks and tasks, including generic webtext (C4), math papers (arXiv), books (PG-19), code (Github), as well as formal theorems (Isabelle). We show that the performance steadily improves when we increase the size of memory up to 262K tokens. On benchmarks including code and mathematics, we find that the model is capable of making use of newly defined functions and theorems during test time.
In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2203.08913")
Code
Syntology Ran 20 of 34 code samples harvested from 4 repositories linked to this paper; 14 have no recorded run. Of those that ran: 3 ran · honoured contract; 1 ran · violated contract; 2 ran · our draft was wrong; 3 ran · fixture could not drive it; 11 ran with no contract checked.
By repository: official repository: 15 samples from 1 repository, 12 ran; community (archive-listed): 17 samples from 3 repositories, 6 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
34 samples harvested; 20 ran; 3 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.
Licence: 2 of the 34 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.
Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
4673cf1999dcca6b · report
b2191b4a6430d0af · report
2832f7cf743c7f86 · report
246054b031dda4de · report
25d9116c53cb8eb2 · report
9304ca35acfd717d · report
dd330ab84432cbc2 · report
76123fa16b69b8d4 · report
1bdfb9459bbcd869 · report
5844bf2b191c00ed · report
f3232418205f7cbd · report
2aa06e7db15eb39b · report
3cb1714e61d5fad7 · report
c25e09cec3306193 · report
2ef0e2f355bf12a6 · report
b90643346c166065 · report
b704c9a5be0a15d7 · report
0765abcf04c608f6 · report
90915865fd797169 · report
580c588511c469d9 · report
49d79a24934a30e3 · report
7fd92c090cad8a75 · report
4039fb9f24228670 · report
a7a01f367b6da9da · report
7419a094e9f98c3a · report
ecccb74da133bd6a · report
29b4a33fabd0b32e · report
cbf31de811fec75e · report
c25efb685f36ecd3 · report
d92db56afc61ab11 · report
7deb74a26342f2d3 · report
1f2be62797cfccf1 · report
f70dcb896366697c · report
aa5486a3650902d8 · report
Tasks
Results from the paper archive 2025-07-28
No leaderboard rows for this paper in the archive.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections