Papers › An Evolved Universal Transformer Memory

An Evolved Universal Transformer Memory

17 Oct 2024arXiv:2410.13166archive 2025-07-28

Edoardo Cetin, Qi Sun, Tianyu Zhao, Yujin Tang

Prior methods propose to offset the escalating costs of modern foundation models by dropping specific parts of their contexts with hand-designed rules, while attempting to preserve their original performance. We overcome this trade-off with Neural Attention Memory Models (NAMMs), introducing a learned network for memory management that improves both the performance and efficiency of transformers. We evolve NAMMs atop pre-trained transformers to provide different latent contexts focusing on the most relevant information for individual layers and attention heads. NAMMs are universally applicable to any model using self-attention as they condition exclusively on the values in the produced attention matrices. Learning NAMMs on a small set of problems, we achieve substantial performance improvements across multiple long-context benchmarks while cutting the model's input contexts up to a fraction of the original sizes. We show the generality of our conditioning enables zero-shot transfer of NAMMs trained only on language to entirely new transformer architectures even across input modalities, with their benefits carrying over to vision and reinforcement learning.

PaperPDFCodeCode Syntology ran

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="2410.13166")

Code

Syntology Ran 11 of 12 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 11 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sakanaai/evo-memory officialmentioned in papermentioned on GitHubpytorch report

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

12 samples harvested; 11 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11ran
1unverified

Licence: 12 of the 12 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 SakanaAI/evo-memory. “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.

compute_recency SakanaAI/evo-memory/memory_policy/base_dynamic.py official repository ran fingerprinted no licence file found · pointer only · 8979b56a0788125e · report
compute_recency_scores SakanaAI/evo-memory/memory_policy/base_dynamic.py official repository ran no licence file found · pointer only · b138114d7116560c · report
convert_to_tensor SakanaAI/evo-memory/memory_policy/deep_embedding.py official repository ran no licence file found · pointer only · aa010c2bd0aa74b0 · report
get_cma_defaults SakanaAI/evo-memory/memory_evolution/cma_es.py official repository ran no licence file found · pointer only · a6c6ee847acad66b · report
get_property_list_from_elements SakanaAI/evo-memory/memory_policy/base_deep_components.py official repository ran no licence file found · pointer only · 36754005e03e2458 · report
reduce_stats SakanaAI/evo-memory/memory_policy/deep.py official repository ran no licence file found · pointer only · 82650da99214bdf2 · report
stat_fn_list SakanaAI/evo-memory/memory_policy/deep.py official repository ran no licence file found · pointer only · 941a06561780b35a · report
stat_fn_tensor SakanaAI/evo-memory/memory_policy/deep.py official repository ran no licence file found · pointer only · ed9673e65d4694aa · report
threshold_score_idxs SakanaAI/evo-memory/memory_policy/base_dynamic.py official repository ran no licence file found · pointer only · 5033508c5b925cb2 · report
true_for_all SakanaAI/evo-memory/memory_policy/base_deep_components.py official repository ran no licence file found · pointer only · 998a8e8e5f062104 · report
true_for_any SakanaAI/evo-memory/memory_policy/base_deep_components.py official repository ran no licence file found · pointer only · 62e579d3352bdb8e · report
full_eigen_decomp SakanaAI/evo-memory/memory_evolution/cma_es.py official repository unverified no licence file found · pointer only · 0c0fa69e90becc08 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSETSoftmax

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