SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.11672 · 2024

MemLLM: Finetuning LLMs to Use An Explicit Read-Write Memory

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2404.11672.json · badge: /api/ran/2404.11672.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
amodaresi/memllm canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
add_whitespace_around_dashes Ran
ran; our contract draft was wrong, not the code
amodaresi/memllm/inference/fast_indexing/main-model-editing.py
pointer only (licence: NONE) · get_code("b3a4121bc943589e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amodaresi/memllm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

filter_ Ran
ran, violated the contract we drafted
amodaresi/memllm/evaluation/model-editing/gather_zsre_result.py
pointer only (licence: NONE) · get_code("e5656395e4f1b9ad")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amodaresi/memllm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_abstract Ran
ran, honoured the contract we drafted
amodaresi/memllm/inference/fast_indexing/main-wiki.py
pointer only (licence: NONE) · get_code("77c2cb920c5fa854")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amodaresi/memllm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_full_text Ran
ran; our contract draft was wrong, not the code
amodaresi/memllm/inference/fast_indexing/main-wiki.py
pointer only (licence: NONE) · get_code("5b1744917dfd7936")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amodaresi/memllm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_token_span Ran
ran; our contract draft was wrong, not the code
amodaresi/memllm/evaluation/ppl-based/evaluate_v4_mistral.py
pointer only (licence: NONE) · get_code("2a48939d602b4436")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amodaresi/memllm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

remove_between_brackets Ran
ran; our contract draft was wrong, not the code
amodaresi/memllm/evaluation/model-editing/eval_zsre.py
pointer only (licence: NONE) · get_code("c38cedf562131db8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amodaresi/memllm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_relation_to_readable Not yet run
unverified (harvested, no recorded run)
amodaresi/memllm/inference/fast_indexing/gatherer-redocred-testonly.py
pointer only (licence: NONE) · get_code("7cd9b4acd273b70d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amodaresi/memllm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

converter Not yet run
unverified (harvested, no recorded run)
amodaresi/memllm/inference/fast_indexing/main-model-editing.py
pointer only (licence: NONE) · get_code("da93a5dc99295da7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amodaresi/memllm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

main Not yet run
unverified (harvested, no recorded run)
amodaresi/memllm/training/main_read_w_augmented.py
pointer only (licence: NONE) · get_code("c8cd0cb0e1c44f07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amodaresi/memllm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

main Not yet run
unverified (harvested, no recorded run)
amodaresi/memllm/training/main_write_mistral_w_annotated_w_augmented.py
pointer only (licence: NONE) · get_code("24875a8dcf1c1fdc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, amodaresi/memllm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

While current large language models (LLMs) perform well on many knowledge-related tasks, they are limited by relying on their parameters as an implicit storage mechanism. As a result, they struggle with memorizing rare events and with updating their memory as facts change over time. In addition, the uninterpretable nature of parametric memory makes it challenging to prevent hallucination. Model editing and augmenting LLMs with parameters specialized for memory are only partial solutions. In this paper, we introduce MemLLM, a novel method of enhancing LLMs by integrating a structured and explicit read-and-write memory module. MemLLM tackles the aforementioned challenges by enabling dynamic interaction with the memory and improving the LLM's capabilities in using stored knowledge. Our experiments indicate that MemLLM enhances the LLM's performance and interpretability, in language modeling in general and knowledge-intensive tasks in particular. We see MemLLM as an important step towards making LLMs more grounded and factual through memory augmentation. The project repository is publicly available at https://github.com/amodaresi/MemLLM

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2404.11672")
get_code_for_paper("2404.11672")
have("2404.11672")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2404.11672.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2404.11672.svg)](https://syntology.ai/paper/2404.11672)

Connect an agent — have() is free.