{
  "id": 1413,
  "kind": "paper",
  "title": "Mass-Editing Memory in a Transformer",
  "summary": "The canonical mass-insertion method and the direct answer to the \"insert knowledge with no training\" ask: scales ROME's locate-then-edit to many edits at once via batch closed-form updates spread across multiple MLP layers. Causal tracing identifies the decisive mid-layer FFN activations; a rank-one update per layer writes new factual associations with zero gradient training per edit (key vectors estimated from activation samples). Authors' result: thousands of associations inserted into GPT-J (6B) and GPT-NeoX (20B), \"exceeding prior work by orders of magnitude.\" Everything downstream in the closed-form line (PMET, AlphaEdit) builds on it. Limitations to label: edit-benchmark success (reliability/generalization/locality) is not the same as pretraining-quality knowledge; sequential-editing degradation is evidenced by later work (AlphaEdit's null-space protection is bounded at high edit counts per a reproducibility study).",
  "body": "",
  "notes": "Discovery: Hudson asked for a knowledge-insertion survey 2026-10-19 7:11 PM ET; MEMIT was the survey's #1 cataloging pick (\"the canonical mass-insertion method\"). Hudson approved all five picks same turn (\"Queue all five\"). Relevance: (1) cheapest knowledge-insertion primitive in the catalog — zero per-edit training vs ID 488's LoRA/full FT and ID 1626's conditional-memory optimization; (2) pairs with ID 1593 (MLPs Are Hebbians) as the constructive counterpart to the capacity theory — this is the \"write\" operation for the fact-storing MLPs that paper characterizes; (3) pairs with #69 (Fisher sparsity): both ask which parameters to change, from opposite directions — MEMIT finds them by causal tracing, #69 by pre-training Fisher. Watchlist: ROME (NeurIPS 2022, arXiv 2202.05262, MEMIT's ancestor — MEMIT covers it, not separately cataloged); PMET (arXiv 2308.08742, preprint); AlphaEdit (arXiv 2410.02355, ICLR 2025). | License: arXiv default nonexclusive-distrib (paper); code MIT — official repo github.com/kmeng01/memit carries MIT License + LICENSE file (verified 2026-10-20)",
  "url": "https://arxiv.org/abs/2210.07229",
  "links": [],
  "authors": [
    "Kevin Meng",
    "Arnab Sharma",
    "Alex Andonian",
    "Yonatan Belinkov",
    "David Bau"
  ],
  "tags": [],
  "topics": "",
  "venue": "ICLR 2023",
  "publisher": "",
  "source": "arxiv",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2022,
  "added_at": "2026-10-19T00:00:00.000Z",
  "verified_at": "2026-10-19T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "1720"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-11-01T12:55:30.547Z",
  "updated_at": "2026-11-01T12:55:30.547Z",
  "page": "https://papers.projxon.ai/entries/1413",
  "markdown": "https://papers.projxon.ai/entries/1413.md",
  "api": "https://papers.projxon.ai/api/entries/1413",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 1269,
      "kind": "code",
      "title": "Agent Memory Repo (Cognition) — open spec for persistent agent memory",
      "summary": "Cognition open-sources its agent memory format as an open standard, usable with any agent (announced alongside Devin's 'Dreaming' feature, where Devin builds a persistent memory graph of how a user likes to work across sessions). The format is a git repo of Markdown: every session clones the latest memory, searches or follows links, updates entries as the agent learns (no human in the loop), and pushes after every edit. MEMORY.md is the entry point loaded at the start of every session; entries are one-line bullets with open [key: value] metadata (recommended: source link to the session where it was learned, added date); [[path]] cross-links connect files; history and versioning come from git. 'Dreaming' is a dedicated periodic agent with two jobs: add new memory (spot patterns across sessions) and clean up (merge duplicates, drop outdated entries, resolve contradictions). Composability: memories are folders — a session can clone several repos at once (personal + team + swarm folders), each keeping its own ownership/permissions/history, and the agent tracks who said what. Agent swarms coordinate via message-board folders (findings.md, questions.md) with git rejecting conflicting pushes, forcing the agent to reconcile both versions. Worked examples: four parallel agents diagnosing a 1-in-100 slow request by sharing measurements through the repo, and a saved SQL query reused across sessions. Open to contributions: https://github.com/AgentMemoryRepo/agentmemoryrepo. Notably complementary/contrastable with the pending proactivity items on agent memory: the two-tier Memorystore/AlloyDB blueprint (SQL-native vector + BM25 hybrid retrieval, compaction) and the 'docs, not memory' RAG-skeptic argument. Directly relevant to the user's unnamed AI agent app.",
      "url": "https://cognition.com/agent-memory-repo",
      "authors": [
        "Cognition (Walden Yan)"
      ],
      "tags": [
        "agent-memory",
        "cognition",
        "devin",
        "dreaming",
        "persistent-memory",
        "git",
        "markdown"
      ],
      "venue": "Open standard announcement, 5 Oct 2026 (cognition.com/agent-memory-repo)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-06T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1269",
      "markdown": "https://papers.projxon.ai/entries/1269.md",
      "api": "https://papers.projxon.ai/api/entries/1269"
    },
    {
      "id": 1255,
      "kind": "paper",
      "title": "The Surprising Effectiveness of Shared Memory in Looped Transformers",
      "summary": "Looped Transformers add compute without parameters by re-applying the same layers, but each recursion writes its own KV cache, so memory grows with compute. This paper pretrains looped models to share memory instead: only the first recursion writes a cache; later recursions read it while keeping a short window of their own. Sharing memory does not cost quality — it improves it. At 150M-1B parameters, the Looped Prediction Transformer (LPT) and its hybrid variant set a new quality-memory frontier for looped models: with five recursions, the hybrid lowers FineWeb-Edu validation perplexity by 1.12-1.82 vs a same-size standard Transformer while using 76-79% less context memory. Analysis: shared and local memory develop different representations, later recursions attend mostly to the shared memory, which also acts as a gradient highway to the first recursion.",
      "url": "https://arxiv.org/abs/2610.02383",
      "authors": [
        "Giovanni Monea",
        "Keshav Ramji",
        "Yousef El-Kurdi",
        "Luis A. Lastras",
        "Yoav Artzi",
        "Nathan Godey",
        "Ramon Fernandez Astudillo"
      ],
      "tags": [
        "looped-transformers",
        "kv-cache",
        "shared-memory",
        "pretraining",
        "perplexity",
        "cornell",
        "ibm"
      ],
      "venue": "arXiv 2610.02383 [cs.LG/cs.AI], submitted 1 Oct 2026, preprint",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-05T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1255",
      "markdown": "https://papers.projxon.ai/entries/1255.md",
      "api": "https://papers.projxon.ai/api/entries/1255"
    },
    {
      "id": 1319,
      "kind": "paper",
      "title": "EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memory",
      "summary": "EngramEdit turns the n-gram conditional-memory modules of architectures like DeepSeek Engram into an editable knowledge interface, decoupling factual knowledge updates from the Transformer backbone. Conditional memory uses input n-grams to look up learned embeddings; ablations show disabling it collapses factual-knowledge performance (~39% of enabled) while largely preserving in-context understanding and reasoning (~72%), so facts live in the n-gram tables while computation lives in the backbone. The core problem: different phrasings of one fact activate different n-gram embeddings, and editing shared embeddings can corrupt unrelated facts. EngramEdit's procedure: (1) generate multiple expressions of each fact to broaden n-gram coverage; (2) temporarily add a shared learnable perturbation to the memory representations of its expressions and optimize only that perturbation by backpropagating the new-fact prediction loss, yielding a target memory representation per expression (mirroring ROME-style locate-then-edit FFN targeting); (3) jointly solve for updates to the shared n-gram embeddings that match these targets across all expressions and edits, with reuse-based regularization that penalizes large updates to frequently reused (short/frequent) n-gram embeddings more strongly. Results: near-perfect editing success on CounterFact and ZsRE, revised knowledge usable across unseen expressions and in multi-hop reasoning (nearly 3x the strongest baseline's MQuAKE accuracy under chain-of-thought prompting), with unrelated knowledge and general capabilities largely preserved under extended sequential editing. Because only a small subset of n-gram embeddings changes, the edit set is a few-MB overlay that can be swapped per user, enabling continual per-user learning without touching the backbone. Limitation: edits are currently primitive [subject, relation, object] triples only. Code: https://github.com/ModalityDance/EngramEdit",
      "url": "https://arxiv.org/abs/2610.10533",
      "authors": [
        "Hongru Cai",
        "Ran Wei",
        "Wenjie Wang",
        "Chengfa Wu",
        "Ning Song",
        "Yongqi Li",
        "Wenjie Li (Hong Kong Polytechnic University",
        "Hangzhou Diagens Biotechnology",
        "University of Science and Technology of China)"
      ],
      "tags": [
        "engram-edit",
        "knowledge-editing",
        "conditional-memory",
        "n-gram-embeddings",
        "decoupled-knowledge-updates",
        "continual-learning",
        "per-user-personalization",
        "deepseek-engram",
        "longcat"
      ],
      "venue": "arXiv:2610.10533 (cs.CL), submitted 7 Oct 2026",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-09T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1319",
      "markdown": "https://papers.projxon.ai/entries/1319.md",
      "api": "https://papers.projxon.ai/api/entries/1319"
    },
    {
      "id": 1060,
      "kind": "code",
      "title": "Block Delta Memory (BDM): Sparse Recurrent Memory with Dense Execution",
      "summary": "Block Delta Memory (BDM) is a recurrent sequence mixer that routes each token via an SDM-style product-key router to a sparse subset of small GDN2 memory banks, then updates selected banks as dense matrix states with a shared GDN2 controller (route-weighted decay/erase/write). On WikiText-103 (~15–17M, N=2048/K=64) BDM roughly matches attention on Adaptive Recall (span/overwrite/one-hop ~97–99% exact) with LM NLL near attention/SDM; H200 sweeps show decode nearly flat as capacity grows N=T, ~2× faster than SDM and within ~1.2–1.6× of GDN2. No arXiv; GitHub README+code.",
      "url": "https://github.com/p0rc314in/bdm",
      "authors": [
        "porcelain (@p0rc314in)"
      ],
      "tags": [
        "bdm",
        "block-delta-memory",
        "recurrent-memory",
        "deltanet",
        "gdn2",
        "sdm",
        "sequence-mixer",
        "sparse-routing",
        "product-key",
        "mixture-of-memories",
        "p0rc314in",
        "porcelain"
      ],
      "venue": "GitHub / X (independent)",
      "source": "github",
      "license": "unspecified for original code; SDM-extracted shell CC BY-NC 4.0 (THIRD_PARTY_NOTICES); FLA optional MIT",
      "published_year": 2026,
      "added_at": "2026-09-25T22:19:31.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 8,
      "page": "https://papers.projxon.ai/entries/1060",
      "markdown": "https://papers.projxon.ai/entries/1060.md",
      "api": "https://papers.projxon.ai/api/entries/1060"
    },
    {
      "id": 1282,
      "kind": "paper",
      "title": "Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs",
      "summary": "Recurrent-attention hybrid LMs (e.g., Qwen3.5) interleave attention and recurrent layers as two complementary memory pathways: attention supports precise recall of earlier tokens, recurrent layers consolidate disparate information over long contexts. The paper shows hybrids rely substantially more on attention than on the recurrent state — and that standard SFT improves overall performance but does not fix the imbalance: the model becomes more reliant on attention-propagated information while recurrent-pathway use stays limited. Fix: an auxiliary loss that limits attention's access to earlier context while the recurrent state propagates through the full sequence, forcing the model to retain and use information through the recurrent pathway alongside attention. Results: overall performance improves with especially strong gains on longer-context and information-aggregation tasks; QA avg +4.6%, agentic tasks avg +12.1% across multiple hybrid LMs; also generalizes to attention-only models combining different memory types (+28.6%). Core message: simply providing multiple memory pathways does not ensure their effective use — targeted supervision is needed to coordinate them.",
      "url": "https://arxiv.org/abs/2610.06750",
      "authors": [
        "Hyunji Lee",
        "Joykirat Singh",
        "Zaid Khan",
        "Justin Chih-Yao Chen",
        "Elias Stengel-Eskin",
        "Alessandro Sordoni",
        "Arman Cohan",
        "Mohit Bansal"
      ],
      "tags": [
        "memory-pathways",
        "recurrent-attention-hybrid",
        "auxiliary-loss",
        "memory-utilization",
        "long-context",
        "agentic-tasks"
      ],
      "venue": "arXiv 2610.06750 (cs.CL, cs.AI), submitted 5 Oct 2026",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-06T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1282",
      "markdown": "https://papers.projxon.ai/entries/1282.md",
      "api": "https://papers.projxon.ai/api/entries/1282"
    },
    {
      "id": 461,
      "kind": "paper",
      "title": "Memory Caching: RNNs with Growing Memory",
      "summary": "Memory Caching (MC) segments the sequence, caches each segment's memory state, and aggregates online plus cached memories at retrieval. Four variants: Residual Memory, Gated Residual Memory (GRM), Memory Soup, and Sparse Selective Caching (SSC). Complexity O(NL) interpolates RNN O(L) and Transformer O(L^2). Applied to Linear Attention, SWLA, DLA, and Titans. On 760M/30B-token and 1.3B/100B-token FineWeb training, MC lifts language-modeling and commonsense averages; Titans+GRM is strongest. Closes part of the recall gap vs Transformers on NIAH, in-context retrieval, LongBench, and MQAR. No official code on the abs page.",
      "url": "https://arxiv.org/abs/2602.24281",
      "authors": [
        "Ali Behrouz",
        "Zeman Li",
        "Yuan Deng",
        "Peilin Zhong",
        "Meisam Razaviyayn",
        "Vahab Mirrokni"
      ],
      "tags": [
        "memory-caching",
        "titans",
        "linear-attention",
        "rnn",
        "long-context",
        "google",
        "ssc",
        "grm"
      ],
      "venue": "arXiv / Google",
      "source": "arxiv",
      "license": "CC BY 4.0",
      "published_year": 2026,
      "added_at": "2026-08-14T16:36:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 12,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/461",
      "markdown": "https://papers.projxon.ai/entries/461.md",
      "api": "https://papers.projxon.ai/api/entries/461"
    }
  ]
}
